Examples of TagVO


Examples of org.apache.cxf.jaxrs.resources.TagVO

        map.put("tagVO", "{http://tags}thetag");
        provider.setOutTransformElements(map);
        Map<String, String> nsmap = new HashMap<String, String>();
        nsmap.put("http://tags", "ps1");
        provider.setNamespaceMap(nsmap);
        TagVO tag = new TagVO("A", "B");
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        provider.writeTo(tag, TagVO.class, TagVO.class,
                       new Annotation[0], MediaType.TEXT_XML_TYPE, new MetadataMap<String, Object>(), bos);
        String expected = "{\"ps1.thetag\":{\"group\":\"B\",\"name\":\"A\"}}";
        assertEquals(expected, bos.toString());
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.