private static void testGetUsers() { final UserService userService = new UserService(BASE_URL, AUTH_TICKET); try { System.out.println(userService.getUsers("A", 2)); } catch (final UserException e) { e.printStackTrace(); } }
private static void testChangeUserPassword() { final UserService userService = new UserService(BASE_URL, AUTH_TICKET); try { userService.changePassword("ajay", "ajay", "ajayd"); } catch (final UserException e) { e.printStackTrace(); } }
private static void testDeleteUser() { final UserService userService = new UserService(BASE_URL, AUTH_TICKET); try { userService.deleteUser("ajay"); } catch (final UserException e) { e.printStackTrace(); } }
private static void testCreateUser() { final UserService userService = new UserService(BASE_URL, AUTH_TICKET); final AddUser user = getMockUser(); try { System.out.println(userService.createUser(user)); } catch (final UserException e) { e.printStackTrace(); } }
private static void testUpdateUser() { final UserService userService = new UserService(BASE_URL, AUTH_TICKET); final User user = new User(); user.setCompanyaddress1("73, Sector 5"); user.setCompanyaddress2("Manesar"); user.setOrganization("Techblue Software"); user.setMobile("9212641104"); try { System.out.println(userService.updateUser("ajay", user)); } catch (final UserException e) { e.printStackTrace(); } }