Search in sources :

Example 1 with SimpleComponent

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);
}
Also used : SimpleComponent(org.springframework.context.annotation.componentscan.simple.SimpleComponent) StandardEnvironment(org.springframework.core.env.StandardEnvironment)

Aggregations

SimpleComponent (org.springframework.context.annotation.componentscan.simple.SimpleComponent)1 StandardEnvironment (org.springframework.core.env.StandardEnvironment)1