Class MutableTestExecutionSummary.DefaultFailure
- java.lang.Object
-
- org.junit.platform.launcher.listeners.MutableTestExecutionSummary.DefaultFailure
-
- All Implemented Interfaces:
java.io.Serializable
,TestExecutionSummary.Failure
- Enclosing class:
- MutableTestExecutionSummary
private static class MutableTestExecutionSummary.DefaultFailure extends java.lang.Object implements TestExecutionSummary.Failure
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Throwable
exception
private static long
serialVersionUID
private TestIdentifier
testIdentifier
-
Constructor Summary
Constructors Constructor Description DefaultFailure(TestIdentifier testIdentifier, java.lang.Throwable exception)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
getException()
Get theThrowable
causing the failure.TestIdentifier
getTestIdentifier()
Get the identifier of the failed test or container.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
testIdentifier
private final TestIdentifier testIdentifier
-
exception
private final java.lang.Throwable exception
-
-
Constructor Detail
-
DefaultFailure
DefaultFailure(TestIdentifier testIdentifier, java.lang.Throwable exception)
-
-
Method Detail
-
getTestIdentifier
public TestIdentifier 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
public java.lang.Throwable 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
-
-