Class AbstractAnnotatedDescriptorWrapper<E extends AnnotatedElement>

java.lang.Object
org.junit.jupiter.engine.discovery.AbstractAnnotatedDescriptorWrapper<E>
Direct Known Subclasses:
DefaultClassDescriptor, DefaultMethodDescriptor

abstract class AbstractAnnotatedDescriptorWrapper<E extends AnnotatedElement> extends Object
Abstract base class for wrappers for test descriptors based on annotated elements.
Since:
5.8
  • Field Details

  • Constructor Details

    • AbstractAnnotatedDescriptorWrapper

      AbstractAnnotatedDescriptorWrapper(TestDescriptor testDescriptor, E annotatedElement)
  • Method Details

    • getAnnotatedElement

      E getAnnotatedElement()
    • getTestDescriptor

      TestDescriptor getTestDescriptor()
    • getDisplayName

      public final String getDisplayName()
    • isAnnotated

      public final boolean isAnnotated(Class<? extends Annotation> annotationType)
    • findAnnotation

      public final <A extends Annotation> Optional<A> findAnnotation(Class<A> annotationType)
    • findRepeatableAnnotations

      public final <A extends Annotation> List<A> findRepeatableAnnotations(Class<A> annotationType)