Class MutableTestExecutionSummary.DefaultFailure
java.lang.Object
org.junit.platform.launcher.listeners.MutableTestExecutionSummary.DefaultFailure
- All Implemented Interfaces:
Serializable
,TestExecutionSummary.Failure
- Enclosing class:
MutableTestExecutionSummary
private static class MutableTestExecutionSummary.DefaultFailure
extends Object
implements TestExecutionSummary.Failure
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Throwable
private static final long
private final TestIdentifier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet theThrowable
causing the failure.Get the identifier of the failed test or container.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
testIdentifier
-
exception
-
-
Constructor Details
-
DefaultFailure
DefaultFailure(TestIdentifier testIdentifier, Throwable exception)
-
-
Method Details
-
getTestIdentifier
Description copied from interface:TestExecutionSummary.Failure
Get the identifier of the failed test or container.- Specified by:
getTestIdentifier
in interfaceTestExecutionSummary.Failure
- Returns:
- the
TestIdentifier
for this failure; nevernull
-
getException
Description copied from interface:TestExecutionSummary.Failure
Get theThrowable
causing the failure.- Specified by:
getException
in interfaceTestExecutionSummary.Failure
- Returns:
- the
Throwable
for this failure; nevernull
-