File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
spring-context/src/test/java/org/springframework/context/annotation Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,14 @@ public void metadataFromImportsTwoThenOne() {
134
134
assertThat (((StandardAnnotationMetadata ) importMetadata ).getIntrospectedClass ()).isEqualTo (ConfigurationOne .class );
135
135
}
136
136
137
+ @ Test
138
+ public void metadataFromImportsOneThenThree () {
139
+ AnnotationMetadata importMetadata = new AnnotationConfigApplicationContext (
140
+ ConfigurationOne .class , ConfigurationThree .class )
141
+ .getBean (MetadataHolder .class ).importMetadata ;
142
+ assertThat (((StandardAnnotationMetadata ) importMetadata ).getIntrospectedClass ()).isEqualTo (ConfigurationOne .class );
143
+ }
144
+
137
145
@ Test
138
146
public void importAwareWithAnnotationAttributes () {
139
147
new AnnotationConfigApplicationContext (ApplicationConfiguration .class );
@@ -288,6 +296,13 @@ public static class ConfigurationTwo {
288
296
}
289
297
290
298
299
+ @ Conditional (OnMissingBeanCondition .class )
300
+ @ EnableLiteConfiguration ("foo" )
301
+ @ Configuration
302
+ public static class ConfigurationThree {
303
+ }
304
+
305
+
291
306
@ Import (SomeConfiguration .class )
292
307
@ Target (ElementType .TYPE )
293
308
@ Retention (RetentionPolicy .RUNTIME )
You can’t perform that action at this time.
0 commit comments