Package example.scannable

Examples of example.scannable.AutowiredQualifierFooService.foo()


  @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();
  }

  @Test
  public void customAnnotationUsedForBothComponentScanAndQualifier() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.