Examples of Privacy


Examples of rocks.xmpp.extensions.privacy.model.Privacy

        Assert.assertEquals(privacy.getPrivacyLists().get(0).getPrivacyRules().get(0).getOrder(), 3);
    }

    @Test
    public void marshalChangeActiveListRequest() throws XMLStreamException, JAXBException {
        Privacy privacy = new Privacy();
        privacy.setActiveName("special");
        IQ iq = new IQ(IQ.Type.GET, privacy);
        iq.setFrom(Jid.valueOf("romeo@example.net/orchard"));
        iq.setId("getlist1");
        String xml = marshal(iq);
        Assert.assertEquals(xml, "<iq from=\"romeo@example.net/orchard\" id=\"getlist1\" type=\"get\"><query xmlns=\"jabber:iq:privacy\"><active name=\"special\"></active></query></iq>");
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.