Skip to content

Commit

Permalink
[#473] Fix broken test on CI server
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Sep 10, 2018
1 parent 10dfe06 commit 7be1b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/picocli/CommandLineTypeConversionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ private void parseInvalidValue(String option, String value, String... errorMessa
if (actual.getMessage().equals(errMsg)) { return; } // that is okay also
}
String type = option.substring(1);
String expected = String.format("Invalid value for option '%s': cannot convert '%s' to %s (%s)", option, value, type, errorMessage[0]);
String expected = String.format("Invalid value for option '%s': cannot convert '%s' to %s (%s", option, value, type, errorMessage[0]);
assertTrue("expected:<" + expected + "> but was:<" + actual.getMessage() + ">",
actual.getMessage().startsWith(expected));
}
Expand Down

0 comments on commit 7be1b97

Please sign in to comment.