Package net.jqwik.api.lifecycle
Class SkipExecutionHook.SkipResult
java.lang.Object
net.jqwik.api.lifecycle.SkipExecutionHook.SkipResult
- Enclosing interface:
- SkipExecutionHook
-
Method Summary
Modifier and TypeMethodDescriptionstatic SkipExecutionHook.SkipResultCreate instance of SkipExecutionHook.SkipResult to make the current element not being skipped.booleanWhether execution of the context should be skipped.reason()Get the reason that execution of the context should be skipped, if available.static SkipExecutionHook.SkipResultCreate instance of SkipExecutionHook.SkipResult to make the current element being skipped.toString()
-
Method Details
-
skip
Create instance of SkipExecutionHook.SkipResult to make the current element being skipped.- Parameters:
reason- String to describe why the element will be skipped- Returns:
- instance of SkipExecutionHook.SkipResult
-
doNotSkip
Create instance of SkipExecutionHook.SkipResult to make the current element not being skipped.- Returns:
- instance of SkipExecutionHook.SkipResult
-
isSkipped
public boolean isSkipped()Whether execution of the context should be skipped.- Returns:
trueif the execution should be skipped
-
reason
Get the reason that execution of the context should be skipped, if available. Might not be present, especially when using doNotSkip().- Returns:
- instance of Optional<SkipExecutionHook.SkipResult>
-
toString
-