Files
JUnit_Tutorials/extendwith/output/06-exception-handler.txt
T
2026-11-06 21:43:57 +05:30

11 lines
631 B
Plaintext

ExceptionHandlerFixture (@ExtendWith(NetworkTimeoutHandler.class))
test passes
NetworkTimeoutHandler swallowed NetworkTimeoutException in remoteServiceTimesOut()
NetworkTimeoutHandler rethrowing AssertionFailedError in assertionStillFails()
NetworkTimeoutHandler rethrowing IllegalStateException in realBug()
-- results
passes() -> SUCCESSFUL
remoteServiceTimesOut() -> ABORTED (TestAbortedException: remote service unavailable: no answer from payments after 2000 ms)
assertionStillFails() -> FAILED (AssertionFailedError: expected: <4> but was: <5>)
realBug() -> FAILED (IllegalStateException: total is negative)