Class TestExecutionResult
java.lang.Object
org.junit.platform.engine.TestExecutionResult
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStatus of executing a single test or container. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TestExecutionResult.Statusprivate static final TestExecutionResultprivate final Throwable -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTestExecutionResult(TestExecutionResult.Status status, Throwable throwable) -
Method Summary
Modifier and TypeMethodDescriptionstatic TestExecutionResultCreate aTestExecutionResultfor an aborted execution of a test or container with the suppliedthrowable.static TestExecutionResultCreate aTestExecutionResultfor a failed execution of a test or container with the suppliedthrowable.Get the status of this result.Get the throwable that caused this result, if available.static TestExecutionResultCreate aTestExecutionResultfor a successful execution of a test or container.toString()
-
Field Details
-
SUCCESSFUL_RESULT
-
status
-
throwable
-
-
Constructor Details
-
TestExecutionResult
-
-
Method Details
-
successful
Create aTestExecutionResultfor a successful execution of a test or container.- Returns:
- the
TestExecutionResult; nevernull
-
aborted
Create aTestExecutionResultfor an aborted execution of a test or container with the suppliedthrowable.- Parameters:
throwable- the throwable that caused the aborted execution; may benull- Returns:
- the
TestExecutionResult; nevernull
-
failed
Create aTestExecutionResultfor a failed execution of a test or container with the suppliedthrowable.- Parameters:
throwable- the throwable that caused the failed execution; may benull- Returns:
- the
TestExecutionResult; nevernull
-
getStatus
Get the status of this result.- Returns:
- the status; never
null
-
getThrowable
-
toString
-