Package net.jqwik.api.lifecycle
Annotation Type AddLifecycleHook
-
@Target({ANNOTATION_TYPE,METHOD,TYPE}) @Retention(RUNTIME) @Repeatable(LifecycleHooks.class) @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
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends LifecycleHook>
value
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description PropagationMode
propagateTo
Override the propagation mode specified in LifecycleHook.propagateTo().
-
-
-
Element Detail
-
value
java.lang.Class<? extends LifecycleHook> value
- Returns:
- Concrete lifecycle hook implementation class
-
-
-
propagateTo
PropagationMode propagateTo
Override the propagation mode specified in LifecycleHook.propagateTo().- Returns:
- Propagation mode enum value
- Default:
- net.jqwik.api.lifecycle.PropagationMode.NOT_SET
-
-