< prev index next >
jdk/test/tools/jlink/JLinkNegativeTest.java
Print this page
@@ -93,11 +93,11 @@
public void testModuleNotExist() {
helper.generateDefaultImage("failure1").assertFailure("Error: Module failure1 not found");
}
public void testNotExistInAddMods() {
- // cannot find jmod from --addmods
+ // cannot find jmod from --add-modules
JImageGenerator.getJLinkTask()
.modulePath(".")
.addMods("not_exist")
.output(helper.getImageDir().resolve("failure2"))
.call().assertFailure("Error: Module not_exist not found");
< prev index next >