Package com.uip.tatar.model.user

Examples of com.uip.tatar.model.user.User


        }
    }

    private User getTestUser() {
        try {
            User user = new User();
            Field field = User.class.getDeclaredField("id");
            field.setAccessible(true);
            field.set(user, "50d308f5dc490ef10e00000d");

            return user;
View Full Code Here


    }

    @Test
    public void createUser() {
        try {
            User user = APITatar.createUser("9376234232", "123");
            Assert.assertNotNull("User is null", user);
            APITatar.removeUser(user.getId());
        } catch (APITatarException ex) {
            Assert.fail(ex.getMessage());
        }
    }
View Full Code Here

    @Test
    public void getUser() {
        try {
            authenticatedIfNeed();

            User user = APITatar.getUser(LOGIN, PASSWORD);

            Assert.assertNotNull("User is null", user);
        catch (APITatarException ex) {
            Assert.fail(ex.getMessage());
        }
View Full Code Here

            //auth
            apiTatar.auth("9518976217", "1");

            //get user
            User user =  apiTatar.getUser("9518976217", "1");

            user.setLastName("blablabla");
            Vehicle vehicle =  user.getDefaultVehicle();
            user.removeVehicle(vehicle);

            //update
            apiTatar.updateUser(user);

            //get fines
            GibddFines fines = apiTatar.getFines(user.getDefaultVehicle());

            //get payment histories
            PaymentHistories paymentHistories = apiTatar.getPaymentHistories(user.getId(), new Paginate());

            //send sms
            apiTatar.sendSMS(user.getId(), "message text");


            //System.out.println(fines);

        } catch (APITatarException iex) {
View Full Code Here

TOP

Related Classes of com.uip.tatar.model.user.User

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.