Annotation Type AddLifecycleHook


  • @Target({ANNOTATION_TYPE,METHOD,TYPE})
    @Retention(RUNTIME)
    @Repeatable(LifecycleHooks.class)
    @API(status=EXPERIMENTAL,
         since="1.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.

    • Element Detail

      • value

        java.lang.Class<? extends LifecycleHook> value
        Returns:
        Concrete lifecycle hook implementation class
      • propagateTo

        @API(status=EXPERIMENTAL,
             since="1.0")
        PropagationMode propagateTo
        Override the propagation mode specified in LifecycleHook.propagateTo().
        Returns:
        Propagation mode enum value
        Default:
        net.jqwik.api.lifecycle.PropagationMode.NOT_SET