diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-09-29 18:06:41 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-09-29 18:06:41 +0200 |
commit | 6a85f715f01daf44995fe4a0719e5119b301d79a (patch) | |
tree | 2f11fa31e0fba70b158d7fd92f4dee1a2fb2fe7d /server | |
parent | 41fdce05769fc9cfffaf4051c7e600627398cf89 (diff) | |
download | sonarqube-6a85f715f01daf44995fe4a0719e5119b301d79a.tar.gz sonarqube-6a85f715f01daf44995fe4a0719e5119b301d79a.zip |
Try to fix UT on Windows
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-process/src/test/java/org/sonar/process/ProcessEntryPointTest.java | 4 |
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"); |