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

Examples of org.glassfish.jersey.tests.integration.jersey2255.Issue2255Resource$B


     * 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

        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("complexSequenceReturn Exception caught: " + re );
        }
        String[] optArray = new String[] {"abc", "def"};
        byte[][] byteArray = new byte[][] { new byte[] {'a', 'b', 'c'}, new byte[] {'x', 'y', 'z'} };
        B b = new B();
        A a = new A();
        a.setC(3);
        b.setD(a);
        ElemWComplex elemWComplex = new ElemWComplex();
        StringParameter sp = new StringParameter("sweet!");
        sp.setDescription("Pass this as an element and an attribute...wow!");

        elemWComplex.setOne( new Simple("one"));
View Full Code Here

        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
        }
        String[] optArray = new String[] {"abc", "def"};
        byte[][] byteArray = new byte[][] { new byte[] {'a', 'b', 'c'}, new byte[] {'x', 'y', 'z'} };
        B b = new B();
        A a = new A();
        a.setC(3);
        b.setD(a);
        ElemWComplex elemWComplex = new ElemWComplex();
        StringParameter sp = new StringParameter("sweet!");
        sp.setDescription("Pass this as an element and an attribute...wow!");

        elemWComplex.setOne( new Simple("one"));
View Full Code Here

        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("complexSequenceReturn Exception caught: " + re );
        }
        String[] optArray = new String[] {"abc", "def"};
        byte[][] byteArray = new byte[][] { new byte[] {'a', 'b', 'c'}, new byte[] {'x', 'y', 'z'} };
        B b = new B();
        A a = new A();
        a.setC(3);
        b.setD(a);
        _complexWComplex_stock_quote stockQuote = new _complexWComplex_stock_quote();
        Time time = new Time();
        time.setDST(false);
        stockQuote.setTime(time);
        stockQuote.setChange("5");
View Full Code Here

        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("complexSequenceReturn Exception caught: " + re );
        }
        String[] optArray = new String[] {"abc", "def"};
        byte[][] byteArray = new byte[][] { new byte[] {'a', 'b', 'c'}, new byte[] {'x', 'y', 'z'} };
        B b = new B();
        A a = new A();
        a.setC(3);
        b.setD(a);
        ElemWComplex elemWComplex = new ElemWComplex();
        StringParameter sp = new StringParameter("sweet!");
        sp.setDescription("Pass this as an element and an attribute...wow!");

        elemWComplex.setOne( new Simple("one"));
View Full Code Here

        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
        }
        String[] optArray = new String[] {"abc", "def"};
        byte[][] byteArray = new byte[][] { new byte[] {'a', 'b', 'c'}, new byte[] {'x', 'y', 'z'} };
        B b = new B();
        A a = new A();
        a.setC(3);
        b.setD(a);
        ElemWComplex elemWComplex = new ElemWComplex();
        StringParameter sp = new StringParameter("sweet!");
        sp.setDescription("Pass this as an element and an attribute...wow!");

        elemWComplex.setOne( new Simple("one"));
View Full Code Here

        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("complexSequenceReturn Exception caught: " + re );
        }
        String[] optArray = new String[] {"abc", "def"};
        byte[][] byteArray = new byte[][] { new byte[] {'a', 'b', 'c'}, new byte[] {'x', 'y', 'z'} };
        B b = new B();
        A a = new A();
        a.setC(3);
        b.setD(a);
        _complexWComplex_stock_quote stockQuote = new _complexWComplex_stock_quote();
        Time time = new Time();
        time.setDST(false);
        stockQuote.setTime(time);
        stockQuote.setChange("5");
View Full Code Here

TOP

Related Classes of org.glassfish.jersey.tests.integration.jersey2255.Issue2255Resource$B

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.