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
FieldsModifier and TypeFieldDescriptionprivate final Eprivate final org.junit.platform.engine.TestDescriptor -
Constructor Summary
ConstructorsConstructorDescriptionAbstractAnnotatedDescriptorWrapper(org.junit.platform.engine.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) Efinal String(package private) org.junit.platform.engine.TestDescriptorfinal booleanisAnnotated(Class<? extends Annotation> annotationType)
-
Field Details
-
testDescriptor
private final org.junit.platform.engine.TestDescriptor testDescriptor -
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
-
isAnnotated
-
findAnnotation
-
findRepeatableAnnotations
-