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

    • testDescriptor

      private final org.junit.platform.engine.TestDescriptor testDescriptor
    • annotatedElement

      private final E extends AnnotatedElement annotatedElement
  • Constructor Details

    • AbstractAnnotatedDescriptorWrapper

      AbstractAnnotatedDescriptorWrapper(org.junit.platform.engine.TestDescriptor testDescriptor, E annotatedElement)
  • Method Details

    • getAnnotatedElement

      E getAnnotatedElement()
    • getTestDescriptor

      org.junit.platform.engine.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)