From 343e4be527a1e627b9afc8bdfc3e4386166c1973 Mon Sep 17 00:00:00 2001 From: Stephane Gamard Date: Thu, 14 Aug 2014 11:42:19 +0200 Subject: [PATCH] fix SearchServerTest --- .../src/main/java/org/sonar/search/SearchServer.java | 8 ++++---- .../src/test/java/org/sonar/search/SearchServerTest.java | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java b/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java index 7c59e0e5d37..960ce34b272 100644 --- a/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java +++ b/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java @@ -46,10 +46,10 @@ public class SearchServer extends MonitoredProcess { public static final String ES_CLUSTER_PROPERTY = "sonar.cluster.name"; public static final String ES_CLUSTER_INET = "sonar.cluster.master"; - private static final String SONAR_PATH_HOME = "sonar.path.home"; - private static final String SONAR_PATH_DATA = "sonar.path.data"; - private static final String SONAR_PATH_TEMP = "sonar.path.temp"; - private static final String SONAR_PATH_LOG = "sonar.path.log"; + public static final String SONAR_PATH_HOME = "sonar.path.home"; + public static final String SONAR_PATH_DATA = "sonar.path.data"; + public static final String SONAR_PATH_TEMP = "sonar.path.temp"; + public static final String SONAR_PATH_LOG = "sonar.path.log"; private static final Integer MINIMUM_INDEX_REPLICATION = 1; diff --git a/server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java b/server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java index b0660b85e33..e430aa4f97f 100644 --- a/server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java +++ b/server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java @@ -111,9 +111,9 @@ public class SearchServerTest { public void can_connect() throws Exception { Properties properties = new Properties(); properties.setProperty(MonitoredProcess.NAME_PROPERTY, "ES"); - properties.setProperty("sonar.path.data", temp.newFolder().getAbsolutePath()); - properties.setProperty("sonar.path.logs", temp.newFolder().getAbsolutePath()); - properties.setProperty("sonar.path.temp", temp.newFolder().getAbsolutePath()); + properties.setProperty(SearchServer.SONAR_PATH_DATA, temp.newFolder().getAbsolutePath()); + properties.setProperty(SearchServer.SONAR_PATH_TEMP, temp.newFolder().getAbsolutePath()); + properties.setProperty(SearchServer.SONAR_PATH_LOG, temp.newFolder().getAbsolutePath()); properties.setProperty(SearchServer.ES_PORT_PROPERTY, Integer.toString(freeESPort)); properties.setProperty(SearchServer.ES_CLUSTER_PROPERTY, "sonarqube"); -- 2.39.5