Class AbstractAnnotatedDescriptorWrapper<E extends java.lang.reflect.AnnotatedElement>
- java.lang.Object
-
- org.junit.jupiter.engine.discovery.AbstractAnnotatedDescriptorWrapper<E>
-
- 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 Summary
Fields Modifier and Type Field Description private E
annotatedElement
private TestDescriptor
testDescriptor
-
Constructor Summary
Constructors Constructor Description AbstractAnnotatedDescriptorWrapper(TestDescriptor testDescriptor, E annotatedElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <A extends java.lang.annotation.Annotation>
java.util.Optional<A>findAnnotation(java.lang.Class<A> annotationType)
<A extends java.lang.annotation.Annotation>
java.util.List<A>findRepeatableAnnotations(java.lang.Class<A> annotationType)
(package private) E
getAnnotatedElement()
java.lang.String
getDisplayName()
(package private) TestDescriptor
getTestDescriptor()
boolean
isAnnotated(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
-
-
-
Field Detail
-
testDescriptor
private final TestDescriptor testDescriptor
-
annotatedElement
private final E extends java.lang.reflect.AnnotatedElement annotatedElement
-
-
Constructor Detail
-
AbstractAnnotatedDescriptorWrapper
AbstractAnnotatedDescriptorWrapper(TestDescriptor testDescriptor, E annotatedElement)
-
-
Method Detail
-
getAnnotatedElement
E getAnnotatedElement()
-
getTestDescriptor
TestDescriptor getTestDescriptor()
-
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)
-
-