Show more info on failure

This commit is contained in:
Sebb 2015-06-07 14:08:35 +01:00
parent 756ccc935e
commit 612236c8a7
1 changed files with 6 additions and 3 deletions

View File

@ -38,10 +38,13 @@ public void testTimeZoneStrategyPattern() {
parser.parse(tzDisplay);
}
catch(Exception ex) {
Assert.fail(tzDisplay
+ " Locale: " + locale.getDisplayName()
Assert.fail("'" + tzDisplay + "'"
+ " Locale: '" + locale.getDisplayName() + "'"
+ " TimeZone: " + zone[0]
+ " offset: " + t);
+ " offset: " + t
+ " defaultLocale: " + Locale.getDefault()
+ " defaultTimeZone: " + TimeZone.getDefault().getDisplayName()
);
}
}
}