Examples of Item2


Examples of com.sun.jersey.samples.springannotations.model.Item2

     * a valid response.
     */
    @Test
    public void doTestSpringResourced() {
        WebResource webResource = resource();
        Item2 item = webResource.path("spring-resourced").accept(MediaType.APPLICATION_XML)
                .get(Item2.class);
        assertEquals("Method: doTestSpringResourced \nMessage: Returned item's value " +
                " does not match the expected one.", "baz", item.getValue());
    }
View Full Code Here

Examples of com.sun.jersey.samples.springannotations.model.Item2

     * valid response.
     */
    @Test
    public void doTestSpringAutowired() {
        WebResource webResource = resource();
        Item2 item = webResource.path("spring-autowired").accept(MediaType.APPLICATION_XML)
                .get(Item2.class);
        assertEquals("Method: doTestSpringAutowired \nMessage: Returned item's value " +
                " does not match the expected one.", "bar", item.getValue());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.