java.lang.Object
org.junit.platform.engine.SelectorResolutionResult
SelectorResolutionResult
encapsulates the result of resolving a
DiscoverySelector
by a TestEngine
.
A SelectorResolutionResult
consists of a mandatory
Status
and an optional Throwable
.
- Since:
- 1.6
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SelectorResolutionResult
Create aSelectorResolutionResult
for a failed selector resolution.Get the status of this result.Get the throwable that caused this result, if available.static SelectorResolutionResult
resolved()
Create aSelectorResolutionResult
for a resolved selector.toString()
static SelectorResolutionResult
Create aSelectorResolutionResult
for an unresolved selector.
-
Method Details
-
resolved
Create aSelectorResolutionResult
for a resolved selector.- Returns:
- the
SelectorResolutionResult
; nevernull
-
unresolved
Create aSelectorResolutionResult
for an unresolved selector.- Returns:
- the
SelectorResolutionResult
; nevernull
-
failed
Create aSelectorResolutionResult
for a failed selector resolution.- Returns:
- the
SelectorResolutionResult
; nevernull
-
getStatus
Get the status of this result.- Returns:
- the status; never
null
-
getThrowable
Get the throwable that caused this result, if available.- Returns:
- an
Optional
containing the throwable; nevernull
but potentially empty
-
toString
-