From 6c0bf0229a552c926d584fea7c5b2826d464ca21 Mon Sep 17 00:00:00 2001 From: Christian Stein Date: Sun, 12 Sep 2021 19:47:32 +0200 Subject: [PATCH] Fix modular user guide tests by reading module `jdk.httpserver` --- .../platform/tooling/support/tests/ModularUserGuideTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/ModularUserGuideTests.java b/platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/ModularUserGuideTests.java index d573651817dc..ecedbf1569c1 100644 --- a/platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/ModularUserGuideTests.java +++ b/platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/ModularUserGuideTests.java @@ -53,6 +53,7 @@ class ModularUserGuideTests { " requires java.desktop;", // " requires java.logging;", // " requires java.scripting;", // + " requires jdk.httpserver;", // "}", // "" // ); @@ -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", //