예제 #1
0
 @Test
 public void testRegisterBean() {
   IocManager.getManager().registBean(TestService.class);
   TestService service = IocManager.getManager().getBean(TestService.class);
   Assert.assertEquals("Hello IOC", service.printHello());
 }
예제 #2
0
 @Test
 public void testNotRegistBean() {
   OutputService outputService = IocManager.getManager().getBean(OutputServiceImpl.class);
   Assert.assertNull(outputService);
 }