We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5d64e6 commit dab90cbCopy full SHA for dab90cb
spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsTests.java
@@ -147,6 +147,13 @@ public void isPresentWhenFromClassWithMetaDepth2() {
147
assertThat(annotations.isPresent(ComposedTransactionalComponent.class)).isTrue();
148
}
149
150
+ @Test
151
+ public void getParent() {
152
+ MergedAnnotations annotations = MergedAnnotations.from(ComposedTransactionalComponentClass.class);
153
+ assertThat(annotations.get(TransactionalComponent.class).getParent().getType())
154
+ .isEqualTo(ComposedTransactionalComponent.class);
155
+ }
156
+
157
@Test
158
public void collectMultiValueMapFromNonAnnotatedClass() {
159
MultiValueMap<String, Object> map = MergedAnnotations.from(
0 commit comments