Package rocks.xmpp.extensions.activity.model

Examples of rocks.xmpp.extensions.activity.model.Activity


        String xml = "<activity xmlns='http://jabber.org/protocol/activity'>\n" +
                "  <talking>\n" +
                "    <partying/>\n" +
                "  </talking>\n" +
                "</activity>";
        Activity activity = unmarshal(xml, Activity.class);
        Assert.assertNotNull(activity);
        Assert.assertEquals(activity.getCategory(), Category.TALKING);
    }
View Full Code Here


        String xml = "<activity xmlns='http://jabber.org/protocol/activity'>\n" +
                "  <traveling>\n" +
                "    <partying/>\n" +
                "  </traveling>\n" +
                "</activity>";
        Activity activity = unmarshal(xml, Activity.class);
        Assert.assertNotNull(activity);
        Assert.assertEquals(activity.getCategory(), Category.TRAVELING);
    }
View Full Code Here

        String xml = "<activity xmlns='http://jabber.org/protocol/activity'>\n" +
                "  <undefined>\n" +
                "    <partying/>\n" +
                "  </undefined>\n" +
                "</activity>";
        Activity activity = unmarshal(xml, Activity.class);
        Assert.assertNotNull(activity);
        Assert.assertEquals(activity.getCategory(), Category.UNDEFINED);
    }
View Full Code Here

        String xml = "<activity xmlns='http://jabber.org/protocol/activity'>\n" +
                "  <working>\n" +
                "    <partying/>\n" +
                "  </working>\n" +
                "</activity>";
        Activity activity = unmarshal(xml, Activity.class);
        Assert.assertNotNull(activity);
        Assert.assertEquals(activity.getCategory(), Category.WORKING);
    }
View Full Code Here

TOP

Related Classes of rocks.xmpp.extensions.activity.model.Activity

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.