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 21:12:17 UTC

(commons-lang) 01/02: Rename some test methods

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 ace5aae4bd46f44888dc062d654b3a93ace8027d
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 24 17:00:56 2025 -0400

    Rename some test methods
---
 src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java | 10 +++++-----
 1 file changed, 5 insertions(+), 5 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 82399125e..74e5421e2 100644
--- a/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
@@ -1319,7 +1319,7 @@ void testToLocalDateTime(final LocalDateTime expected, final Date date, final Ti
     @MethodSource("testToLocalDateTimeTimeZone")
     @DefaultLocale(language = "en", country = "US")
     @DefaultTimeZone("GMT")
-    void testToLocalDateTimeTimeZoneGmt(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
+    void testToLocalDateTimeTimeZone(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
         assertEquals(expected, DateUtils.toLocalDateTime(date, timeZone),
                 () -> String.format("expected = %s, date = %s, timeZone = %s, TimeZone.getDefault() = %s", expected, date, timeZone, TimeZone.getDefault()));
     }
@@ -1328,7 +1328,7 @@ void testToLocalDateTimeTimeZoneGmt(final LocalDateTime expected, final Date dat
     @MethodSource("testToLocalDateTimeTimeZone")
     @DefaultLocale(language = "en", country = "US")
     @DefaultTimeZone("GMT")
-    void testToOffsetDateTimeGmt(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
+    void testToOffsetDateTime(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
         final OffsetDateTime offsetDateTime = DateUtils.toOffsetDateTime(date);
         assertEquals(OffsetDateTime.ofInstant(date.toInstant(), ZoneId.systemDefault()), offsetDateTime,
                 () -> String.format("expected = %s, date = %s, timeZone = %s, TimeZone.getDefault() = %s", expected, date, timeZone, TimeZone.getDefault()));
@@ -1338,7 +1338,7 @@ void testToOffsetDateTimeGmt(final LocalDateTime expected, final Date date, fina
     @MethodSource("testToLocalDateTimeTimeZone")
     @DefaultLocale(language = "en", country = "US")
     @DefaultTimeZone("GMT")
-    void testToOffsetDateTimeTimeZoneGmt(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
+    void testToOffsetDateTimeTimeZone(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
         assertEquals(expected, DateUtils.toOffsetDateTime(date, timeZone).toLocalDateTime(),
                 () -> String.format("expected = %s, date = %s, timeZone = %s, TimeZone.getDefault() = %s", expected, date, timeZone, TimeZone.getDefault()));
     }
@@ -1347,7 +1347,7 @@ void testToOffsetDateTimeTimeZoneGmt(final LocalDateTime expected, final Date da
     @MethodSource("testToLocalDateTimeTimeZone")
     @DefaultLocale(language = "en", country = "US")
     @DefaultTimeZone("GMT")
-    void testToZonedDateTimeGmt(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
+    void testToZonedDateTime(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
         final ZonedDateTime zonedDateTime = DateUtils.toZonedDateTime(date);
         assertEquals(ZonedDateTime.ofInstant(date.toInstant(), ZoneId.systemDefault()), zonedDateTime,
                 () -> String.format("expected = %s, date = %s, timeZone = %s, TimeZone.getDefault() = %s", expected, date, timeZone, TimeZone.getDefault()));
@@ -1360,7 +1360,7 @@ void testToZonedDateTimeGmt(final LocalDateTime expected, final Date date, final
     @DefaultLocale(language = "en", country = "US")
     @MethodSource("testToLocalDateTimeTimeZone")
     @DefaultTimeZone("GMT")
-    void testToZonedDateTimeTimeZoneGmt(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
+    void testToZonedDateTimeTimeZone(final LocalDateTime expected, final Date date, final TimeZone timeZone) {
         final ZonedDateTime zonedDateTime = DateUtils.toZonedDateTime(date, timeZone);
         assertEquals(expected, zonedDateTime.toOffsetDateTime().toLocalDateTime(),
                 () -> String.format("expected = %s, date = %s, timeZone = %s, TimeZone.getDefault() = %s", expected, date, timeZone, TimeZone.getDefault()));