@Test void getLoginPage() throws Exception { this.mockMvc .perform(get("/login")) .andExpect(status().isOk()) .andExpect(view().name("view-login")); }
@GetMapping public String getLoginPage(HttpServletRequest httpServletRequest, Model model) { if (hasInvalidSessionId(httpServletRequest)) { return getLoginErrorPage(model); } return VIEW_LOGIN; }
MolgenisLoginController { @GetMapping public String getLoginPage(HttpServletRequest httpServletRequest, Model model) { if (hasInvalidSessionId(httpServletRequest)) { return getLoginErrorPage(model); } return VIEW_LOGIN; } }
MolgenisLoginController { @GetMapping public String getLoginPage(HttpServletRequest httpServletRequest, Model model) { if (hasInvalidSessionId(httpServletRequest)) { return getLoginErrorPage(model); } return VIEW_LOGIN; }  }
MolgenisLoginController { @GetMapping public String getLoginPage(HttpServletRequest httpServletRequest, Model model) { if (hasInvalidSessionId(httpServletRequest)) { return getLoginErrorPage(model); } return VIEW_LOGIN; }  @GetMapping String getLoginPage(HttpServletRequest httpServletRequest, Model model); @GetMapping(params = PARAM_SESSION_EXPIRED) String getLoginErrorPage(Model model); @GetMapping(params = "error") String getLoginErrorPage(Model model, HttpServletRequest request); }
MolgenisLoginController { @GetMapping public String getLoginPage(HttpServletRequest httpServletRequest, Model model) { if (hasInvalidSessionId(httpServletRequest)) { return getLoginErrorPage(model); } return VIEW_LOGIN; }  @GetMapping String getLoginPage(HttpServletRequest httpServletRequest, Model model); @GetMapping(params = PARAM_SESSION_EXPIRED) String getLoginErrorPage(Model model); @GetMapping(params = "error") String getLoginErrorPage(Model model, HttpServletRequest request); static final String PARAM_SESSION_EXPIRED; static final String URI; static final String ERROR_MESSAGE_ATTRIBUTE; static final String ERROR_MESSAGE_DISABLED; static final String SPRING_SECURITY_CONTEXT; static final String SPRING_SECURITY_SAVED_REQUEST; static final String JSESSIONID; }