Skip to content

Commit 221a9a8

Browse files
committed
fix
1 parent f6c4f31 commit 221a9a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void testFindWithStage(TestContext testContext) throws Exception {
8585
testContext.assertNotNull( e );
8686
testContext.assertEquals( CompletionException.class, e.getClass() );
8787
testContext.assertEquals( IllegalStateException.class, e.getCause().getClass() );
88-
testContext.assertTrue( e.getMessage().contains( ERROR_MESSAGE ) );
88+
testContext.assertTrue( e.getMessage().contains( ERROR_MESSAGE ), "Message was: <" + e.getMessage() + ">");
8989
return null;
9090
} ) )
9191
);
@@ -108,7 +108,7 @@ public void testOnPersistWithMutiny(TestContext testContext) throws Exception {
108108
.onItem().invoke( v -> testContext.fail( "We were expecting an exception" ) )
109109
.onFailure().recoverWithUni( e -> {
110110
testContext.assertEquals( IllegalStateException.class, e.getClass() );
111-
testContext.assertTrue( e.getMessage().contains( ERROR_MESSAGE ) );
111+
testContext.assertTrue( e.getMessage().contains( ERROR_MESSAGE ), "Message was: <" + e.getMessage() + ">");
112112
return Uni.createFrom().voidItem();
113113
} ) )
114114
);

0 commit comments

Comments
 (0)