Skip to content

Commit 2b1505e

Browse files
committed
[#1584] Update BasicTypesAndCallbacksForAllDBsTest
1 parent 81b96e2 commit 2b1505e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

hibernate-reactive-core/src/test/java/org/hibernate/reactive/types/BasicTypesAndCallbacksForAllDBsTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
import jakarta.persistence.Version;
6363

6464
import static org.hibernate.reactive.containers.DatabaseConfiguration.DBType.DB2;
65+
import static org.hibernate.reactive.testing.ReactiveAssertions.assertWithTruncationThat;
6566

6667
/**
6768
* Test all the types and lifecycle callbacks that we expect to work on all supported DBs
@@ -417,9 +418,7 @@ public void testInstant(TestContext context) {
417418

418419
testField( context, basic, found -> {
419420
context.assertNotNull( found.instant );
420-
// Without the truncated it fails with JDK 15+
421-
context.assertEquals( basic.instant.truncatedTo( ChronoUnit.MILLIS ),
422-
found.instant.truncatedTo( ChronoUnit.MILLIS ) );
421+
assertWithTruncationThat( found.instant ).isEqualTo( basic.instant );
423422
} );
424423
}
425424

0 commit comments

Comments
 (0)