Examples of Mood


Examples of rocks.xmpp.extensions.mood.model.Mood

    @Test
    public void unmarshalDistracted() throws XMLStreamException, JAXBException {
        String xml = "<mood xmlns='http://jabber.org/protocol/mood'>\n" +
                "  <distracted/>\n" +
                "</mood>\n";
        Mood mood = unmarshal(xml, Mood.class);
        Assert.assertNotNull(mood);
        Assert.assertEquals(mood.getValue(), Mood.Value.DISTRACTED);
    }
View Full Code Here

Examples of rocks.xmpp.extensions.mood.model.Mood

    @Test
    public void unmarshalEmbarrassed() throws XMLStreamException, JAXBException {
        String xml = "<mood xmlns='http://jabber.org/protocol/mood'>\n" +
                "  <embarrassed/>\n" +
                "</mood>\n";
        Mood mood = unmarshal(xml, Mood.class);
        Assert.assertNotNull(mood);
        Assert.assertEquals(mood.getValue(), Mood.Value.EMBARRASSED);
    }
View Full Code Here

Examples of rocks.xmpp.extensions.mood.model.Mood

    @Test
    public void unmarshalEnvious() throws XMLStreamException, JAXBException {
        String xml = "<mood xmlns='http://jabber.org/protocol/mood'>\n" +
                "  <envious/>\n" +
                "</mood>\n";
        Mood mood = unmarshal(xml, Mood.class);
        Assert.assertNotNull(mood);
        Assert.assertEquals(mood.getValue(), Mood.Value.ENVIOUS);
    }
View Full Code Here

Examples of rocks.xmpp.extensions.mood.model.Mood

    @Test
    public void unmarshalExcited() throws XMLStreamException, JAXBException {
        String xml = "<mood xmlns='http://jabber.org/protocol/mood'>\n" +
                "  <excited/>\n" +
                "</mood>\n";
        Mood mood = unmarshal(xml, Mood.class);
        Assert.assertNotNull(mood);
        Assert.assertEquals(mood.getValue(), Mood.Value.EXCITED);
    }
View Full Code Here

Examples of rocks.xmpp.extensions.mood.model.Mood

    @Test
    public void unmarshalFrustrated() throws XMLStreamException, JAXBException {
        String xml = "<mood xmlns='http://jabber.org/protocol/mood'>\n" +
                "  <frustrated/>\n" +
                "</mood>\n";
        Mood mood = unmarshal(xml, Mood.class);
        Assert.assertNotNull(mood);
        Assert.assertEquals(mood.getValue(), Mood.Value.FRUSTRATED);
    }
View Full Code Here

Examples of rocks.xmpp.extensions.mood.model.Mood

    @Test
    public void unmarshalGrumpy() throws XMLStreamException, JAXBException {
        String xml = "<mood xmlns='http://jabber.org/protocol/mood'>\n" +
                "  <grumpy/>\n" +
                "</mood>\n";
        Mood mood = unmarshal(xml, Mood.class);
        Assert.assertNotNull(mood);
        Assert.assertEquals(mood.getValue(), Mood.Value.GRUMPY);
    }
View Full Code Here

Examples of rocks.xmpp.extensions.mood.model.Mood

    @Test
    public void unmarshalGuilty() throws XMLStreamException, JAXBException {
        String xml = "<mood xmlns='http://jabber.org/protocol/mood'>\n" +
                "  <guilty/>\n" +
                "</mood>\n";
        Mood mood = unmarshal(xml, Mood.class);
        Assert.assertNotNull(mood);
        Assert.assertEquals(mood.getValue(), Mood.Value.GUILTY);
    }
View Full Code Here

Examples of rocks.xmpp.extensions.mood.model.Mood

    @Test
    public void unmarshalFlirtatious() throws XMLStreamException, JAXBException {
        String xml = "<mood xmlns='http://jabber.org/protocol/mood'>\n" +
                "  <flirtatious/>\n" +
                "</mood>\n";
        Mood mood = unmarshal(xml, Mood.class);
        Assert.assertNotNull(mood);
        Assert.assertEquals(mood.getValue(), Mood.Value.FLIRTATIOUS);
    }
View Full Code Here

Examples of rocks.xmpp.extensions.mood.model.Mood

    @Test
    public void unmarshalHopeful() throws XMLStreamException, JAXBException {
        String xml = "<mood xmlns='http://jabber.org/protocol/mood'>\n" +
                "  <hopeful/>\n" +
                "</mood>\n";
        Mood mood = unmarshal(xml, Mood.class);
        Assert.assertNotNull(mood);
        Assert.assertEquals(mood.getValue(), Mood.Value.HOPEFUL);
    }
View Full Code Here

Examples of rocks.xmpp.extensions.mood.model.Mood

    @Test
    public void unmarshalHot() throws XMLStreamException, JAXBException {
        String xml = "<mood xmlns='http://jabber.org/protocol/mood'>\n" +
                "  <hot/>\n" +
                "</mood>\n";
        Mood mood = unmarshal(xml, Mood.class);
        Assert.assertNotNull(mood);
        Assert.assertEquals(mood.getValue(), Mood.Value.HOT);
    }
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.