Skip to content

Commit

Permalink
Remove unused test code
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSchumacher committed Oct 26, 2018
1 parent 5afe35c commit b278ac8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ public void testExtractCauseError() {
@Test
public void testExtractCauseUncheckedException() {
final RuntimeException rex = new RuntimeException("Test");
RuntimeException r =
assertThrows(RuntimeException.class, () -> ConcurrentUtils.extractCause(new ExecutionException(rex)));
assertThrows(RuntimeException.class, () -> ConcurrentUtils.extractCause(new ExecutionException(rex)));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,17 +358,6 @@ public void testJpLocales() throws ParseException {
checkParse(locale, cal, sdf, fdf);
}

private String trimMessage(final String msg) {
if (msg.length() < 100) {
return msg;
}
final int gmt = msg.indexOf("(GMT");
if (gmt > 0) {
return msg.substring(0, gmt+4)+"...)";
}
return msg.substring(0, 100)+"...";
}

private void checkParse(final Locale locale, final Calendar cal, final SimpleDateFormat sdf, final DateParser fdf) throws ParseException {
final String formattedDate= sdf.format(cal.getTime());
checkParse(locale, sdf, fdf, formattedDate);
Expand Down

0 comments on commit b278ac8

Please sign in to comment.