Package test.mixed

Examples of test.mixed.FoodService2


  public static ApplicationContext applicationContext = new XmlApplicationContext(
      "mixed-config.xml");

  @Test
  public void testInject() {
    FoodService2 foodService2 = applicationContext.getBean("foodService2");
    Food food = foodService2.getFood("apple");
    log.debug(food.getName());
    Assert.assertThat(food.getPrice(), is(5.3));
   
    FoodService foodService = applicationContext.getBean(FoodService.class);
    food = foodService.getFood("strawberry");
View Full Code Here


  private static Log log = LogFactory.getInstance().getLog("firefly-system");
  public static ApplicationContext applicationContext = new XmlApplicationContext("mixed-config.xml");

  @Test
  public void testInject() {
    FoodService2 foodService2 = applicationContext.getBean("foodService2");
    Food food = foodService2.getFood("apple");
    log.debug(food.getName());
    Assert.assertThat(food.getPrice(), is(5.3));
   
    FoodService foodService = applicationContext.getBean(FoodService.class);
    food = foodService.getFood("strawberry");
View Full Code Here

TOP

Related Classes of test.mixed.FoodService2

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.