public static interface PerProperty.Lifecycle
| Modifier and Type | Method and Description | 
|---|---|
default void | 
after(PropertyExecutionResult propertyExecutionResult)
Override if you want to perform some work once after the annotated property (or example). 
 | 
default void | 
before(PropertyLifecycleContext context)
Override if you want to perform some work once before the annotated property (or example). 
 | 
default PropertyExecutionResult | 
onFailure(PropertyExecutionResult propertyExecutionResult)
Override if you want to perform some work or run assertions if - and only if - the property failed. 
 | 
default void | 
onSuccess()
Override if you want to perform some work or run assertions if - and only if - the property succeeded. 
 | 
default java.util.Optional<ResolveParameterHook.ParameterSupplier> | 
resolve(ParameterResolutionContext parameterContext)
Override if you want to provide parameters for this property. 
 | 
default java.util.Optional<ResolveParameterHook.ParameterSupplier> resolve(ParameterResolutionContext parameterContext)
parameterContext - The object to retrieve information about the parameter to resolveOptional.of()default void before(PropertyLifecycleContext context)
context - The object to retrieve information about the current propertydefault void after(PropertyExecutionResult propertyExecutionResult)
propertyExecutionResult - The object to retrieve information about the property's execution resultdefault void onSuccess()
default PropertyExecutionResult onFailure(PropertyExecutionResult propertyExecutionResult)
propertyExecutionResult or transform it into another result.propertyExecutionResult - The object that represents the property's execution result