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.ObjectAbstract base class for wrappers for test descriptors based on annotated elements.- Since:
- 5.8
-
-
Field Summary
Fields Modifier and Type Field Description private EannotatedElementprivate TestDescriptortestDescriptor
-
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) EgetAnnotatedElement()java.lang.StringgetDisplayName()(package private) TestDescriptorgetTestDescriptor()booleanisAnnotated(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)
-
-