@Test public void testShowItemsList() { assertEquals("items/items", itemController.showItemsList(new ModelMap())); }
@RequestMapping(value = "/items", method = RequestMethod.GET) public String showItemsList(ModelMap model) { List<Item> items = itemService.getItems(); model.addAttribute("items", items); return "items/items"; }
ItemController { @RequestMapping(value = "/items", method = RequestMethod.GET) public String showItemsList(ModelMap model) { List<Item> items = itemService.getItems(); model.addAttribute("items", items); return "items/items"; } }
ItemController { @RequestMapping(value = "/items", method = RequestMethod.GET) public String showItemsList(ModelMap model) { List<Item> items = itemService.getItems(); model.addAttribute("items", items); return "items/items"; }  }
ItemController { @RequestMapping(value = "/items", method = RequestMethod.GET) public String showItemsList(ModelMap model) { List<Item> items = itemService.getItems(); model.addAttribute("items", items); return "items/items"; }  @RequestMapping(value = "/items", method = RequestMethod.GET) String showItemsList(ModelMap model); @RequestMapping(value = "/items/create", method = RequestMethod.GET) String showCreateItemPage(ModelMap modelMap); @RequestMapping(value = "/items/createItem", method = RequestMethod.POST) ModelAndView createItem(
			@Valid @ModelAttribute("createItemForm") Item item,
			BindingResult result); }
ItemController { @RequestMapping(value = "/items", method = RequestMethod.GET) public String showItemsList(ModelMap model) { List<Item> items = itemService.getItems(); model.addAttribute("items", items); return "items/items"; }  @RequestMapping(value = "/items", method = RequestMethod.GET) String showItemsList(ModelMap model); @RequestMapping(value = "/items/create", method = RequestMethod.GET) String showCreateItemPage(ModelMap modelMap); @RequestMapping(value = "/items/createItem", method = RequestMethod.POST) ModelAndView createItem(
			@Valid @ModelAttribute("createItemForm") Item item,
			BindingResult result);  }