diff options
author | Eric Giffon <eric.giffon@sonarsource.com> | 2023-03-02 10:30:30 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-03-02 20:03:50 +0000 |
commit | 6589780115c3447509f63f8b3d7a21ac3cec474c (patch) | |
tree | 57a355e5e8750cdff1e243b6e60ec09da337473f /server/sonar-main | |
parent | 34f33d624b7107e59205d2ecbeb4661b6006512b (diff) | |
download | sonarqube-6589780115c3447509f63f8b3d7a21ac3cec474c.tar.gz sonarqube-6589780115c3447509f63f8b3d7a21ac3cec474c.zip |
NO-JIRA Fix unit test on windows
Diffstat (limited to 'server/sonar-main')
-rw-r--r-- | server/sonar-main/src/test/java/org/sonar/application/es/EsKeyStoreCliTest.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server/sonar-main/src/test/java/org/sonar/application/es/EsKeyStoreCliTest.java b/server/sonar-main/src/test/java/org/sonar/application/es/EsKeyStoreCliTest.java index ea0f2507bbc..50cd28ebc32 100644 --- a/server/sonar-main/src/test/java/org/sonar/application/es/EsKeyStoreCliTest.java +++ b/server/sonar-main/src/test/java/org/sonar/application/es/EsKeyStoreCliTest.java @@ -63,12 +63,11 @@ public class EsKeyStoreCliTest { JavaCommand<?> executedCommand = process.getExecutedCommand(); - String expectedHomeLibPath = Paths.get(homeDir.toString(), "lib", "*").toString(); - String expectedHomeKeystorePath = Paths.get(homeDir.toString(), "lib", "cli-launcher", "*").toString(); + String expectedHomeLibPath = Paths.get(homeDir.toString(), "lib") + File.separator + "*"; + String expectedHomeKeystorePath = Paths.get(homeDir.toString(), "lib", "cli-launcher") + File.separator + "*"; assertThat(executedCommand.getClassName()).isEqualTo("org.elasticsearch.launcher.CliToolLauncher"); - assertThat(executedCommand.getClasspath()) - .containsExactly(expectedHomeLibPath, expectedHomeKeystorePath); + assertThat(executedCommand.getClasspath()).containsExactly(expectedHomeLibPath, expectedHomeKeystorePath); assertThat(executedCommand.getParameters()).containsExactly("add", "-x", "-f", "test.property1", "test.property2", "test.property3"); assertThat(executedCommand.getJvmOptions().getAll()).containsExactly( "-Xms4m", |