use of example.scannable.AutowiredQualifierFooService in project spring-framework by spring-projects.
the class ComponentScanParserTests method componentScanWithAutowiredQualifier.
@Test
public void componentScanWithAutowiredQualifier() {
ClassPathXmlApplicationContext context = loadContext("componentScanWithAutowiredQualifierTests.xml");
AutowiredQualifierFooService fooService = (AutowiredQualifierFooService) context.getBean("fooService");
assertTrue(fooService.isInitCalled());
assertEquals("bar", fooService.foo(123));
context.close();
}
Aggregations