use of org.springframework.context.annotation.componentscan.simple.SimpleComponent in project spring-framework by spring-projects.
the class ConfigurationClassPostProcessorTests method assertSupportForComposedAnnotation.
private void assertSupportForComposedAnnotation(RootBeanDefinition beanDefinition) {
beanFactory.registerBeanDefinition("config", beanDefinition);
ConfigurationClassPostProcessor pp = new ConfigurationClassPostProcessor();
pp.setEnvironment(new StandardEnvironment());
pp.postProcessBeanFactory(beanFactory);
SimpleComponent simpleComponent = beanFactory.getBean(SimpleComponent.class);
assertNotNull(simpleComponent);
}
Aggregations