mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 09:49:01 +00:00
Assert that parent autoconfig report is matched to parent BeanFactory
Test for gh-290
This commit is contained in:
+8
@@ -96,6 +96,14 @@ public class AutoConfigurationReportTests {
|
||||
sameInstance(AutoConfigurationReport.get(this.beanFactory)));
|
||||
assertThat(this.report, not(nullValue()));
|
||||
assertThat(this.report.getParent(), not(nullValue()));
|
||||
AutoConfigurationReport.get((ConfigurableListableBeanFactory) this.beanFactory
|
||||
.getParentBeanFactory());
|
||||
assertThat(this.report,
|
||||
sameInstance(AutoConfigurationReport.get(this.beanFactory)));
|
||||
assertThat(this.report.getParent(),
|
||||
sameInstance(AutoConfigurationReport
|
||||
.get((ConfigurableListableBeanFactory) this.beanFactory
|
||||
.getParentBeanFactory())));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user