private static class MutableTestExecutionSummary.DefaultFailure extends java.lang.Object implements TestExecutionSummary.Failure
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Throwable |
exception |
private TestIdentifier |
testIdentifier |
| Constructor and Description |
|---|
DefaultFailure(TestIdentifier testIdentifier,
java.lang.Throwable exception) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getException()
Get the
Throwable causing the failure. |
TestIdentifier |
getTestIdentifier()
Get the identifier of the failed test or container.
|
private final TestIdentifier testIdentifier
private final java.lang.Throwable exception
DefaultFailure(TestIdentifier testIdentifier, java.lang.Throwable exception)
public TestIdentifier getTestIdentifier()
TestExecutionSummary.FailuregetTestIdentifier in interface TestExecutionSummary.FailureTestIdentifier for this failure; never nullpublic java.lang.Throwable getException()
TestExecutionSummary.FailureThrowable causing the failure.getException in interface TestExecutionSummary.FailureThrowable for this failure; never null