Class AbstractAnnotatedDescriptorWrapper<E extends java.lang.reflect.AnnotatedElement>

  • Direct Known Subclasses:
    DefaultClassDescriptor, DefaultMethodDescriptor

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

      • annotatedElement

        private final E extends java.lang.reflect.AnnotatedElement annotatedElement
    • Constructor Detail

      • AbstractAnnotatedDescriptorWrapper

        AbstractAnnotatedDescriptorWrapper​(TestDescriptor testDescriptor,
                                           E annotatedElement)
    • Method Detail

      • getAnnotatedElement

        E getAnnotatedElement()
      • getDisplayName

        public final java.lang.String getDisplayName()
      • isAnnotated

        public final boolean isAnnotated​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
      • findAnnotation

        public final <A extends java.lang.annotation.Annotation> java.util.Optional<A> findAnnotation​(java.lang.Class<A> annotationType)
      • findRepeatableAnnotations

        public final <A extends java.lang.annotation.Annotation> java.util.List<A> findRepeatableAnnotations​(java.lang.Class<A> annotationType)