@Test public void testLogin() throws Exception { mockMvc.perform(get("/login").accept(MediaType.APPLICATION_XHTML_XML)) .andExpect(view().name("login")) .andExpect(status().isOk()); }
@RequestMapping public String login() { return "login"; }
LoginController { @RequestMapping public String login() { return "login"; } }
LoginController { @RequestMapping public String login() { return "login"; }  }
LoginController { @RequestMapping public String login() { return "login"; }  @RequestMapping String login(); }
LoginController { @RequestMapping public String login() { return "login"; }  @RequestMapping String login();  }