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 3131
3232import io .vertx .ext .unit .TestContext ;
3333
34+ import static org .assertj .core .api .Assertions .assertThat ;
3435import static org .hibernate .reactive .containers .DatabaseConfiguration .expectedDatatype ;
3536import static org .hibernate .reactive .containers .DatabaseConfiguration .getDatatypeQuery ;
3637
@@ -47,10 +48,9 @@ protected Collection<Class<?>> annotatedEntities() {
4748 private void testDatatype (TestContext context , String columnName , Class <?> type ) {
4849 test ( context , openSession ()
4950 .thenCompose ( s -> s
50- .createNativeQuery ( getDatatypeQuery ( BasicTypesTestEntity .TABLE_NAME , columnName ) )
51+ .createNativeQuery ( getDatatypeQuery ( BasicTypesTestEntity .TABLE_NAME , columnName ), String . class )
5152 .getSingleResult ()
52- .thenAccept ( result -> context .assertEquals ( expectedDatatype ( type ), toString ( result ) ) )
53- )
53+ .thenAccept ( typeOnTheDb -> assertThat ( toString ( typeOnTheDb ) ).isEqualTo ( expectedDatatype ( type ) ) ) )
5454 );
5555 }
5656
You can’t perform that action at this time.
0 commit comments