@Test public void testFindPassword() throws Exception { log.info("findPassword"); MvcResult result = mvc.perform(get("/findpassword")) .andExpect(status().isOk()) .andExpect(content().contentTypeCompatibleWith(MediaType.TEXT_HTML)) .andReturn(); }
@GetMapping("findpassword") public String findPassword() { return "users/findPassword"; }
MainController { @GetMapping("findpassword") public String findPassword() { return "users/findPassword"; } }
MainController { @GetMapping("findpassword") public String findPassword() { return "users/findPassword"; }  }
MainController { @GetMapping("findpassword") public String findPassword() { return "users/findPassword"; }  @GetMapping("/") String index(Model model); @GetMapping("faq") String faq(); @GetMapping("findpassword") String findPassword(); @GetMapping({"registerpage", "register"}) String registerPage(); }
MainController { @GetMapping("findpassword") public String findPassword() { return "users/findPassword"; }  @GetMapping("/") String index(Model model); @GetMapping("faq") String faq(); @GetMapping("findpassword") String findPassword(); @GetMapping({"registerpage", "register"}) String registerPage();  }