Skip to content

Commit

Permalink
[#1404] fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Nov 3, 2021
1 parent 919d04c commit 2c75171
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/java/picocli/ArityTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ class App {
new CommandLine(new App()).parseArgs("--implicit=false --explicit=false".split(" "));
fail("--explicit option should not accept parameters");
} catch (ParameterException ex) {
assertEquals("option '--explicit' (<explicit>) should be specified without 'false' parameter", ex.getMessage());
assertEquals("option '--explicit' should be specified without 'false' parameter", ex.getMessage());
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/test/java/picocli/CommandLineTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ class App {
CommandLine.populateCommand(new App(), "-v", "-v");
fail("expected exception");
} catch (OverwrittenOptionException ex) {
assertEquals("option '-v' (<bool>) should be specified only once", ex.getMessage());
assertEquals("option '-v' should be specified only once", ex.getMessage());
}
}

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

Expand Down

0 comments on commit 2c75171

Please sign in to comment.