Klasse DefaultPropertyLifecycleContext

java.lang.Object
net.jqwik.engine.execution.DefaultPropertyLifecycleContext
Alle implementierten Schnittstellen:
net.jqwik.api.lifecycle.LifecycleContext, net.jqwik.api.lifecycle.MethodLifecycleContext, net.jqwik.api.lifecycle.PropertyLifecycleContext

public class DefaultPropertyLifecycleContext extends Object implements net.jqwik.api.lifecycle.PropertyLifecycleContext
  • Konstruktordetails

    • DefaultPropertyLifecycleContext

      public DefaultPropertyLifecycleContext(PropertyMethodDescriptor methodDescriptor, Object testInstance, net.jqwik.api.Reporter reporter, net.jqwik.api.lifecycle.ResolveParameterHook resolveParameterHook)
    • DefaultPropertyLifecycleContext

      public DefaultPropertyLifecycleContext(PropertyMethodDescriptor methodDescriptor, ContainerInstances testInstances, net.jqwik.api.Reporter reporter, net.jqwik.api.lifecycle.ResolveParameterHook resolveParameterHook)
  • Methodendetails

    • targetMethod

      public Method targetMethod()
      Angegeben von:
      targetMethod in Schnittstelle net.jqwik.api.lifecycle.MethodLifecycleContext
    • containerClass

      public Class<?> containerClass()
      Angegeben von:
      containerClass in Schnittstelle net.jqwik.api.lifecycle.MethodLifecycleContext
    • optionalElement

      public Optional<AnnotatedElement> optionalElement()
      Angegeben von:
      optionalElement in Schnittstelle net.jqwik.api.lifecycle.LifecycleContext
    • optionalContainerClass

      public Optional<Class<?>> optionalContainerClass()
      Angegeben von:
      optionalContainerClass in Schnittstelle net.jqwik.api.lifecycle.LifecycleContext
    • testInstance

      public Object testInstance()
      Angegeben von:
      testInstance in Schnittstelle net.jqwik.api.lifecycle.MethodLifecycleContext
    • testInstances

      public List<Object> testInstances()
      Angegeben von:
      testInstances in Schnittstelle net.jqwik.api.lifecycle.MethodLifecycleContext
    • extendedLabel

      public String extendedLabel()
      Angegeben von:
      extendedLabel in Schnittstelle net.jqwik.api.lifecycle.PropertyLifecycleContext
    • newInstance

      public <T> T newInstance(Class<T> clazz)
      Angegeben von:
      newInstance in Schnittstelle net.jqwik.api.lifecycle.LifecycleContext
    • resolveParameter

      public Optional<net.jqwik.api.lifecycle.ResolveParameterHook.ParameterSupplier> resolveParameter(Executable executable, int index)
      Angegeben von:
      resolveParameter in Schnittstelle net.jqwik.api.lifecycle.LifecycleContext
    • attributes

      public net.jqwik.api.lifecycle.PropertyAttributes attributes()
      Angegeben von:
      attributes in Schnittstelle net.jqwik.api.lifecycle.PropertyLifecycleContext
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • reporter

      public net.jqwik.api.Reporter reporter()
      Angegeben von:
      reporter in Schnittstelle net.jqwik.api.lifecycle.LifecycleContext
    • wrapReporter

      public void wrapReporter(Function<net.jqwik.api.Reporter,net.jqwik.api.Reporter> wrapper)
      Angegeben von:
      wrapReporter in Schnittstelle net.jqwik.api.lifecycle.LifecycleContext
    • label

      public String label()
      Angegeben von:
      label in Schnittstelle net.jqwik.api.lifecycle.LifecycleContext
    • findAnnotation

      public <A extends Annotation> Optional<A> findAnnotation(Class<A> annotationClass)
      Angegeben von:
      findAnnotation in Schnittstelle net.jqwik.api.lifecycle.LifecycleContext
    • findAnnotationsInContainer

      public <A extends Annotation> List<A> findAnnotationsInContainer(Class<A> annotationClass)
      Angegeben von:
      findAnnotationsInContainer in Schnittstelle net.jqwik.api.lifecycle.LifecycleContext
    • findRepeatableAnnotations

      public <T extends Annotation> List<T> findRepeatableAnnotations(Class<T> annotationClass)
      Angegeben von:
      findRepeatableAnnotations in Schnittstelle net.jqwik.api.lifecycle.LifecycleContext
    • toString

      protected String toString(Class<? extends net.jqwik.api.lifecycle.LifecycleContext> contextType)