类的使用
cn.taketoday.test.context.TestContextAnnotationUtils.AnnotationDescriptor
程序包
说明
This package contains the TestContext Framework which
provides annotation-driven unit and integration testing support that is
agnostic of the actual testing framework in use.
-
cn.taketoday.test.context中TestContextAnnotationUtils.AnnotationDescriptor的使用
修饰符和类型类说明static classUntyped extension ofTestContextAnnotationUtils.AnnotationDescriptorthat is used to describe the declaration of one of several candidate annotation types where the actual annotation type cannot be predetermined.修饰符和类型方法说明static <T extends Annotation>
TestContextAnnotationUtils.AnnotationDescriptor<T>TestContextAnnotationUtils.findAnnotationDescriptor(Class<?> clazz, Class<T> annotationType) Find theTestContextAnnotationUtils.AnnotationDescriptorfor the suppliedannotationTypeon the suppliedClass, traversing its annotations, interfaces, superclasses, and enclosing classes if no annotation can be found on the given class itself.private static <T extends Annotation>
TestContextAnnotationUtils.AnnotationDescriptor<T>TestContextAnnotationUtils.findAnnotationDescriptor(Class<?> clazz, Class<T> annotationType, Predicate<Class<?>> searchEnclosingClass, Set<Annotation> visited) Perform the search algorithm forTestContextAnnotationUtils.findAnnotationDescriptor(Class, Class), avoiding endless recursion by tracking which annotations have already been visited.TestContextAnnotationUtils.AnnotationDescriptor.next()Find the nextTestContextAnnotationUtils.AnnotationDescriptorfor the specified annotation type in the hierarchy above the root declaring class of this descriptor.