Package net.jqwik.api.lifecycle
Interface PerProperty.Lifecycle
- Enclosing class:
- PerProperty
public static interface PerProperty.Lifecycle
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidafter(PropertyExecutionResult propertyExecutionResult) Override if you want to perform some work once after the annotated property (or example).default voidbefore(PropertyLifecycleContext context) Override if you want to perform some work once before the annotated property (or example).default PropertyExecutionResultonFailure(PropertyExecutionResult propertyExecutionResult) Override if you want to perform some work or run assertions if - and only if - the property failed.default voidOverride if you want to perform some work or run assertions if - and only if - the property succeeded.resolve(ParameterResolutionContext parameterContext) Override if you want to provide parameters for this property.
- 
Method Details- 
resolvedefault Optional<ResolveParameterHook.ParameterSupplier> resolve(ParameterResolutionContext parameterContext) Override if you want to provide parameters for this property.- Parameters:
- parameterContext- The object to retrieve information about the parameter to resolve
- Returns:
- a supplier wrapped in Optional.of()
 
- 
beforeOverride if you want to perform some work once before the annotated property (or example).- Parameters:
- context- The object to retrieve information about the current property
 
- 
afterOverride if you want to perform some work once after the annotated property (or example).- Parameters:
- propertyExecutionResult- The object to retrieve information about the property's execution result
 
- 
onSuccessdefault void onSuccess()Override if you want to perform some work or run assertions if - and only if - the property succeeded. If you want to make the property fail just use an appropriate assertion methods or throw an exception.
- 
onFailureOverride if you want to perform some work or run assertions if - and only if - the property failed. You have to return the originalpropertyExecutionResultor transform it into another result.- Parameters:
- propertyExecutionResult- The object that represents the property's execution result
 
 
-