Class FailureReporter
java.lang.Object
com.shaft.tools.io.internal.FailureReporter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidfailAssertion(String message) Reports a failed assertion checkpoint and throws anAssertionErrorso test runners classify it as a test failure rather than an execution error.static StringgetRootCause(Throwable throwable)
-
Constructor Details
-
FailureReporter
public FailureReporter()
-
-
Method Details
-
fail
-
fail
-
failAssertion
Reports a failed assertion checkpoint and throws anAssertionErrorso test runners classify it as a test failure rather than an execution error. Use this for assertion outcomes; usefail(String)for execution failures — the exception type is never inferred from the message text.- Parameters:
message- the assertion failure message
-
getRootCause
-