aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-process
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-09-29 18:06:41 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-09-29 18:06:41 +0200
commit6a85f715f01daf44995fe4a0719e5119b301d79a (patch)
tree2f11fa31e0fba70b158d7fd92f4dee1a2fb2fe7d /server/sonar-process
parent41fdce05769fc9cfffaf4051c7e600627398cf89 (diff)
downloadsonarqube-6a85f715f01daf44995fe4a0719e5119b301d79a.tar.gz
sonarqube-6a85f715f01daf44995fe4a0719e5119b301d79a.zip
Try to fix UT on Windows
Diffstat (limited to 'server/sonar-process')
-rw-r--r--server/sonar-process/src/test/java/org/sonar/process/ProcessEntryPointTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-process/src/test/java/org/sonar/process/ProcessEntryPointTest.java b/server/sonar-process/src/test/java/org/sonar/process/ProcessEntryPointTest.java
index c69ca04cd05..987ee025a58 100644
--- a/server/sonar-process/src/test/java/org/sonar/process/ProcessEntryPointTest.java
+++ b/server/sonar-process/src/test/java/org/sonar/process/ProcessEntryPointTest.java
@@ -24,6 +24,7 @@ import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import org.junit.rules.Timeout;
+import org.sonar.process.Lifecycle.State;
import org.sonar.process.test.StandardProcess;
import java.io.File;
@@ -32,7 +33,6 @@ import java.util.Properties;
import static org.fest.assertions.Assertions.assertThat;
import static org.fest.assertions.Fail.fail;
import static org.mockito.Mockito.mock;
-import static org.sonar.process.Lifecycle.State;
public class ProcessEntryPointTest {
@@ -50,7 +50,7 @@ public class ProcessEntryPointTest {
@Test
public void load_properties_from_file() throws Exception {
File propsFile = temp.newFile();
- FileUtils.write(propsFile, "sonar.foo=bar\nprocess.key=web\nprocess.sharedDir=" + temp.newFolder().getAbsolutePath());
+ FileUtils.write(propsFile, "sonar.foo=bar\nprocess.key=web\nprocess.sharedDir=" + temp.newFolder().getAbsolutePath().replaceAll("\\\\", "/"));
ProcessEntryPoint entryPoint = ProcessEntryPoint.createForArguments(new String[] {propsFile.getAbsolutePath()});
assertThat(entryPoint.getProps().value("sonar.foo")).isEqualTo("bar");