Package com.sun.jersey.samples.springannotations.model

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


     * 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

Related Classes of com.sun.jersey.samples.springannotations.model.Item2

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.