Class Node.SkipResult
java.lang.Object
org.junit.platform.engine.support.hierarchical.Node.SkipResult
- Enclosing interface:
Node<C extends EngineExecutionContext>
The result of determining whether the execution of a given
context
should be skipped.- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Node.SkipResultFactory for creating do not skip results.Get the reason that execution of the context should be skipped, if available.booleanWhether execution of the context should be skipped.static Node.SkipResultFactory for creating skipped results.toString()
-
Method Details
-
skip
Factory for creating skipped results.A context that is skipped will be not be executed.
- Parameters:
reason- the reason that the context should be skipped, may benull- Returns:
- a skipped
SkipResultwith the given reason
-
doNotSkip
Factory for creating do not skip results.A context that is not skipped will be executed as normal.
- Returns:
- a do not skip
SkipResult
-
isSkipped
public boolean isSkipped()Whether execution of the context should be skipped.- Returns:
trueif the execution should be skipped
-
getReason
-
toString
-