Skip to content

Commit

Permalink
Test status quo for AnnotatedTypeMetadata.getAnnotationAttributes()
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Nov 28, 2019
1 parent b44daa8 commit d1f5442
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -96,8 +96,12 @@ private void doTestSubClassAnnotationInfo(AnnotationMetadata metadata) {
assertThat(metadata.hasAnnotation(Component.class.getName())).isFalse();
assertThat(metadata.hasAnnotation(Scope.class.getName())).isFalse();
assertThat(metadata.hasAnnotation(SpecialAttr.class.getName())).isFalse();
assertThat(metadata.hasMetaAnnotation(Component.class.getName())).isFalse();
assertThat(metadata.hasMetaAnnotation(MetaAnnotation.class.getName())).isFalse();
assertThat(metadata.getAnnotationTypes()).hasSize(0);
assertThat(metadata.getAnnotationAttributes(Component.class.getName())).isNull();
assertThat(metadata.getAnnotationAttributes(MetaAnnotation.class.getName(), false)).isNull();
assertThat(metadata.getAnnotationAttributes(MetaAnnotation.class.getName(), true)).isNull();
assertThat(metadata.getAnnotatedMethods(DirectAnnotation.class.getName()).size()).isEqualTo(0);
assertThat(metadata.isAnnotated(IsAnnotatedAnnotation.class.getName())).isEqualTo(false);
assertThat(metadata.getAllAnnotationAttributes(DirectAnnotation.class.getName())).isNull();
Expand Down

0 comments on commit d1f5442

Please sign in to comment.