@Test public void createUser_noConfig() { masterKeyMockServer.expect(requestTo("https: .andExpect(method(POST)) .andRespond(withResponse(jsonResource("data/user-credentials"), responseHeaders, HttpStatus.CREATED, "Created")); UserCredentials credentials = urbanAirship.userOperations().createUser(); assertEquals("https: assertEquals("someuser", credentials.getUserId()); assertEquals("somepassword", credentials.getPassword()); masterKeyMockServer.verify(); }
public UserCredentials createUser() { return createUser(null); }
UserTemplate implements UserOperations { public UserCredentials createUser() { return createUser(null); } }
UserTemplate implements UserOperations { public UserCredentials createUser() { return createUser(null); } UserTemplate(RestOperations restOperations); }
UserTemplate implements UserOperations { public UserCredentials createUser() { return createUser(null); } 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 UserCredentials createUser() { return createUser(null); } 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);  }