@Test public void shouldResetUserPassword() throws Exception { sut.resetPassword(user, RANDOM_STRING, RANDOM_STRING, RANDOM_STRING, RANDOM_STRING, RANDOM_STRING); assertThat(user.getPassword(), is ("b5599d4896bb77df9f597e34004eff6fb55e148e")); }
public String resetPassword(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4) { String changedPassword = generateRandomPassword(rnd0, rnd1, rnd2, rnd3, rnd4); changePassword(user, changedPassword); return changedPassword; }
AuthenticationManagerDaoImpl extends AuthenticationManager { public String resetPassword(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4) { String changedPassword = generateRandomPassword(rnd0, rnd1, rnd2, rnd3, rnd4); changePassword(user, changedPassword); return changedPassword; } }
AuthenticationManagerDaoImpl extends AuthenticationManager { public String resetPassword(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4) { String changedPassword = generateRandomPassword(rnd0, rnd1, rnd2, rnd3, rnd4); changePassword(user, changedPassword); return changedPassword; } AuthenticationManagerDaoImpl(ConfigurationUtil cfg, IUserRolesService userRolesService); }
AuthenticationManagerDaoImpl extends AuthenticationManager { public String resetPassword(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4) { String changedPassword = generateRandomPassword(rnd0, rnd1, rnd2, rnd3, rnd4); changePassword(user, changedPassword); return changedPassword; } AuthenticationManagerDaoImpl(ConfigurationUtil cfg, IUserRolesService userRolesService); static AuthenticationManager getDefault(); boolean checkPassword(User user, String passwd); @Override void changePassword(User user, String password); String resetPassword(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4); String resetPasswordExternal(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4); }
AuthenticationManagerDaoImpl extends AuthenticationManager { public String resetPassword(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4) { String changedPassword = generateRandomPassword(rnd0, rnd1, rnd2, rnd3, rnd4); changePassword(user, changedPassword); return changedPassword; } AuthenticationManagerDaoImpl(ConfigurationUtil cfg, IUserRolesService userRolesService); static AuthenticationManager getDefault(); boolean checkPassword(User user, String passwd); @Override void changePassword(User user, String password); String resetPassword(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4); String resetPasswordExternal(User user, String[] rnd0, String[] rnd1, String[] rnd2, String[] rnd3, String[] rnd4);  }