EngineDiscoveryResult encapsulates the result of test discovery by a
org.junit.platform.engine.TestEngine .
A EngineDiscoveryResult consists of a mandatory
Status and an optional Throwable.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | EngineDiscoveryResult.
Status of test discovery by a
|
| Modifier and Type | Field and Description |
|---|---|
| private final EngineDiscoveryResult. | |
| private static final EngineDiscoveryResult | |
| private final @Nullable Throwable |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static EngineDiscoveryResult | |
| public EngineDiscoveryResult. | |
| public Optional | Returns: anOptional containing the throwable; never null
but potentially emptyGet the throwable that caused this result, if available. |
| public static EngineDiscoveryResult | Returns: theEngineDiscoveryResult; never nullCreate a |
| public String |
| status | back to summary |
|---|---|
| private final EngineDiscoveryResult. | |
| SUCCESSFUL_RESULT | back to summary |
|---|---|
| private static final EngineDiscoveryResult SUCCESSFUL_RESULT | |
| throwable | back to summary |
|---|---|
| private final @Nullable Throwable throwable | |
| EngineDiscoveryResult | back to summary |
|---|---|
| private EngineDiscoveryResult(EngineDiscoveryResult. | |
| failed | back to summary |
|---|---|
| public static EngineDiscoveryResult failed(@Nullable Throwable throwable) Create a
| |
| getStatus | back to summary |
|---|---|
| public EngineDiscoveryResult. 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 EngineDiscoveryResult 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-
| |
org.junit.platform.engine.TestEngine .
| Modifier and Type | Field and Description |
|---|---|
| public static final EngineDiscoveryResult. | FAILED
Indicates that test discovery has failed. |
| public static final EngineDiscoveryResult. | SUCCESSFUL
Indicates that test discovery was successful. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static EngineDiscoveryResult. | |
| public static EngineDiscoveryResult. |
| FAILED | back to summary |
|---|---|
| public static final EngineDiscoveryResult. Indicates that test discovery has failed. | |
| SUCCESSFUL | back to summary |
|---|---|
| public static final EngineDiscoveryResult. Indicates that test discovery was successful. | |
| Status | back to summary |
|---|---|
| private Status() | |
| valueOf | back to summary |
|---|---|
| public static EngineDiscoveryResult. | |
| values | back to summary |
|---|---|
| public static EngineDiscoveryResult. | |