< prev index next >
test/tools/jlink/bindservices/BindServices.java
Print this page
@@ -146,10 +146,27 @@
assertTrue(output.containsAll(expected));
testImage(dir, "m1", "m2", "m3");
}
+ @Test
+ public void testVerboseAndNoBindServices() throws Throwable {
+ if (!hasJmods()) return;
+
+ Path dir = Paths.get("verboseNoBind");
+
+ List<String> output =
+ JLink.run("--output", dir.toString(),
+ "--module-path", MODULE_PATH,
+ "--verbose",
+ "--add-modules", "m1").output();
+
+ assertTrue(output.contains("module m1 provides p1.S, used by m1"));
+
+ testImage(dir, "m1");
+ }
+
/*
* Tests the given ${java.home} to only contain the specified modules
*/
private void testImage(Path javaHome, String... modules) throws Throwable {
Path java = javaHome.resolve("bin").resolve("java");
< prev index next >