@Test public void showHomePage_ShouldReturnHomeView() { String view = controller.showHomePage(); assertEquals(HomeController.HOME_VIEW, view); }
@RequestMapping(value = "/", method = RequestMethod.GET) public String showHomePage() { LOGGER.debug("Rendering home page."); return HOME_VIEW; }
HomeController { @RequestMapping(value = "/", method = RequestMethod.GET) public String showHomePage() { LOGGER.debug("Rendering home page."); return HOME_VIEW; } }
HomeController { @RequestMapping(value = "/", method = RequestMethod.GET) public String showHomePage() { LOGGER.debug("Rendering home page."); return HOME_VIEW; }  }
HomeController { @RequestMapping(value = "/", method = RequestMethod.GET) public String showHomePage() { LOGGER.debug("Rendering home page."); return HOME_VIEW; }  @RequestMapping(value = "/", method = RequestMethod.GET) String showHomePage(); }
HomeController { @RequestMapping(value = "/", method = RequestMethod.GET) public String showHomePage() { LOGGER.debug("Rendering home page."); return HOME_VIEW; }  @RequestMapping(value = "/", method = RequestMethod.GET) String showHomePage();  }