From afb8f7e9bbf822a993fb8a8012b591e7abb21db5 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 10 Aug 2023 14:04:58 -0400 Subject: [PATCH] Fix test fixtures --- .../lang3/time/FastDateParser_TimeZoneStrategyTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java b/src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java index 3a1454fc3..46fbdd92b 100644 --- a/src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java +++ b/src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java @@ -79,13 +79,13 @@ public class FastDateParser_TimeZoneStrategyTest extends AbstractLangTest { } } - private void testTimeZoneStrategyPattern(final String languageTag) throws ParseException { + private void testTimeZoneStrategyPattern(final String languageTag, final String source) throws ParseException { final Locale locale = Locale.forLanguageTag(languageTag); assumeFalse(LocaleUtils.isLanguageUndetermined(locale), () -> toFailureMessage(locale, languageTag)); 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"); + parser.parse(source); testTimeZoneStrategyPattern(locale, tzDefault); } @@ -107,7 +107,7 @@ public class FastDateParser_TimeZoneStrategyTest extends AbstractLangTest { */ @Test public void testTimeZoneStrategyPatternPortugal() throws ParseException { - testTimeZoneStrategyPattern("pt_PT"); + testTimeZoneStrategyPattern("pt_PT", "Horário do Meridiano de Greenwich"); } /** @@ -123,6 +123,6 @@ public class FastDateParser_TimeZoneStrategyTest extends AbstractLangTest { */ @Test public void testTimeZoneStrategyPatternSuriname() throws ParseException { - testTimeZoneStrategyPattern("sr_ME_#Cyrl"); + testTimeZoneStrategyPattern("sr_ME_#Cyrl", "Srednje vreme po Griniču"); } }