@Test public void testListCustomers() { assertEquals("customers/customers", customerController.listCustomers(new ModelMap())); }
@RequestMapping(value = "/customers", method = RequestMethod.GET) public String listCustomers(ModelMap modelMap) { logger.info("Fetching customers list"); List<Customer> customers = customerService.getCustomers(); modelMap.addAttribute("customers", customers); return "customers/customers"; }
CustomerController { @RequestMapping(value = "/customers", method = RequestMethod.GET) public String listCustomers(ModelMap modelMap) { logger.info("Fetching customers list"); List<Customer> customers = customerService.getCustomers(); modelMap.addAttribute("customers", customers); return "customers/customers"; } }
CustomerController { @RequestMapping(value = "/customers", method = RequestMethod.GET) public String listCustomers(ModelMap modelMap) { logger.info("Fetching customers list"); List<Customer> customers = customerService.getCustomers(); modelMap.addAttribute("customers", customers); return "customers/customers"; }  }
CustomerController { @RequestMapping(value = "/customers", method = RequestMethod.GET) public String listCustomers(ModelMap modelMap) { logger.info("Fetching customers list"); List<Customer> customers = customerService.getCustomers(); modelMap.addAttribute("customers", customers); return "customers/customers"; }  @RequestMapping(value = "/customers/create", method = RequestMethod.GET) String showCreateCustomerFormPage(ModelMap modelMap); @RequestMapping(value = "/customers/createCustomer", method = RequestMethod.POST) ModelAndView createCustomer(
			@Valid @ModelAttribute("createCustomerForm") Customer customer,
			BindingResult result); @RequestMapping(value = "/customers", method = RequestMethod.GET) String listCustomers(ModelMap modelMap); }
CustomerController { @RequestMapping(value = "/customers", method = RequestMethod.GET) public String listCustomers(ModelMap modelMap) { logger.info("Fetching customers list"); List<Customer> customers = customerService.getCustomers(); modelMap.addAttribute("customers", customers); return "customers/customers"; }  @RequestMapping(value = "/customers/create", method = RequestMethod.GET) String showCreateCustomerFormPage(ModelMap modelMap); @RequestMapping(value = "/customers/createCustomer", method = RequestMethod.POST) ModelAndView createCustomer(
			@Valid @ModelAttribute("createCustomerForm") Customer customer,
			BindingResult result); @RequestMapping(value = "/customers", method = RequestMethod.GET) String listCustomers(ModelMap modelMap);  }