Class Node.SkipResult
- java.lang.Object
-
- org.junit.platform.engine.support.hierarchical.Node.SkipResult
-
- Enclosing interface:
- Node<C extends EngineExecutionContext>
public static class Node.SkipResult extends Object
The result of determining whether the execution of a givencontextshould be skipped.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Node.SkipResultdoNotSkip()Factory for creating do not skip results.Optional<String>getReason()Get the reason why execution of the context should be skipped, if available.booleanisSkipped()Whether execution of the context should be skipped.static Node.SkipResultskip(String reason)Factory for creating skipped results.StringtoString()
-
-
-
Method Detail
-
skip
public static Node.SkipResult skip(String reason)
Factory for creating skipped results.A context that is skipped will be not be executed.
- Parameters:
reason- the reason why the context should be skipped- Returns:
- a skipped
SkipResultwith the given reason
-
doNotSkip
public static Node.SkipResult 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
public Optional<String> getReason()
Get the reason why execution of the context should be skipped, if available.
-
-