Package org.mojavemvc.marshalling

Examples of org.mojavemvc.marshalling.XMLEntityMarshaller.contentTypesHandled()


   
    @Test
    public void xmlEntityMarshallerSupportsXMLContentType() {
       
        XMLEntityMarshaller m = new XMLEntityMarshaller();
        String[] contentTypes = m.contentTypesHandled();
        assertEquals(2, contentTypes.length);
        Set<String> contentTypeSet = new HashSet<String>(Arrays.asList(contentTypes));
        assertTrue(contentTypeSet.contains("application/xml"));
        assertTrue(contentTypeSet.contains("text/xml"));
    }
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.