クラスの使用
org.springframework.test.context.TestContextAnnotationUtils.AnnotationDescriptor
パッケージ
説明
このパッケージには Spring TestContext フレームワークが含まれており、使用中の実際のテストフレームワークにとらわれないアノテーション駆動型ユニットおよび統合テストのサポートを提供します。
org.springframework.test.context 内の TestContextAnnotationUtils.AnnotationDescriptor 使用
修飾子と型クラス説明static class
実際のアノテーション型を事前に決定できない、いくつかの候補アノテーション型の 1 つの宣言を記述するために使用されるTestContextAnnotationUtils.AnnotationDescriptor
の型なし拡張。修飾子と型メソッド説明static <T extends AnnotationSE>
TestContextAnnotationUtils.AnnotationDescriptor<T>TestContextAnnotationUtils.findAnnotationDescriptor
(ClassSE<?> clazz, ClassSE<T> annotationType) 提供されたClass
SE で提供されたannotationType
のTestContextAnnotationUtils.AnnotationDescriptor
を見つけ、そのアノテーション、インターフェース、スーパークラスをトラバースし、指定されたクラス自体にアノテーションが見つからない場合はクラスを囲みます。TestContextAnnotationUtils.AnnotationDescriptor.next()
この記述子のルート宣言クラスの上の階層で、指定されたアノテーション型の次のTestContextAnnotationUtils.AnnotationDescriptor
を見つけます。