Skip to content

Commit 9d36753

Browse files
committed
[#2398] Update reason for disabling the test and formattation
Better link to the Hibernate Reactive issue, instead of the Vert.x one.
1 parent b1fbde4 commit 9d36753

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

hibernate-reactive-core/src/test/java/org/hibernate/reactive/JoinedSubclassInheritanceTest.java

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)