Skip to content

Commit 2c75171

Browse files
committed
[#1404] fix broken tests
1 parent 919d04c commit 2c75171

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/java/picocli/ArityTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ class App {
16621662
new CommandLine(new App()).parseArgs("--implicit=false --explicit=false".split(" "));
16631663
fail("--explicit option should not accept parameters");
16641664
} catch (ParameterException ex) {
1665-
assertEquals("option '--explicit' (<explicit>) should be specified without 'false' parameter", ex.getMessage());
1665+
assertEquals("option '--explicit' should be specified without 'false' parameter", ex.getMessage());
16661666
}
16671667
}
16681668

src/test/java/picocli/CommandLineTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,7 +1916,7 @@ class App {
19161916
CommandLine.populateCommand(new App(), "-v", "-v");
19171917
fail("expected exception");
19181918
} catch (OverwrittenOptionException ex) {
1919-
assertEquals("option '-v' (<bool>) should be specified only once", ex.getMessage());
1919+
assertEquals("option '-v' should be specified only once", ex.getMessage());
19201920
}
19211921
}
19221922

@@ -1936,7 +1936,7 @@ class App {
19361936
CommandLine.populateCommand(new App(), "-v", "--verbose");
19371937
fail("expected exception");
19381938
} catch (OverwrittenOptionException ex) {
1939-
assertEquals("option '--verbose' (<bool>) should be specified only once", ex.getMessage());
1939+
assertEquals("option '--verbose' should be specified only once", ex.getMessage());
19401940
}
19411941
}
19421942

0 commit comments

Comments
 (0)