< prev index next >

test/tools/jmod/JmodNegativeTest.java

Print this page

        

*** 80,99 **** @Test public void testNoArgs() { jmod() .assertFailure() .resultChecker(r -> ! assertContains(r.output, "Error: one of create, 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") ); jmod("--badOption") .assertFailure() .resultChecker(r -> --- 80,99 ---- @Test public void testNoArgs() { jmod() .assertFailure() .resultChecker(r -> ! 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, extract, list, describe, or hash") ); jmod("--badOption") .assertFailure() .resultChecker(r ->
< prev index next >