Skip to content

Commit

Permalink
fix: accept either JRE 8 or JRE 9 style classpath in test (#3972)
Browse files Browse the repository at this point in the history
  • Loading branch information
schroederc committed Aug 8, 2019
1 parent f95e439 commit 3ea7de6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void updateWithJavaOptions_updatesBootClassPath() {
int idx = updatedArgs.indexOf("--boot-class-path");
assertThat(updatedArgs).hasSize(idx + 2);
assertThat(updatedArgs.get(idx + 1)).startsWith("not/a/real/path:also/fake");
assertThat(updatedArgs.get(idx + 1)).contains("lib/modules");
assertThat(updatedArgs.get(idx + 1)).matches(".*(\\.jar|lib/modules)");
}

@Test
Expand All @@ -157,7 +157,7 @@ public void updateWithJavaOptions_emptyDetailsAddsBootClassPath() {
.startsWith("not/a/real/path:also/fake");

assertThat(updatedArgs.get(updatedArgs.indexOf("--boot-class-path") + 1))
.contains("lib/modules");
.matches(".*(\\.jar|lib/modules)");
}

@Test
Expand Down Expand Up @@ -206,6 +206,6 @@ public void updateWithJavaOptions_updatesSomePathsFromDetails() {
assertThat(updatedArgs.get(updatedArgs.indexOf("--source-path") + 1))
.matches("source/from/details");
assertThat(updatedArgs.get(updatedArgs.indexOf("--boot-class-path") + 1))
.contains("lib/modules");
.matches(".*(\\.jar|lib/modules)");
}
}

0 comments on commit 3ea7de6

Please sign in to comment.