Skip to content

Commit

Permalink
user truncatedTo method
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikita Piatlitski committed Nov 25, 2024
1 parent 33f0d23 commit b535aa0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ void objectWithCalendarField(int converterOption) {
@ParameterizedTest
@ValueSource(ints = {0, 1})
void objectWithInstantField(int converterOption) {
Instant instant = Instant.ofEpochMilli(Instant.now().toEpochMilli()); //to truncate nanos
Instant instant = Instant.now().truncatedTo(ChronoUnit.MILLIS);
DocumentWithInstant object = new DocumentWithInstant(id, instant);

BiConsumer<DocumentWithInstant, DocumentWithInstant> objectAssertFunction = (expected, actual) -> {
Expand Down

0 comments on commit b535aa0

Please sign in to comment.