Skip to content

Update reason for disabling the test and formattation #2428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -189,27 +189,26 @@ public void testQueryUpdateWithParameters(VertxTestContext context) {
}

@Test
@DisabledFor( value = POSTGRESQL, reason = "vertx-sql-client issue: https://github.com/eclipse-vertx/vertx-sql-client/issues/1540" )
@DisabledFor(value = POSTGRESQL, reason = "https://github.com/hibernate/hibernate-reactive/issues/2412")
public void testHqlInsertWithTransaction(VertxTestContext context) {
Integer id = 1;
String title = "Spell Book: A Comprehensive Guide to Magic Spells and Incantations";
test( context, getMutinySessionFactory()
.withTransaction( session -> session.createMutationQuery( "insert into SpellBook (id, title, forbidden) values (:id, :title, :forbidden)" )
final Integer id = 1;
final String title = "Spell Book: A Comprehensive Guide to Magic Spells and Incantations";
test( context, getMutinySessionFactory().withTransaction( session -> session
.createMutationQuery( "insert into SpellBook (id, title, forbidden) values (:id, :title, :forbidden)" )
.setParameter( "id", id )
.setParameter( "title", title )
.setParameter( "forbidden", true )
.executeUpdate() )
.call( () -> getMutinySessionFactory().withTransaction( session -> session
.createSelectionQuery( "from SpellBook g where g.id = :id ", SpellBook.class )
.setParameter( "id", id )
.setParameter( "title", title )
.setParameter( "forbidden", true )
.executeUpdate()
).call( () -> getMutinySessionFactory()
.withTransaction( session -> session.createSelectionQuery( "from SpellBook g where g.id = :id ", SpellBook.class )
.setParameter( "id", id )
.getSingleResult()
.invoke( spellBook -> {
assertThat( spellBook.getTitle() ).isEqualTo( title );
assertThat( spellBook.forbidden ).isTrue();
}
)
.getSingleResult()
.invoke( spellBook -> {
assertThat( spellBook.getTitle() ).isEqualTo( title );
assertThat( spellBook.forbidden ).isTrue();
}
)
)
) )
);
}

Expand Down
Loading