Package org.junit.platform.engine
Class TestExecutionResult
- java.lang.Object
-
- org.junit.platform.engine.TestExecutionResult
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestExecutionResult.StatusStatus of executing a single test or container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TestExecutionResultaborted(Throwable throwable)Obtain aTestExecutionResultfor an aborted execution of a test or container with the suppliedthrowable.static TestExecutionResultfailed(Throwable throwable)Obtain aTestExecutionResultfor a failed execution of a test or container with the suppliedthrowable.TestExecutionResult.StatusgetStatus()Get the status of this result.Optional<Throwable>getThrowable()Get the throwable that caused this result, if available.static TestExecutionResultsuccessful()Obtain aTestExecutionResultfor a successful execution of a test or container.StringtoString()
-
-
-
Method Detail
-
successful
public static TestExecutionResult successful()
Obtain aTestExecutionResultfor a successful execution of a test or container.
-
aborted
public static TestExecutionResult aborted(Throwable throwable)
Obtain aTestExecutionResultfor an aborted execution of a test or container with the suppliedthrowable.- Parameters:
throwable- the throwable that caused the aborted execution; may be null
-
failed
public static TestExecutionResult failed(Throwable throwable)
Obtain aTestExecutionResultfor a failed execution of a test or container with the suppliedthrowable.- Parameters:
throwable- the throwable that caused the failed execution; may be null
-
getStatus
public TestExecutionResult.Status getStatus()
Get the status of this result.
-
getThrowable
public Optional<Throwable> getThrowable()
Get the throwable that caused this result, if available.
-
-