test/tools/jmod/JmodNegativeTest.java
Print this page
rev 16200 : 8166568: jmod tool needs extract option
8169492: jdk.internal.jmod.JmodFile.JMOD_MAGIC_NUMBER is a mutable array
Reviewed-by:
@@ -80,20 +80,20 @@
@Test
public void testNoArgs() {
jmod()
.assertFailure()
.resultChecker(r ->
- assertContains(r.output, "Error: one of create, list, describe, or hash must be specified")
+ assertContains(r.output, "Error: one of create, extract, list, describe, or hash must be specified")
);
}
@Test
public void testBadAction() {
jmod("badAction")
.assertFailure()
.resultChecker(r ->
- assertContains(r.output, "Error: mode must be one of create, list, describe, or hash")
+ assertContains(r.output, "Error: mode must be one of create, extract, list, describe, or hash")
);
jmod("--badOption")
.assertFailure()
.resultChecker(r ->