File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
spring-core/src/test/java/org/springframework/core/type Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -96,8 +96,12 @@ private void doTestSubClassAnnotationInfo(AnnotationMetadata metadata) {
96
96
assertThat (metadata .hasAnnotation (Component .class .getName ()), is (false ));
97
97
assertThat (metadata .hasAnnotation (Scope .class .getName ()), is (false ));
98
98
assertThat (metadata .hasAnnotation (SpecialAttr .class .getName ()), is (false ));
99
+ assertThat (metadata .hasMetaAnnotation (Component .class .getName ()), is (false ));
100
+ assertThat (metadata .hasMetaAnnotation (MetaAnnotation .class .getName ()), is (false ));
99
101
assertThat (metadata .getAnnotationTypes ().size (), is (0 ));
100
102
assertThat (metadata .getAnnotationAttributes (Component .class .getName ()), nullValue ());
103
+ assertThat (metadata .getAnnotationAttributes (MetaAnnotation .class .getName (), false ), nullValue ());
104
+ assertThat (metadata .getAnnotationAttributes (MetaAnnotation .class .getName (), true ), nullValue ());
101
105
assertThat (metadata .getAnnotatedMethods (DirectAnnotation .class .getName ()).size (), equalTo (0 ));
102
106
assertThat (metadata .isAnnotated (IsAnnotatedAnnotation .class .getName ()), equalTo (false ));
103
107
assertThat (metadata .getAllAnnotationAttributes (DirectAnnotation .class .getName ()), nullValue ());
You can’t perform that action at this time.
0 commit comments