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 bb570f523 Add @DefaultLocale(language = "en")
bb570f523 is described below

commit bb570f523861b55dc27ce367f8ecf1dcec56a715
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Aug 24 16:56:48 2025 -0400

    Add @DefaultLocale(language = "en")
---
 src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java | 6 ++++++
 1 file changed, 6 insertions(+)

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 b26bd6d14..de0766bd5 100644
--- a/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
@@ -1308,6 +1308,7 @@ void testToCalendarWithTimeZoneNull() {
 
     @ParameterizedTest
     @MethodSource("testToLocalDateTimeTimeZone")
+    @DefaultLocale(language = "en")
     @DefaultTimeZone("GMT")
     void testToLocalDateTime(final LocalDateTime expected, final Date date, 
final TimeZone timeZone) {
         assertEquals(LocalDateTime.ofInstant(date.toInstant(), 
ZoneId.systemDefault()), DateUtils.toLocalDateTime(date),
@@ -1316,6 +1317,7 @@ void testToLocalDateTime(final LocalDateTime expected, 
final Date date, final Ti
 
     @ParameterizedTest
     @MethodSource("testToLocalDateTimeTimeZone")
+    @DefaultLocale(language = "en")
     @DefaultTimeZone("GMT")
     void testToLocalDateTimeTimeZoneGmt(final LocalDateTime expected, final 
Date date, final TimeZone timeZone) {
         assertEquals(expected, DateUtils.toLocalDateTime(date, timeZone),
@@ -1324,6 +1326,7 @@ void testToLocalDateTimeTimeZoneGmt(final LocalDateTime 
expected, final Date dat
 
     @ParameterizedTest
     @MethodSource("testToLocalDateTimeTimeZone")
+    @DefaultLocale(language = "en")
     @DefaultTimeZone("GMT")
     void testToOffsetDateTimeGmt(final LocalDateTime expected, final Date 
date, final TimeZone timeZone) {
         final OffsetDateTime offsetDateTime = DateUtils.toOffsetDateTime(date);
@@ -1333,6 +1336,7 @@ void testToOffsetDateTimeGmt(final LocalDateTime 
expected, final Date date, fina
 
     @ParameterizedTest
     @MethodSource("testToLocalDateTimeTimeZone")
+    @DefaultLocale(language = "en")
     @DefaultTimeZone("GMT")
     void testToOffsetDateTimeTimeZoneGmt(final LocalDateTime expected, final 
Date date, final TimeZone timeZone) {
         assertEquals(expected, DateUtils.toOffsetDateTime(date, 
timeZone).toLocalDateTime(),
@@ -1341,6 +1345,7 @@ void testToOffsetDateTimeTimeZoneGmt(final LocalDateTime 
expected, final Date da
 
     @ParameterizedTest
     @MethodSource("testToLocalDateTimeTimeZone")
+    @DefaultLocale(language = "en")
     @DefaultTimeZone("GMT")
     void testToZonedDateTimeGmt(final LocalDateTime expected, final Date date, 
final TimeZone timeZone) {
         final ZonedDateTime zonedDateTime = DateUtils.toZonedDateTime(date);
@@ -1352,6 +1357,7 @@ void testToZonedDateTimeGmt(final LocalDateTime expected, 
final Date date, final
     }
 
     @ParameterizedTest
+    @DefaultLocale(language = "en")
     @MethodSource("testToLocalDateTimeTimeZone")
     @DefaultTimeZone("GMT")
     void testToZonedDateTimeTimeZoneGmt(final LocalDateTime expected, final 
Date date, final TimeZone timeZone) {

Reply via email to