Package io.airlift.http.client.TestFullJsonResponseHandler

Examples of io.airlift.http.client.TestFullJsonResponseHandler.User


    }

    @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 io.airlift.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.