Better test failure message

This commit is contained in:
Gary Gregory 2023-08-10 14:03:49 -04:00
parent 5440b186d4
commit c6ac3119bb
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ public class FastDateParser_TimeZoneStrategyTest extends AbstractLangTest {
private void testTimeZoneStrategyPattern(final String languageTag) throws ParseException {
final Locale locale = Locale.forLanguageTag(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 FastDateParser parser = new FastDateParser("z", tzDefault, locale);
parser.parse("Horário do Meridiano de Greenwich");