Package rocks.xmpp.extensions.address.model

Examples of rocks.xmpp.extensions.address.model.Address


    }

    @Test
    public void marshalAddresses() throws JAXBException, XMLStreamException {
        List<Address> addressList = new ArrayList<>();
        addressList.add(new Address(Address.Type.TO, Jid.valueOf("hildjj@jabber.org/Work"), "description", "node"));
        addressList.add(new Address(Address.Type.CC, Jid.valueOf("jer@jabber.org/Home")));
        Addresses addresses = new Addresses(addressList);

        String xml = marshal(addresses);
        Assert.assertEquals(xml, "<addresses xmlns=\"http://jabber.org/protocol/address\"><address type=\"to\" jid=\"hildjj@jabber.org/Work\" desc=\"description\" node=\"node\"></address><address type=\"cc\" jid=\"jer@jabber.org/Home\"></address></addresses>");
    }
View Full Code Here

TOP

Related Classes of rocks.xmpp.extensions.address.model.Address

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.