Skip to content

Commit

Permalink
Fix modular user guide tests by reading module jdk.httpserver
Browse files Browse the repository at this point in the history
  • Loading branch information
sormuras committed Sep 12, 2021
1 parent b6dff0d commit 6c0bf02
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class ModularUserGuideTests {
" requires java.desktop;", //
" requires java.logging;", //
" requires java.scripting;", //
" requires jdk.httpserver;", //
"}", //
"" //
);
Expand Down Expand Up @@ -166,7 +167,7 @@ void runTestsFromUserGuideWithinModularBoundaries(@TempDir Path temp) throws Exc
var args = compile(temp, out, err);
// args.forEach(System.out::println);

assertTrue(err.toString().isBlank(), () -> err.toString() + "\n\n" + String.join("\n", args));
assertTrue(err.toString().isBlank(), () -> err + "\n\n" + String.join("\n", args));
var listing = Helper.treeWalk(temp);
assertLinesMatch(List.of( //
"destination", //
Expand Down

0 comments on commit 6c0bf02

Please sign in to comment.