Skip to content

Commit

Permalink
fixed tests with incorrect nanos specified in assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
jdereg committed Jan 29, 2024
1 parent f9f3fce commit fa1df38
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/test/java/com/cedarsoftware/util/convert/ConverterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.OffsetDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.ArrayList;
Expand Down Expand Up @@ -797,7 +796,6 @@ void testStringDateWithTimeZoneToLocalDateTime(String date) {
}


/*
@ParameterizedTest
@MethodSource("dateStringInIsoOffsetDateTimeWithMillis")
void testStringDateWithTimeZoneToLocalDateTimeIncludeMillis(String date) {
Expand All @@ -811,7 +809,7 @@ void testStringDateWithTimeZoneToLocalDateTimeIncludeMillis(String date) {
.hasHour(23)
.hasMinute(59)
.hasSecond(59)
.hasNano(959);
.hasNano(959 * 1_000_000);
}

@ParameterizedTest
Expand All @@ -827,13 +825,9 @@ void testStringDateWithTimeZoneToLocalDateTimeWithZone(String date) {
.hasHour(23)
.hasMinute(59)
.hasSecond(59)
.hasNano(959);
.hasNano(959 * 1_000_000);
}
*/





private static Stream<Arguments> epochMillis_withLocalDateTimeInformation() {
return Stream.of(
Arguments.of(1687622249729L, TOKYO, LDT_2023_TOKYO),
Expand Down

0 comments on commit fa1df38

Please sign in to comment.