TestExecutionResult encapsulates the result of executing a single test
or container.
A TestExecutionResult consists of a mandatory
Status and an optional Throwable.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | TestExecutionResult.
Status of executing a single test or container. |
| Modifier and Type | Field and Description |
|---|---|
| private final TestExecutionResult. | |
| private static final TestExecutionResult | |
| private final @Nullable Throwable |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TestExecutionResult | |
| public static TestExecutionResult | |
| public TestExecutionResult. | |
| public Optional | Returns: anOptional containing the throwable; never null
but potentially emptyGet the throwable that caused this result, if available. |
| public static TestExecutionResult | Returns: theTestExecutionResult; never nullCreate a |
| public String |
| status | back to summary |
|---|---|
| private final TestExecutionResult. | |
| SUCCESSFUL_RESULT | back to summary |
|---|---|
| private static final TestExecutionResult SUCCESSFUL_RESULT | |
| throwable | back to summary |
|---|---|
| private final @Nullable Throwable throwable | |
| TestExecutionResult | back to summary |
|---|---|
| private TestExecutionResult(TestExecutionResult. | |
| aborted | back to summary |
|---|---|
| public static TestExecutionResult aborted(@Nullable Throwable throwable) Create a
| |
| failed | back to summary |
|---|---|
| public static TestExecutionResult failed(@Nullable Throwable throwable) Create a
| |
| getStatus | back to summary |
|---|---|
| public TestExecutionResult. Get the status of this result.
| |
| getThrowable | back to summary |
|---|---|
| public Optional Get the throwable that caused this result, if available. | |
| successful | back to summary |
|---|---|
| public static TestExecutionResult successful() Create a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final TestExecutionResult. | ABORTED
Indicates that the execution of a test or container was aborted (started but not finished). |
| public static final TestExecutionResult. | FAILED
Indicates that the execution of a test or container failed. |
| public static final TestExecutionResult. | SUCCESSFUL
Indicates that the execution of a test or container was successful. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static TestExecutionResult. | |
| public static TestExecutionResult. |
| ABORTED | back to summary |
|---|---|
| public static final TestExecutionResult. Indicates that the execution of a test or container was aborted (started but not finished). | |
| FAILED | back to summary |
|---|---|
| public static final TestExecutionResult. Indicates that the execution of a test or container failed. | |
| SUCCESSFUL | back to summary |
|---|---|
| public static final TestExecutionResult. Indicates that the execution of a test or container was successful. | |
| Status | back to summary |
|---|---|
| private Status() | |
| valueOf | back to summary |
|---|---|
| public static TestExecutionResult. | |
| values | back to summary |
|---|---|
| public static TestExecutionResult. | |