Klasse DefaultTryLifecycleContext

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

public class DefaultTryLifecycleContext extends Object implements net.jqwik.api.lifecycle.TryLifecycleContext
  • Konstruktordetails

    • DefaultTryLifecycleContext

      public DefaultTryLifecycleContext(net.jqwik.api.lifecycle.PropertyLifecycleContext propertyContext)
  • 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
    • 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
    • label

      public String label()
      Angegeben von:
      label in Schnittstelle net.jqwik.api.lifecycle.LifecycleContext
    • 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
    • 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
    • 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
    • findAnnotation

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

      public <T extends Annotation> List<T> findAnnotationsInContainer(Class<T> 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

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