Преглед на файлове

NO-JIRA Fix unit test on windows

tags/10.0.0.68432
Eric Giffon преди 1 година
родител
ревизия
6589780115
променени са 1 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. 3
    4
      server/sonar-main/src/test/java/org/sonar/application/es/EsKeyStoreCliTest.java

+ 3
- 4
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",

Loading…
Отказ
Запис