@@ -189,27 +189,26 @@ public void testQueryUpdateWithParameters(VertxTestContext context) {
189
189
}
190
190
191
191
@ 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" )
193
193
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 )
198
204
.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
+ }
211
210
)
212
- )
211
+ ) )
213
212
);
214
213
}
215
214
0 commit comments