Package com.proofpoint.http.client.TestFullJsonResponseHandler

Examples of com.proofpoint.http.client.TestFullJsonResponseHandler.User


    }

    @Test
    public void testValidSmile()
    {
        User response = handler.handle(null, createSmileResponse(OK, ImmutableMap.of(
                "name", "Joe",
                "age", 25,
                "extra", true
        )));

        assertEquals(response.getName(), "Joe");
        assertEquals(response.getAge(), 25);
    }
View Full Code Here


    }

    @Test
    public void testValidJson()
    {
        User user = new User("Joe", 25);
        User response = handler.handle(null, mockResponse(OK, JSON_UTF_8, codec.toJson(user)));

        assertEquals(response.getName(), user.getName());
        assertEquals(response.getAge(), user.getAge());
    }
View Full Code Here

TOP

Related Classes of com.proofpoint.http.client.TestFullJsonResponseHandler.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.