Skip to content

Commit 7335e26

Browse files
committed
Reuse org.apache.commons.lang3.LocaleUtils#availableLocaleList()
1 parent 311290e commit 7335e26

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/test/java/org/apache/commons/lang3/time/FastDateParser_TimeZoneStrategyTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ public static void afterAll() {
6969
}
7070
}
7171

72-
public static Locale[] getAvailableLocalesSorted() {
73-
return ArraySorter.sort(Locale.getAvailableLocales(), Comparator.comparing(Locale::toString));
74-
}
75-
7672
@Test
7773
void testLang1219() throws ParseException {
7874
final FastDateParser parser = new FastDateParser("dd.MM.yyyy HH:mm:ss z", TimeZone.getDefault(), Locale.GERMAN);
@@ -82,13 +78,13 @@ void testLang1219() throws ParseException {
8278
}
8379

8480
@ParameterizedTest
85-
@MethodSource("org.apache.commons.lang3.time.FastDateParser_TimeZoneStrategyTest#getAvailableLocalesSorted")
81+
@MethodSource("org.apache.commons.lang3.LocaleUtils#availableLocaleList()")
8682
void testTimeZoneStrategy_DateFormatSymbols(final Locale locale) {
8783
testTimeZoneStrategyPattern_DateFormatSymbols_getZoneStrings(locale);
8884
}
8985

9086
@ParameterizedTest
91-
@MethodSource("org.apache.commons.lang3.time.FastDateParser_TimeZoneStrategyTest#getAvailableLocalesSorted")
87+
@MethodSource("org.apache.commons.lang3.LocaleUtils#availableLocaleList()")
9288
void testTimeZoneStrategy_TimeZone(final Locale locale) {
9389
testTimeZoneStrategyPattern_TimeZone_getAvailableIDs(locale);
9490
}

0 commit comments

Comments
 (0)