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 5
5
*/
6
6
package org .hibernate .reactive ;
7
7
8
+ import java .sql .Timestamp ;
8
9
import java .time .LocalDateTime ;
9
10
import java .time .OffsetDateTime ;
10
11
import java .util .ArrayList ;
37
38
38
39
import static jakarta .persistence .CascadeType .PERSIST ;
39
40
import static jakarta .persistence .FetchType .LAZY ;
41
+ import static org .assertj .core .api .Assertions .assertThat ;
40
42
import static org .hibernate .reactive .containers .DatabaseConfiguration .dbType ;
41
43
import static org .hibernate .reactive .testing .ReactiveAssertions .assertThrown ;
42
44
@@ -535,7 +537,7 @@ public void testNamedNativeProjectionQuery(TestContext context) {
535
537
public void testScalarQuery (TestContext context ) {
536
538
test ( context , openSession ()
537
539
.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 ) )
539
541
);
540
542
}
541
543
You can’t perform that action at this time.
0 commit comments