From f0b34e1199e974237c78870a4fca510c23addccd Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 26 Jul 2016 14:40:09 +0200 Subject: SONAR-7899 configure container of "startup followers" --- .../src/main/java/org/sonar/application/App.java | 2 -- .../src/test/java/org/sonar/application/AppTest.java | 16 ---------------- 2 files changed, 18 deletions(-) (limited to 'sonar-application') 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 createCommands(Props props) { File homeDir = props.nonNullValueAsFile(ProcessProperties.PATH_HOME); - props.set(ProcessProperties.STARTED_AT, String.valueOf(new Date().getTime())); List 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 @@ -79,22 +79,6 @@ public class AppTest { assertThat(argument.getValue()).extracting("processId").containsOnly(ProcessId.ELASTICSEARCH); } - @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> argument = newJavaCommandArgumentCaptor(); - verify(monitor).start(argument.capture()); - - List 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); -- cgit v1.2.3