Better test failure message
This commit is contained in:
parent
5440b186d4
commit
c6ac3119bb
|
@ -82,7 +82,7 @@ public class FastDateParser_TimeZoneStrategyTest extends AbstractLangTest {
|
||||||
private void testTimeZoneStrategyPattern(final String languageTag) throws ParseException {
|
private void testTimeZoneStrategyPattern(final String languageTag) throws ParseException {
|
||||||
final Locale locale = Locale.forLanguageTag(languageTag);
|
final Locale locale = Locale.forLanguageTag(languageTag);
|
||||||
assumeFalse(LocaleUtils.isLanguageUndetermined(locale), () -> toFailureMessage(locale, languageTag));
|
assumeFalse(LocaleUtils.isLanguageUndetermined(locale), () -> toFailureMessage(locale, languageTag));
|
||||||
assumeTrue(LocaleUtils.isAvailableLocale(locale), () -> toFailureMessage(locale, null));
|
assumeTrue(LocaleUtils.isAvailableLocale(locale), () -> toFailureMessage(locale, languageTag));
|
||||||
final TimeZone tzDefault = TimeZone.getTimeZone("Etc/UTC");
|
final TimeZone tzDefault = TimeZone.getTimeZone("Etc/UTC");
|
||||||
final FastDateParser parser = new FastDateParser("z", tzDefault, locale);
|
final FastDateParser parser = new FastDateParser("z", tzDefault, locale);
|
||||||
parser.parse("Horário do Meridiano de Greenwich");
|
parser.parse("Horário do Meridiano de Greenwich");
|
||||||
|
|
Loading…
Reference in New Issue