@Test void testValidatePasswordResetTokenUnknownUser() { String username = "MyUsername"; String token = "MyToken"; assertThrows( UnknownUserException.class, () -> passwordResetServiceImpl.validatePasswordResetToken(username, token)); }
@Transactional(readOnly = true) @RunAsSystem @Override public void validatePasswordResetToken(String username, String token) { User user = getUser(username); passwordResetTokenService.validateToken(user, token); }
PasswordResetterImpl implements PasswordResetter { @Transactional(readOnly = true) @RunAsSystem @Override public void validatePasswordResetToken(String username, String token) { User user = getUser(username); passwordResetTokenService.validateToken(user, token); } }
PasswordResetterImpl implements PasswordResetter { @Transactional(readOnly = true) @RunAsSystem @Override public void validatePasswordResetToken(String username, String token) { User user = getUser(username); passwordResetTokenService.validateToken(user, token); } PasswordResetterImpl(
      PasswordResetTokenRepository passwordResetTokenRepository,
      UserService userService,
      MailSender mailSender,
      AppSettings appSettings); }
PasswordResetterImpl implements PasswordResetter { @Transactional(readOnly = true) @RunAsSystem @Override public void validatePasswordResetToken(String username, String token) { User user = getUser(username); passwordResetTokenService.validateToken(user, token); } PasswordResetterImpl(
      PasswordResetTokenRepository passwordResetTokenRepository,
      UserService userService,
      MailSender mailSender,
      AppSettings appSettings); @Transactional @RunAsSystem @Override void resetPassword(String emailAddress); @Transactional(readOnly = true) @RunAsSystem @Override void validatePasswordResetToken(String username, String token); @Transactional @RunAsSystem @Override void changePassword(String username, String token, String password); @Transactional @Override void changePasswordAuthenticatedUser(String password); }
PasswordResetterImpl implements PasswordResetter { @Transactional(readOnly = true) @RunAsSystem @Override public void validatePasswordResetToken(String username, String token) { User user = getUser(username); passwordResetTokenService.validateToken(user, token); } PasswordResetterImpl(
      PasswordResetTokenRepository passwordResetTokenRepository,
      UserService userService,
      MailSender mailSender,
      AppSettings appSettings); @Transactional @RunAsSystem @Override void resetPassword(String emailAddress); @Transactional(readOnly = true) @RunAsSystem @Override void validatePasswordResetToken(String username, String token); @Transactional @RunAsSystem @Override void changePassword(String username, String token, String password); @Transactional @Override void changePasswordAuthenticatedUser(String password);  }