@@ -189,27 +189,26 @@ public void testQueryUpdateWithParameters(VertxTestContext context) {
189189 }
190190
191191 @ Test
192- @ DisabledFor ( value = POSTGRESQL , reason = "vertx-sql-client issue: https://github.com/eclipse-vertx/vertx-sql-client /issues/1540" )
192+ @ DisabledFor (value = POSTGRESQL , reason = "https://github.com/hibernate/hibernate-reactive /issues/2412" )
193193 public void testHqlInsertWithTransaction (VertxTestContext context ) {
194- Integer id = 1 ;
195- String title = "Spell Book: A Comprehensive Guide to Magic Spells and Incantations" ;
196- test ( context , getMutinySessionFactory ()
197- .withTransaction ( session -> session .createMutationQuery ( "insert into SpellBook (id, title, forbidden) values (:id, :title, :forbidden)" )
194+ final Integer id = 1 ;
195+ final String title = "Spell Book: A Comprehensive Guide to Magic Spells and Incantations" ;
196+ test ( context , getMutinySessionFactory ().withTransaction ( session -> session
197+ .createMutationQuery ( "insert into SpellBook (id, title, forbidden) values (:id, :title, :forbidden)" )
198+ .setParameter ( "id" , id )
199+ .setParameter ( "title" , title )
200+ .setParameter ( "forbidden" , true )
201+ .executeUpdate () )
202+ .call ( () -> getMutinySessionFactory ().withTransaction ( session -> session
203+ .createSelectionQuery ( "from SpellBook g where g.id = :id " , SpellBook .class )
198204 .setParameter ( "id" , id )
199- .setParameter ( "title" , title )
200- .setParameter ( "forbidden" , true )
201- .executeUpdate ()
202- ).call ( () -> getMutinySessionFactory ()
203- .withTransaction ( session -> session .createSelectionQuery ( "from SpellBook g where g.id = :id " , SpellBook .class )
204- .setParameter ( "id" , id )
205- .getSingleResult ()
206- .invoke ( spellBook -> {
207- assertThat ( spellBook .getTitle () ).isEqualTo ( title );
208- assertThat ( spellBook .forbidden ).isTrue ();
209- }
210- )
205+ .getSingleResult ()
206+ .invoke ( spellBook -> {
207+ assertThat ( spellBook .getTitle () ).isEqualTo ( title );
208+ assertThat ( spellBook .forbidden ).isTrue ();
209+ }
211210 )
212- )
211+ ) )
213212 );
214213 }
215214
0 commit comments