Skip to content

Commit 6c0bf02

Browse files
committed
Fix modular user guide tests by reading module jdk.httpserver
1 parent b6dff0d commit 6c0bf02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/ModularUserGuideTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class ModularUserGuideTests {
5353
" requires java.desktop;", //
5454
" requires java.logging;", //
5555
" requires java.scripting;", //
56+
" requires jdk.httpserver;", //
5657
"}", //
5758
"" //
5859
);
@@ -166,7 +167,7 @@ void runTestsFromUserGuideWithinModularBoundaries(@TempDir Path temp) throws Exc
166167
var args = compile(temp, out, err);
167168
// args.forEach(System.out::println);
168169

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

0 commit comments

Comments
 (0)