Package com.yummynoodlebar.events.menu

Examples of com.yummynoodlebar.events.menu.RequestAllMenuItemsEvent


  MenuPersistenceService menuPersistenceService;
   
  @Test
  public void thatAllMenuItemsReturned() {
   
  AllMenuItemsEvent allMenuItems = menuPersistenceService.requestAllMenuItems(new RequestAllMenuItemsEvent());
 
  assertEquals(3, allMenuItems.getMenuItemDetails().size());
     
  }
View Full Code Here


  OrderService orderService;
     
  @Test
  public void thatAllMenuItemsReturned() {
   
  AllMenuItemsEvent allMenuItems = menuService.requestAllMenuItems(new RequestAllMenuItemsEvent());
 
  assertEquals(3, allMenuItems.getMenuItemDetails().size());
     
  }
View Full Code Here

  MenuService menuService;
     
  @Test
  public void thatAllMenuItemsReturned() {
   
  AllMenuItemsEvent allMenuItems = menuService.requestAllMenuItems(new RequestAllMenuItemsEvent());
 
  assertEquals(3, allMenuItems.getMenuItemDetails().size());
     
 
View Full Code Here

   
  @RequestMapping(method = RequestMethod.GET)
 
  public String getCurrentMenu(Model model) {
    LOG.debug("Yummy MenuItemDetails to home view");
    model.addAttribute("menuItems",getMenuItems(menuService.requestAllMenuItems(new RequestAllMenuItemsEvent())));
    return "/home";
  }
View Full Code Here

  // {!begin method}
  @RequestMapping(method = RequestMethod.GET)
  public String getCurrentMenu(Model model) {
    LOG.debug("Yummy MenuItemDetails to home view");
    model.addAttribute("menuItems",getMenuItems(menuService.requestAllMenuItems(new RequestAllMenuItemsEvent())));
    return "/home";
  }
View Full Code Here

   
  @RequestMapping(method = RequestMethod.GET)
  @ResponseBody
  public String getCurrentMenu() {
    LOG.debug("Yummy Menu directly to ResponseBody");
    return prettyPrint(menuService.requestAllMenuItems(new RequestAllMenuItemsEvent()));
  }
View Full Code Here

TOP

Related Classes of com.yummynoodlebar.events.menu.RequestAllMenuItemsEvent

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.