Package test.mixed.impl

Examples of test.mixed.impl.FoodConstructorTestService


    Assert.assertThat(b.getTest2(), is(4));
  }
 
  @Test
  public void testAnnotationInject() {
    FoodConstructorTestService service = applicationContext.getBean(FoodConstructorTestService.class);
    Assert.assertThat(service.getBeanTest().getTest1(), is("fffff"));
    Assert.assertThat(service.getBeanTest().getTest2(), is(4));
   
    Assert.assertThat(service.getFoodRepository().getFood().size(), is(3));
    log.info(service.getFoodRepository().getFood().toString());
  }
View Full Code Here


    System.out.println(foodRepository.getFood());
   
    BeanTest b = applicationContext.getBean("constructorTestBean");
    System.out.println(b.toString());
   
    FoodConstructorTestService service = applicationContext.getBean(FoodConstructorTestService.class);
    System.out.println(service.getFoodRepository().getFood().toString());
  }
View Full Code Here

TOP

Related Classes of test.mixed.impl.FoodConstructorTestService

Copyright © 2018 www.massapicom. 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.