@Test void getActivateView() throws Exception { this.mockMvc .perform(get("/account/activate")) .andExpect(status().isOk()) .andExpect(view().name("view-activate")); }
@GetMapping("/activate") public String getActivateView() { return "view-activate"; }
AccountController { @GetMapping("/activate") public String getActivateView() { return "view-activate"; } }
AccountController { @GetMapping("/activate") public String getActivateView() { return "view-activate"; } AccountController(
      AccountService accountService,
      ReCaptchaService reCaptchaV3Service,
      AuthenticationSettings authenticationSettings,
      UserFactory userFactory,
      AppSettings appSettings,
      PasswordResetter passwordResetter); }
AccountController { @GetMapping("/activate") public String getActivateView() { return "view-activate"; } AccountController(
      AccountService accountService,
      ReCaptchaService reCaptchaV3Service,
      AuthenticationSettings authenticationSettings,
      UserFactory userFactory,
      AppSettings appSettings,
      PasswordResetter passwordResetter); @GetMapping("/login") String getLoginForm(); @GetMapping("/register") ModelAndView getRegisterForm(); @GetMapping("/activate") String getActivateView(); @GetMapping("/activate-success") String getActivateSuccessView(); @GetMapping("/password/reset") String getPasswordResetForm(); @GetMapping(CHANGE_PASSWORD_RELATIVE_URI) String getPasswordResetChangeForm(Model model); @GetMapping(value = CHANGE_PASSWORD_RELATIVE_URI, params = "token") String getPasswordResetChangeFormToken(
      @RequestParam("username") String username, @RequestParam("token") String token, Model model); @PostMapping(CHANGE_PASSWORD_RELATIVE_URI) String changePassword(@Valid ChangePasswordForm form); @PostMapping(value = CHANGE_PASSWORD_RELATIVE_URI, params = "token") String changePasswordToken(
      @RequestParam("username") String username,
      @RequestParam("token") String token,
      @Valid ChangePasswordForm changePasswordForm); @PostMapping(value = "/register", headers = "Content-Type=application/x-www-form-urlencoded") @ResponseBody Map<String, String> registerUser(
      @Valid @ModelAttribute RegisterRequest registerRequest, HttpServletRequest request); @PostMapping("/activate") final String activateUser(
      @RequestParam("activationCode") String activationCode, Model model); @PostMapping( value = "/password/reset", headers = "Content-Type=application/x-www-form-urlencoded") @ResponseStatus(HttpStatus.NO_CONTENT) void resetPassword(@Valid @ModelAttribute PasswordResetRequest passwordResetRequest); @ExceptionHandler(MolgenisUserException.class) @ResponseStatus(value = HttpStatus.BAD_REQUEST) @ResponseBody ErrorMessageResponse handleMolgenisUserException(MolgenisUserException e); @ExceptionHandler(UsernameAlreadyExistsException.class) @ResponseStatus(value = HttpStatus.BAD_REQUEST) @ResponseBody ErrorMessageResponse handleUsernameAlreadyExistsException(
      UsernameAlreadyExistsException e); @ExceptionHandler(EmailAlreadyExistsException.class) @ResponseStatus(value = HttpStatus.BAD_REQUEST) @ResponseBody ErrorMessageResponse handleEmailAlreadyExistsException(EmailAlreadyExistsException e); @ExceptionHandler(MolgenisDataException.class) @ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR) @ResponseBody ErrorMessageResponse handleMolgenisDataException(MolgenisDataException e); @ExceptionHandler(RuntimeException.class) @ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR) @ResponseBody ErrorMessageResponse handleRuntimeException(RuntimeException e); }
AccountController { @GetMapping("/activate") public String getActivateView() { return "view-activate"; } AccountController(
      AccountService accountService,
      ReCaptchaService reCaptchaV3Service,
      AuthenticationSettings authenticationSettings,
      UserFactory userFactory,
      AppSettings appSettings,
      PasswordResetter passwordResetter); @GetMapping("/login") String getLoginForm(); @GetMapping("/register") ModelAndView getRegisterForm(); @GetMapping("/activate") String getActivateView(); @GetMapping("/activate-success") String getActivateSuccessView(); @GetMapping("/password/reset") String getPasswordResetForm(); @GetMapping(CHANGE_PASSWORD_RELATIVE_URI) String getPasswordResetChangeForm(Model model); @GetMapping(value = CHANGE_PASSWORD_RELATIVE_URI, params = "token") String getPasswordResetChangeFormToken(
      @RequestParam("username") String username, @RequestParam("token") String token, Model model); @PostMapping(CHANGE_PASSWORD_RELATIVE_URI) String changePassword(@Valid ChangePasswordForm form); @PostMapping(value = CHANGE_PASSWORD_RELATIVE_URI, params = "token") String changePasswordToken(
      @RequestParam("username") String username,
      @RequestParam("token") String token,
      @Valid ChangePasswordForm changePasswordForm); @PostMapping(value = "/register", headers = "Content-Type=application/x-www-form-urlencoded") @ResponseBody Map<String, String> registerUser(
      @Valid @ModelAttribute RegisterRequest registerRequest, HttpServletRequest request); @PostMapping("/activate") final String activateUser(
      @RequestParam("activationCode") String activationCode, Model model); @PostMapping( value = "/password/reset", headers = "Content-Type=application/x-www-form-urlencoded") @ResponseStatus(HttpStatus.NO_CONTENT) void resetPassword(@Valid @ModelAttribute PasswordResetRequest passwordResetRequest); @ExceptionHandler(MolgenisUserException.class) @ResponseStatus(value = HttpStatus.BAD_REQUEST) @ResponseBody ErrorMessageResponse handleMolgenisUserException(MolgenisUserException e); @ExceptionHandler(UsernameAlreadyExistsException.class) @ResponseStatus(value = HttpStatus.BAD_REQUEST) @ResponseBody ErrorMessageResponse handleUsernameAlreadyExistsException(
      UsernameAlreadyExistsException e); @ExceptionHandler(EmailAlreadyExistsException.class) @ResponseStatus(value = HttpStatus.BAD_REQUEST) @ResponseBody ErrorMessageResponse handleEmailAlreadyExistsException(EmailAlreadyExistsException e); @ExceptionHandler(MolgenisDataException.class) @ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR) @ResponseBody ErrorMessageResponse handleMolgenisDataException(MolgenisDataException e); @ExceptionHandler(RuntimeException.class) @ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR) @ResponseBody ErrorMessageResponse handleRuntimeException(RuntimeException e); static final String URI; @SuppressWarnings("java:S2068") // this is not a hardcoded password
  static final String CHANGE_PASSWORD_URI; }