Package org.glassfish.jersey.tests.integration.jersey2255

Examples of org.glassfish.jersey.tests.integration.jersey2255.Jersey2255ITCase


     * Server side response is wrapped, needs to be read to wrapper class.
     */
    @Test
    public void testClassAGet() {
        final Response response = target("A").request().get();
        final A entity = response.readEntity(A.class);

        assertThat(response.getStatus(), equalTo(200));
        assertNull(entity.getFieldA1());
    }
View Full Code Here


    }

    @Test
    public void testDetailedClassAGet() {
        final Response response = target("A").queryParam("detailed", true).request().get();
        final A entity = response.readEntity(A.class);

        assertThat(response.getStatus(), equalTo(200));
        assertThat(entity.getFieldA1(), equalTo("fieldA1Value"));
    }
View Full Code Here

    }

    @Test
    public void testClassBGet() {
        final Response response = target("B").request().get();
        final B entity = response.readEntity(B.class);

        assertThat(response.getStatus(), equalTo(200));
        assertNull(entity.getFieldA1());
        assertThat(entity.getFieldB1(), equalTo("fieldB1Value"));
    }
View Full Code Here

     * Server side response is returned as orig class.
     */
    @Test
    public void testDetailedClassBGet() {
        final Response response = target("B").queryParam("detailed", true).request().get();
        final B entity = response.readEntity(B.class);

        assertThat(response.getStatus(), equalTo(200));
        assertThat(entity.getFieldA1(), equalTo("fieldA1Value"));
        assertThat(entity.getFieldB1(), equalTo("fieldB1Value"));
    }
View Full Code Here

TOP

Related Classes of org.glassfish.jersey.tests.integration.jersey2255.Jersey2255ITCase

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.