File tree 1 file changed +2
-2
lines changed
hibernate-reactive-core/src/test/java/org/hibernate/reactive 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public void testFindWithStage(TestContext testContext) throws Exception {
85
85
testContext .assertNotNull ( e );
86
86
testContext .assertEquals ( CompletionException .class , e .getClass () );
87
87
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 () + ">" );
89
89
return null ;
90
90
} ) )
91
91
);
@@ -108,7 +108,7 @@ public void testOnPersistWithMutiny(TestContext testContext) throws Exception {
108
108
.onItem ().invoke ( v -> testContext .fail ( "We were expecting an exception" ) )
109
109
.onFailure ().recoverWithUni ( e -> {
110
110
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 () + ">" );
112
112
return Uni .createFrom ().voidItem ();
113
113
} ) )
114
114
);
You can’t perform that action at this time.
0 commit comments