File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
hibernate-reactive-core/src/test/java/org/hibernate/reactive Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 55 */
66package org .hibernate .reactive ;
77
8+ import java .sql .Timestamp ;
89import java .time .LocalDateTime ;
910import java .time .OffsetDateTime ;
1011import java .util .ArrayList ;
3738
3839import static jakarta .persistence .CascadeType .PERSIST ;
3940import static jakarta .persistence .FetchType .LAZY ;
41+ import static org .assertj .core .api .Assertions .assertThat ;
4042import static org .hibernate .reactive .containers .DatabaseConfiguration .dbType ;
4143import static org .hibernate .reactive .testing .ReactiveAssertions .assertThrown ;
4244
@@ -535,7 +537,7 @@ public void testNamedNativeProjectionQuery(TestContext context) {
535537 public void testScalarQuery (TestContext context ) {
536538 test ( context , openSession ()
537539 .thenCompose ( s -> s .createNativeQuery ( selectCurrentTimestampQuery () ).getSingleResult () )
538- .thenAccept ( r -> context . assertTrue ( r instanceof OffsetDateTime || r instanceof LocalDateTime ) )
540+ .thenAccept ( r -> assertThat ( r ). isInstanceOfAny ( Timestamp . class , OffsetDateTime . class , LocalDateTime . class ) )
539541 );
540542 }
541543
You can’t perform that action at this time.
0 commit comments