You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/08/24 20:58:40 UTC

(commons-lang) branch master updated: Use @DefaultLocale(language = "en", country = "US") for some tests

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


The following commit(s) were added to refs/heads/master by this push:
     new 406de7827 Use @DefaultLocale(language = "en", country = "US") for some tests
406de7827 is described below

commit 406de7827eb9fdb93a0cbb27936349abd75450bb
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 24 16:58:35 2025 -0400

    Use @DefaultLocale(language = "en", country = "US") for some tests
---
 .../java/org/apache/commons/lang3/time/DateUtilsTest.java    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java b/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
index de0766bd5..82399125e 100644
--- a/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
@@ -1308,7 +1308,7 @@ void testToCalendarWithTimeZoneNull() {
 
     @ParameterizedTest
     @MethodSource("testToLocalDateTimeTimeZone")
-    @DefaultLocale(language = "en")
+    @DefaultLocale(language = "en", country = "US")
     @DefaultTimeZone("GMT")
     void testToLocalDateTime(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
         assertEquals(LocalDateTime.ofInstant(date.toInstant(), ZoneId.systemDefault()), DateUtils.toLocalDateTime(date),
@@ -1317,7 +1317,7 @@ void testToLocalDateTime(final LocalDateTime expected, final Date date, final Ti
 
     @ParameterizedTest
     @MethodSource("testToLocalDateTimeTimeZone")
-    @DefaultLocale(language = "en")
+    @DefaultLocale(language = "en", country = "US")
     @DefaultTimeZone("GMT")
     void testToLocalDateTimeTimeZoneGmt(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
         assertEquals(expected, DateUtils.toLocalDateTime(date, timeZone),
@@ -1326,7 +1326,7 @@ void testToLocalDateTimeTimeZoneGmt(final LocalDateTime expected, final Date dat
 
     @ParameterizedTest
     @MethodSource("testToLocalDateTimeTimeZone")
-    @DefaultLocale(language = "en")
+    @DefaultLocale(language = "en", country = "US")
     @DefaultTimeZone("GMT")
     void testToOffsetDateTimeGmt(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
         final OffsetDateTime offsetDateTime = DateUtils.toOffsetDateTime(date);
@@ -1336,7 +1336,7 @@ void testToOffsetDateTimeGmt(final LocalDateTime expected, final Date date, fina
 
     @ParameterizedTest
     @MethodSource("testToLocalDateTimeTimeZone")
-    @DefaultLocale(language = "en")
+    @DefaultLocale(language = "en", country = "US")
     @DefaultTimeZone("GMT")
     void testToOffsetDateTimeTimeZoneGmt(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
         assertEquals(expected, DateUtils.toOffsetDateTime(date, timeZone).toLocalDateTime(),
@@ -1345,7 +1345,7 @@ void testToOffsetDateTimeTimeZoneGmt(final LocalDateTime expected, final Date da
 
     @ParameterizedTest
     @MethodSource("testToLocalDateTimeTimeZone")
-    @DefaultLocale(language = "en")
+    @DefaultLocale(language = "en", country = "US")
     @DefaultTimeZone("GMT")
     void testToZonedDateTimeGmt(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
         final ZonedDateTime zonedDateTime = DateUtils.toZonedDateTime(date);
@@ -1357,7 +1357,7 @@ void testToZonedDateTimeGmt(final LocalDateTime expected, final Date date, final
     }
 
     @ParameterizedTest
-    @DefaultLocale(language = "en")
+    @DefaultLocale(language = "en", country = "US")
     @MethodSource("testToLocalDateTimeTimeZone")
     @DefaultTimeZone("GMT")
     void testToZonedDateTimeTimeZoneGmt(final LocalDateTime expected, final Date date, final TimeZone timeZone) {