Package rocks.xmpp.extensions.json.model

Examples of rocks.xmpp.extensions.json.model.Json


    }

    @Test
    public void unmarshalJson() throws XMLStreamException, JAXBException {
        String xml = "<json xmlns=\"urn:xmpp:json:0\">{ \"name\": \"romeo\", \"age\": \"421\", \"status\": \"single\" }</json>";
        Json json = unmarshal(xml, Json.class);
        Assert.assertNotNull(json);
        Assert.assertEquals(json.getValue(), "{ \"name\": \"romeo\", \"age\": \"421\", \"status\": \"single\" }");
    }
View Full Code Here

TOP

Related Classes of rocks.xmpp.extensions.json.model.Json

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.