Package example.scannable

Examples of example.scannable.FooService.foo()


    assertEquals(6, beanCount);
    context.refresh();
    FooService fooService = (FooService) context.getBean("fooService");
    assertFalse(fooService.isInitCalled());
    try {
      fooService.foo(123);
      fail("NullPointerException expected; fooDao must not have been set");
    }
    catch (NullPointerException expected) {
    }
  }
View Full Code Here


    scanner.setBeanNameGenerator(new TestBeanNameGenerator());
    scanner.setAutowireCandidatePatterns(new String[] { "*FooDao" });
    scanner.scan(BASE_PACKAGE);
    context.refresh();
    FooService fooService = (FooService) context.getBean("fooService");
    assertEquals("bar", fooService.foo(123));
  }

  @Test
  public void testAutowireCandidatePatternDoesNotMatch() {
    GenericApplicationContext context = new GenericApplicationContext();
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.