Test status quo for MergedAnnotation.getParent()
See gh-22818
This commit is contained in:
@@ -147,6 +147,13 @@ public class MergedAnnotationsTests {
|
|||||||
assertThat(annotations.isPresent(ComposedTransactionalComponent.class)).isTrue();
|
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
|
@Test
|
||||||
public void collectMultiValueMapFromNonAnnotatedClass() {
|
public void collectMultiValueMapFromNonAnnotatedClass() {
|
||||||
MultiValueMap<String, Object> map = MergedAnnotations.from(
|
MultiValueMap<String, Object> map = MergedAnnotations.from(
|
||||||
|
|||||||
Reference in New Issue
Block a user