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.Failure
getTestIdentifier
in interface TestExecutionSummary.Failure
TestIdentifier
for this failure; never null
public java.lang.Throwable getException()
TestExecutionSummary.Failure
Throwable
causing the failure.getException
in interface TestExecutionSummary.Failure
Throwable
for this failure; never null