Examples of Mood


Examples of grammar.model.verbs.Mood

 
  public void endDocument() {
    if (name == null)
      throw new IllegalStateException("No name defined for this mode!");
       
    mood = new Mood(getLanguage(), name, suppressPronouns, personal, sequence);
  }
View Full Code Here

Examples of org.uberfire.shared.Mood

    }

    @EventHandler("moodTextBox")
    private void onKeyDown(KeyDownEvent event) {
        if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
            moodEvent.fire(new Mood(moodTextBox.getText()));
            moodTextBox.setText("");
        }
    }
View Full Code Here

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

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

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

    public void unmarshalHappy() throws XMLStreamException, JAXBException {
        String xml = "<mood xmlns='http://jabber.org/protocol/mood'>\n" +
                "  <happy/>\n" +
                "  <text>Yay, the mood spec has been approved!</text>\n" +
                "</mood>\n";
        Mood mood = unmarshal(xml, Mood.class);
        Assert.assertNotNull(mood);
        Assert.assertEquals(mood.getText(), "Yay, the mood spec has been approved!");
        Assert.assertEquals(mood.getValue(), Mood.Value.HAPPY);
    }
View Full Code Here

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

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

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

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

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

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

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

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

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

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

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

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