File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
hibernate-reactive-core/src/test/java/org/hibernate/reactive/schema Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 31
31
32
32
import io .vertx .ext .unit .TestContext ;
33
33
34
+ import static org .assertj .core .api .Assertions .assertThat ;
34
35
import static org .hibernate .reactive .containers .DatabaseConfiguration .expectedDatatype ;
35
36
import static org .hibernate .reactive .containers .DatabaseConfiguration .getDatatypeQuery ;
36
37
@@ -47,10 +48,9 @@ protected Collection<Class<?>> annotatedEntities() {
47
48
private void testDatatype (TestContext context , String columnName , Class <?> type ) {
48
49
test ( context , openSession ()
49
50
.thenCompose ( s -> s
50
- .createNativeQuery ( getDatatypeQuery ( BasicTypesTestEntity .TABLE_NAME , columnName ) )
51
+ .createNativeQuery ( getDatatypeQuery ( BasicTypesTestEntity .TABLE_NAME , columnName ), String . class )
51
52
.getSingleResult ()
52
- .thenAccept ( result -> context .assertEquals ( expectedDatatype ( type ), toString ( result ) ) )
53
- )
53
+ .thenAccept ( typeOnTheDb -> assertThat ( toString ( typeOnTheDb ) ).isEqualTo ( expectedDatatype ( type ) ) ) )
54
54
);
55
55
}
56
56
You can’t perform that action at this time.
0 commit comments