This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git

commit 07bcc200abc6bc0f20ac99bc9537b6c72e922e64
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Dec 19 17:33:21 2025 -0500

    Tests now traverse Locales deterministically
---
 .../org/apache/commons/lang3/time/Java15BugFastDateParserTest.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/lang3/time/Java15BugFastDateParserTest.java 
b/src/test/java/org/apache/commons/lang3/time/Java15BugFastDateParserTest.java
index fbbb8f0e6..ce4986d54 100644
--- 
a/src/test/java/org/apache/commons/lang3/time/Java15BugFastDateParserTest.java
+++ 
b/src/test/java/org/apache/commons/lang3/time/Java15BugFastDateParserTest.java
@@ -25,6 +25,7 @@
 import java.util.TimeZone;
 
 import org.apache.commons.lang3.AbstractLangTest;
+import org.apache.commons.lang3.LocaleUtils;
 import org.apache.commons.lang3.function.TriFunction;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.params.ParameterizedTest;
@@ -46,7 +47,7 @@ class Java15BugFastDateParserTest extends AbstractLangTest {
     void testJava15BuggyLocaleTest() throws ParseException {
         final String buggyLocaleName = "ff_LR_#Adlm";
         Locale buggyLocale = null;
-        for (final Locale locale : Locale.getAvailableLocales()) {
+        for (final Locale locale : LocaleUtils.availableLocaleList()) {
             if (buggyLocaleName.equals(locale.toString())) {
                 buggyLocale = locale;
                 break;
@@ -72,7 +73,7 @@ private void testLocales(final TriFunction<String, TimeZone, 
Locale, DateParser>
         if (eraBC) {
             cal.set(Calendar.ERA, GregorianCalendar.BC);
         }
-        for (final Locale locale : Locale.getAvailableLocales()) {
+        for (final Locale locale : LocaleUtils.availableLocaleList()) {
             // ja_JP_JP cannot handle dates before 1868 properly
             if (eraBC && locale.equals(FastDateParser.JAPANESE_IMPERIAL)) {
                 continue;

Reply via email to