Package org.apache.wink.itest.exceptionmappers.nomapper

Examples of org.apache.wink.itest.exceptionmappers.nomapper.Comment


        GetMethod getMethod = new GetMethod(newPostURILocation);
        client.executeMethod(getMethod);
        assertEquals(200, getMethod.getStatusCode());

        Comment c =
            (Comment)JAXBContext.newInstance(Comment.class.getPackage().getName())
                .createUnmarshaller().unmarshal(getMethod.getResponseBodyAsStream());
        assertEquals("Anonymous", c.getAuthor());
        assertEquals(1, c.getId().intValue());
        assertEquals("Hello World!", c.getMessage());
    }
View Full Code Here

TOP

Related Classes of org.apache.wink.itest.exceptionmappers.nomapper.Comment

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.