Browse Source

Test status quo for MergedAnnotation.getParent()

See gh-22818
pull/22829/head
Sam Brannen 7 years ago
parent
commit
dab90cb7cc
  1. 7
      spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsTests.java

7
spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsTests.java

@ -147,6 +147,13 @@ public class MergedAnnotationsTests { @@ -147,6 +147,13 @@ public class MergedAnnotationsTests {
assertThat(annotations.isPresent(ComposedTransactionalComponent.class)).isTrue();
}
@Test
public void getParent() {
MergedAnnotations annotations = MergedAnnotations.from(ComposedTransactionalComponentClass.class);
assertThat(annotations.get(TransactionalComponent.class).getParent().getType())
.isEqualTo(ComposedTransactionalComponent.class);
}
@Test
public void collectMultiValueMapFromNonAnnotatedClass() {
MultiValueMap<String, Object> map = MergedAnnotations.from(

Loading…
Cancel
Save