Package rocks.xmpp.extensions.mood.model

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


    @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

    @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

    @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

    @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

    @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

    @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

    @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

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

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

TOP

Related Classes of rocks.xmpp.extensions.mood.model.Mood

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.