@Test public void resetPassword() { masterKeyMockServer.expect(requestTo("https: .andExpect(method(POST)) .andRespond(withResponse(jsonResource("data/user-credentials"), responseHeaders, HttpStatus.OK, "OK")); urbanAirship.userOperations().resetPassword("someuser"); masterKeyMockServer.verify(); }
public void resetPassword(String userId) { restOperations.postForObject(USER_URL + "/" + userId + "/creds/reset", "", UserCredentials.class); }
UserTemplate implements UserOperations { public void resetPassword(String userId) { restOperations.postForObject(USER_URL + "/" + userId + "/creds/reset", "", UserCredentials.class); } }
UserTemplate implements UserOperations { public void resetPassword(String userId) { restOperations.postForObject(USER_URL + "/" + userId + "/creds/reset", "", UserCredentials.class); } UserTemplate(RestOperations restOperations); }
UserTemplate implements UserOperations { public void resetPassword(String userId) { restOperations.postForObject(USER_URL + "/" + userId + "/creds/reset", "", UserCredentials.class); } UserTemplate(RestOperations restOperations); UserCredentials createUser(); UserCredentials createUser(UserConfig userConfig); void modifyUser(String userId, UserConfig userConfig); void resetPassword(String userId); void deleteUser(String userId); String recoverAccount(String emailAddress); String recoverAccount(String emailAddress, String udid); }
UserTemplate implements UserOperations { public void resetPassword(String userId) { restOperations.postForObject(USER_URL + "/" + userId + "/creds/reset", "", UserCredentials.class); } UserTemplate(RestOperations restOperations); UserCredentials createUser(); UserCredentials createUser(UserConfig userConfig); void modifyUser(String userId, UserConfig userConfig); void resetPassword(String userId); void deleteUser(String userId); String recoverAccount(String emailAddress); String recoverAccount(String emailAddress, String udid);  }