diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-07-26 14:40:09 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2016-07-29 10:31:31 +0200 |
commit | f0b34e1199e974237c78870a4fca510c23addccd (patch) | |
tree | ee3610ec41d3cf3ef4f769dfb9b0fa66581b4c7e /sonar-application | |
parent | 8259e91b4177a2e08a4ef72bef474db06da4e87b (diff) | |
download | sonarqube-f0b34e1199e974237c78870a4fca510c23addccd.tar.gz sonarqube-f0b34e1199e974237c78870a4fca510c23addccd.zip |
SONAR-7899 configure container of "startup followers"
Diffstat (limited to 'sonar-application')
-rw-r--r-- | sonar-application/src/main/java/org/sonar/application/App.java | 2 | ||||
-rw-r--r-- | sonar-application/src/test/java/org/sonar/application/AppTest.java | 16 |
2 files changed, 0 insertions, 18 deletions
diff --git a/sonar-application/src/main/java/org/sonar/application/App.java b/sonar-application/src/main/java/org/sonar/application/App.java index 8c8d73529a8..057386624ea 100644 --- a/sonar-application/src/main/java/org/sonar/application/App.java +++ b/sonar-application/src/main/java/org/sonar/application/App.java @@ -21,7 +21,6 @@ package org.sonar.application; import java.io.File; import java.util.ArrayList; -import java.util.Date; import java.util.List; import java.util.Properties; import org.apache.commons.io.FilenameUtils; @@ -57,7 +56,6 @@ public class App implements Stoppable { private static List<JavaCommand> createCommands(Props props) { File homeDir = props.nonNullValueAsFile(ProcessProperties.PATH_HOME); - props.set(ProcessProperties.STARTED_AT, String.valueOf(new Date().getTime())); List<JavaCommand> commands = new ArrayList<>(3); commands.add(createESCommand(props, homeDir)); diff --git a/sonar-application/src/test/java/org/sonar/application/AppTest.java b/sonar-application/src/test/java/org/sonar/application/AppTest.java index 8150639c865..5a31d7d8e35 100644 --- a/sonar-application/src/test/java/org/sonar/application/AppTest.java +++ b/sonar-application/src/test/java/org/sonar/application/AppTest.java @@ -80,22 +80,6 @@ public class AppTest { } @Test - public void all_JavaCommand_have_a_sonar_core_startedAt_property_argument() throws IOException { - Monitor monitor = mock(Monitor.class); - App app = new App(monitor); - Props props = initDefaultProps(); - app.start(props); - - ArgumentCaptor<List<JavaCommand>> argument = newJavaCommandArgumentCaptor(); - verify(monitor).start(argument.capture()); - - List<JavaCommand> javaCommands = argument.getValue(); - for (JavaCommand javaCommand : javaCommands) { - assertThat(javaCommand.getArguments()).containsKey(ProcessProperties.STARTED_AT); - } - } - - @Test public void add_custom_jdbc_driver_to_tomcat_classpath() throws Exception { Monitor monitor = mock(Monitor.class); App app = new App(monitor); |