Package net.jqwik.api

Klasse PropertyDefaults.PropertyDefaultsHook

java.lang.Object
net.jqwik.api.PropertyDefaults.PropertyDefaultsHook
Alle implementierten Schnittstellen:
AroundPropertyHook, LifecycleHook
Umschließende Klasse:
PropertyDefaults

public static class PropertyDefaults.PropertyDefaultsHook extends Object implements AroundPropertyHook
  • Konstruktordetails

    • PropertyDefaultsHook

      public PropertyDefaultsHook()
  • Methodendetails

    • aroundProperty

      public PropertyExecutionResult aroundProperty(PropertyLifecycleContext context, PropertyExecutor property)
      Beschreibung aus Schnittstelle kopiert: AroundPropertyHook
      When you wrap a property you can do stuff before and/or after its execution. All implementors should invoke the property with property.execute() and either return the result of this call or map it to another result.
      Angegeben von:
      aroundProperty in Schnittstelle AroundPropertyHook
      Parameter:
      context - The property's context object
      property - An executor to run the property
      Gibt zurück:
      The result of running the property
    • aroundPropertyProximity

      public int aroundPropertyProximity()
      Beschreibung aus Schnittstelle kopiert: AroundPropertyHook
      The higher the value, the closer to the actual property method. Default value is 0.

      Values greater than -10 will make it run "inside" annotated lifecycle methods (BeforeProperty and AfterProperty).

      Angegeben von:
      aroundPropertyProximity in Schnittstelle AroundPropertyHook
      Gibt zurück:
      an integer value
    • propagateTo

      public PropagationMode propagateTo()
      Beschreibung aus Schnittstelle kopiert: LifecycleHook
      Override this method if you want to change a concrete hook implementation's default propagation behaviour: Do not use hook in child elements -- sub containers or properties.
      Angegeben von:
      propagateTo in Schnittstelle LifecycleHook
      Gibt zurück:
      propagation mode enum
    • appliesTo

      public boolean appliesTo(Optional<AnnotatedElement> element)
      Beschreibung aus Schnittstelle kopiert: LifecycleHook
      This method is called once per hook and potential element during lifecycle hooks registration.
      Angegeben von:
      appliesTo in Schnittstelle LifecycleHook
      Parameter:
      element - The Optional instance contains element for container classes or method but is empty for the engine
      Gibt zurück:
      true if a hook shall be applied to this element