Package net.jqwik.api.lifecycle
Annotation Interface AddLifecycleHook
@Target({ANNOTATION_TYPE,METHOD,TYPE})
@Retention(RUNTIME)
@Repeatable(LifecycleHooks.class)
@Inherited
@API(status=MAINTAINED,
since="1.4.0")
public @interface AddLifecycleHook
Use to register a concrete lifecycle hook implementation
for a test element -- a container class or a property method. More than one
hook can be registered.
This annotation can be used as meta annotation for self-made ones.
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionOverride the propagation mode specified in LifecycleHook.propagateTo().
-
Element Details
-
value
Class<? extends LifecycleHook> value- Returns:
- Concrete lifecycle hook implementation class
-
-
-
propagateTo
PropagationMode propagateToOverride the propagation mode specified in LifecycleHook.propagateTo().- Returns:
- Propagation mode enum value
- Default:
- NOT_SET
-