Top Description Fields Constructors Methods
org.junit.jupiter.engine.discovery

pack-priv abstract Class AbstractAnnotatedDescriptorWrapper<E extends AnnotatedElement>

extends Object
Class Inheritance
Known Direct Subclasses
org.junit.jupiter.engine.discovery.DefaultClassDescriptor, org.junit.jupiter.engine.discovery.DefaultMethodDescriptor
Imports
java.lang.annotation.Annotation, java.lang.reflect.AnnotatedElement, java.util.List, .Optional, org.junit.platform.commons.support.AnnotationSupport, org.junit.platform.commons.util.Preconditions, org.junit.platform.engine.TestDescriptor

Abstract base class for wrappers for test descriptors based on annotated elements.
Since
5.8

Field Summary

Modifier and TypeField and Description
private final E
private final TestDescriptor

Constructor Summary

AccessConstructor and Description
pack-priv
AbstractAnnotatedDescriptorWrapper(TestDescriptor testDescriptor, E annotatedElement)

Method Summary

Modifier and TypeMethod and Description
public final <A extends Annotation> Optional<A>
findAnnotation(Class<A> annotationType)

public final <A extends Annotation> List<A>
findRepeatableAnnotations(Class<A> annotationType)

pack-priv E
public final String
pack-priv TestDescriptor
public final boolean
isAnnotated(Class<? extends Annotation> annotationType)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

annotatedElementback to summary
private final E annotatedElement
testDescriptorback to summary
private final TestDescriptor testDescriptor

Constructor Detail

AbstractAnnotatedDescriptorWrapperback to summary
pack-priv AbstractAnnotatedDescriptorWrapper(TestDescriptor testDescriptor, E annotatedElement)

Method Detail

findAnnotationback to summary
public final <A extends Annotation> Optional<A> findAnnotation(Class<A> annotationType)
findRepeatableAnnotationsback to summary
public final <A extends Annotation> List<A> findRepeatableAnnotations(Class<A> annotationType)
getAnnotatedElementback to summary
pack-priv E getAnnotatedElement()
getDisplayNameback to summary
public final String getDisplayName()
getTestDescriptorback to summary
pack-priv TestDescriptor getTestDescriptor()
isAnnotatedback to summary
public final boolean isAnnotated(Class<? extends Annotation> annotationType)