Package org.springframework.test.context
Class TestContextAnnotationUtils.UntypedAnnotationDescriptor
java.lang.Object
org.springframework.test.context.TestContextAnnotationUtils.AnnotationDescriptor<Annotation>
org.springframework.test.context.TestContextAnnotationUtils.UntypedAnnotationDescriptor
- Enclosing class:
- TestContextAnnotationUtils
public static class TestContextAnnotationUtils.UntypedAnnotationDescriptor
extends TestContextAnnotationUtils.AnnotationDescriptor<Annotation>
Untyped extension of
TestContextAnnotationUtils.AnnotationDescriptor
that is used
to describe the declaration of one of several candidate annotation types
where the actual annotation type cannot be predetermined.-
Method Summary
Modifier and TypeMethodDescriptionThrows anUnsupportedOperationException
since the type of annotation represented by anUntypedAnnotationDescriptor
is unknown.next()
Find the nextTestContextAnnotationUtils.UntypedAnnotationDescriptor
for the specified annotation types in the hierarchy above the root declaring class of this descriptor.Methods inherited from class org.springframework.test.context.TestContextAnnotationUtils.AnnotationDescriptor
getAnnotation, getDeclaringClass, getRootDeclaringClass, toString
-
Method Details
-
next
Find the nextTestContextAnnotationUtils.UntypedAnnotationDescriptor
for the specified annotation types in the hierarchy above the root declaring class of this descriptor.If one of the corresponding annotations is found in the superclass hierarchy of the root declaring class, that will be returned. Otherwise, an attempt will be made to find a corresponding annotation in the enclosing class hierarchy of the root declaring class if appropriate.
- Overrides:
next
in classTestContextAnnotationUtils.AnnotationDescriptor<Annotation>
- Returns:
- the next corresponding annotation descriptor if one of the
annotations was found; otherwise
null
- See Also:
-
findAllLocalMergedAnnotations
Throws anUnsupportedOperationException
since the type of annotation represented by anUntypedAnnotationDescriptor
is unknown.- Overrides:
findAllLocalMergedAnnotations
in classTestContextAnnotationUtils.AnnotationDescriptor<Annotation>
- Returns:
- the set of all merged, synthesized
Annotations
found, or an empty set if none were found
-