Package net.jqwik.api.lifecycle
Interface TryExecutionResult
- 
 @API(status=MAINTAINED, since="1.4.0") public interface TryExecutionResultRepresents the result of calling a property method with a list of parameters.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classTryExecutionResult.StatusStatus of running a single try.
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static TryExecutionResultfalsified(java.lang.Throwable throwable)Create a result that falsified the current property and will immediately finish this property as failed.static TryExecutionResultinvalid()Create a result that calls out the current parameter list as invalid.static TryExecutionResultinvalid(java.lang.Throwable throwable)Create a result that calls out the current parameter list as invalid.default booleanisFalsified()default booleanisInvalid()default booleanisSatisfied()static TryExecutionResultsatisfied()Create a result that satisfies the current property with the current parameter set.static TryExecutionResultsatisfied(boolean shouldPropertyFinishEarly)Create a result that satisfies the current property and will immediately finish this property as successful.booleanshouldPropertyFinishEarly()TryExecutionResult.Statusstatus()java.util.Optional<java.lang.Throwable>throwable()Will returnOptional.empty()if status is anything but TryExecutionResult.Status.FALSIFIED.
 
- 
- 
- 
Method Detail- 
satisfiedstatic TryExecutionResult satisfied() Create a result that satisfies the current property with the current parameter set. All remaining tries to be executed.- Returns:
- result instance
 
 - 
satisfiedstatic TryExecutionResult satisfied(boolean shouldPropertyFinishEarly) Create a result that satisfies the current property and will immediately finish this property as successful.- Returns:
- result instance
 
 - 
falsifiedstatic TryExecutionResult falsified(java.lang.Throwable throwable) Create a result that falsified the current property and will immediately finish this property as failed.- Parameters:
- throwable- The throwable to describe the reason of falsification
- Returns:
- result instance
 
 - 
invalidstatic TryExecutionResult invalid(java.lang.Throwable throwable) Create a result that calls out the current parameter list as invalid. All remaining tries will be executed.- Parameters:
- throwable- A (potentially null) exception. Usually of type TestAbortedException.
- Returns:
- result instance
 
 - 
invalidstatic TryExecutionResult invalid() Create a result that calls out the current parameter list as invalid. All remaining tries will be executed.- Returns:
- result instance
 
 - 
isSatisfieddefault boolean isSatisfied() - Returns:
- true if status is satisfied
 
 - 
isFalsifieddefault boolean isFalsified() - Returns:
- true if status is falsified
 
 - 
isInvaliddefault boolean isInvalid() - Returns:
- true if status is invalid
 
 - 
statusTryExecutionResult.Status status() - Returns:
- Status enum
 
 - 
throwablejava.util.Optional<java.lang.Throwable> throwable() Will returnOptional.empty()if status is anything but TryExecutionResult.Status.FALSIFIED.- Returns:
- instance of Throwable or subtype
 
 - 
shouldPropertyFinishEarlyboolean shouldPropertyFinishEarly() - Returns:
- true if status is satisfied and remaining tries shall be skipped
 
 
- 
 
-