Skip to content

Commit 744a867

Browse files
committed
Add test for oldest Date
1 parent 1b87490 commit 744a867

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ public static void classSetup() {
139139
private static Stream<Arguments> testToLocalDateTimeTimeZone() {
140140
// @formatter:off
141141
return Stream.of(
142+
Arguments.of(
143+
// -292275055-05-16T16:47:04.192
144+
LocalDateTime.of(-292275055, 5, 16, 16, 47, 04, 192_000_000),
145+
new Date(Long.MIN_VALUE),
146+
TimeZone.getTimeZone("GMT")
147+
),
142148
Arguments.of(
143149
LocalDateTime.ofInstant(Instant.EPOCH, TimeZone.getTimeZone("GMT").toZoneId()),
144150
java.sql.Timestamp.valueOf("1970-01-01 00:00:00"),

0 commit comments

Comments
 (0)