AssertionFailedError
is a common base class for test-related
AssertionErrors
.AssertionFailedError
with an empty message, no
cause, and no expected/actual values.AssertionFailedError
with a message, no cause,
and no expected/actual values.AssertionFailedError
with a message and
expected/actual values but without a cause.AssertionFailedError
with a message and a cause
but without expected/actual values.AssertionFailedError
with a message,
expected/actual values, and a cause.ValueWrapper
for the supplied value
.ValueWrapper
for the supplied value
using the supplied custom stringRepresentation
.null
.create()
.null
.null
if the value is
null
.RuntimeException
used to indicate that the execution of a test
was incomplete — for example, that the execution was entirely
skipped or aborted mid-stream.true
if an actual value was supplied via an
appropriate constructor.true
if an expected value was supplied via an
appropriate constructor.MultipleFailuresError
is an AssertionError
that aggregates
multiple failures thrown in a given context (i.e., typically within the
invocation of a single test).MultipleFailuresError
with the supplied heading and
failures.AssertionErrors
and
RuntimeExceptions
for testing
frameworks on the JVM.IncompleteExecutionException
used to indicate
that a test was aborted during execution (e.g., due to a failed
assumption).IncompleteExecutionException
used to indicate
that a test was skipped prior to execution (e.g., disabled
or ignored).Throwable.toString()
.