Examples of FoodService


Examples of test.mixed.FoodService

    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");
    log.debug(food.getName());
    Assert.assertThat(food.getPrice(), is(10.00));
  }
View Full Code Here

Examples of test.mixed.FoodService

 
  }
 
  public static void main2(String[] args) {
    ApplicationContext applicationContext = new XmlApplicationContext("error-config4.xml");
    FoodService foodService = applicationContext.getBean("foodServiceErrorTest");
    System.out.println(foodService.getFood(null));
  }
View Full Code Here

Examples of test.mixed.FoodService

    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");
    log.debug(food.getName());
    Assert.assertThat(food.getPrice(), is(10.00));
  }
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.