Modifier and Type | Class | Description |
---|---|---|
static class |
TestExecutionResult.Status |
Status of executing a single test or container.
|
Modifier and Type | Method | Description |
---|---|---|
static TestExecutionResult |
aborted(Throwable throwable) |
Create a
TestExecutionResult for an aborted execution
of a test or container with the supplied throwable . |
static TestExecutionResult |
failed(Throwable throwable) |
Create a
TestExecutionResult for a failed execution
of a test or container with the supplied throwable . |
TestExecutionResult.Status |
getStatus() |
Get the status of this result.
|
Optional<Throwable> |
getThrowable() |
Get the throwable that caused this result, if available.
|
static TestExecutionResult |
successful() |
Create a
TestExecutionResult for a successful execution
of a test or container. |
String |
toString() |
public static TestExecutionResult successful()
TestExecutionResult
for a successful execution
of a test or container.TestExecutionResult
; never null
public static TestExecutionResult aborted(Throwable throwable)
TestExecutionResult
for an aborted execution
of a test or container with the supplied throwable
.throwable
- the throwable that caused the aborted execution; may be
null
TestExecutionResult
; never null
public static TestExecutionResult failed(Throwable throwable)
TestExecutionResult
for a failed execution
of a test or container with the supplied throwable
.throwable
- the throwable that caused the failed execution; may be
null
TestExecutionResult
; never null
public TestExecutionResult.Status getStatus()
null
public Optional<Throwable> getThrowable()
Optional
containing the throwable; never null
but potentially emptyCopyright © 2019. All rights reserved.