Class AbstractAnnotatedDescriptorWrapper<E extends AnnotatedElement>
java.lang.Object
org.junit.jupiter.engine.discovery.AbstractAnnotatedDescriptorWrapper<E>
- Direct Known Subclasses:
DefaultClassDescriptor
,DefaultMethodDescriptor
Abstract base class for wrappers for test descriptors based on annotated
elements.
- Since:
- 5.8
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractAnnotatedDescriptorWrapper
(TestDescriptor testDescriptor, E annotatedElement) -
Method Summary
Modifier and TypeMethodDescriptionfinal <A extends Annotation>
Optional<A> findAnnotation
(Class<A> annotationType) final <A extends Annotation>
List<A> findRepeatableAnnotations
(Class<A> annotationType) (package private) E
final String
(package private) TestDescriptor
final boolean
isAnnotated
(Class<? extends Annotation> annotationType)
-
Field Details
-
testDescriptor
-
annotatedElement
-
-
Constructor Details
-
AbstractAnnotatedDescriptorWrapper
AbstractAnnotatedDescriptorWrapper(TestDescriptor testDescriptor, E annotatedElement)
-
-
Method Details
-
getAnnotatedElement
E getAnnotatedElement() -
getTestDescriptor
TestDescriptor getTestDescriptor() -
getDisplayName
-
isAnnotated
-
findAnnotation
-
findRepeatableAnnotations
-