-
|
I have a unit test Uni<String> toTest = Uni.createFrom().item("TEST");
toTest.subscribe().with(
result -> assertEquals("test",result),
failure -> {throw new RuntimeException("shit happend");}
);The UnitTest log shows the failure of the assertion, but doesn't fail the test. What do I miss? |
Beta Was this translation helpful? Give feedback.
Answered by
jponge
Aug 25, 2025
Replies: 1 comment
-
|
The callbacks are not going to throw an exception on the test runner thread. In such scenario you might want to use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Stwissel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The callbacks are not going to throw an exception on the test runner thread.
In such scenario you might want to use
uni.await()...so you block and await for the result (or failure, which will be thrown from the test runner thread)