Klasse JqwikAnnotationSupport

java.lang.Object
net.jqwik.engine.support.JqwikAnnotationSupport

public class JqwikAnnotationSupport extends Object
Provide stuff that org.junit.commons.support.AnnotationSupport does not.
  • Konstruktordetails

    • JqwikAnnotationSupport

      public JqwikAnnotationSupport()
  • Methodendetails

    • findAllAnnotations

      public static List<Annotation> findAllAnnotations(AnnotatedElement element)
      Find all annotations in an element, even if they are repeatable or only present through meta-annotations
      Parameter:
      element - the element to check for present annotations
      Gibt zurück:
      a list of all found annotations
    • allMetaAnnotations

      public static List<Annotation> allMetaAnnotations(Annotation annotation)
    • findRepeatableAnnotationOnElementOrContainer

      public static <A extends Annotation> List<A> findRepeatableAnnotationOnElementOrContainer(AnnotatedElement element, Class<A> annotationType)
    • findContainerAnnotations

      public static <A extends Annotation> List<A> findContainerAnnotations(Class<?> container, Class<A> annotationType)
      Find all annotation instances of a given type on a container class, even if they are repeatable or annotated.

      Sort those annotations from closer (directly on class) to more remote (on extended classes and interfaces)