Examples of CommentEvent


Examples of net.sourceforge.pebble.api.event.comment.CommentEvent

  /**
   * Tests that a CommentEvent instance is correctly constructed.
   */
  public void testConstruction() {
    Comment comment = new BlogEntry(blog).createComment("Title", "Body", "Author", "me@somedomain.com", "http://www.google.com", "http://graph.facebook.com/user/picture", "127.0.0.1");
    event = new CommentEvent(comment, CommentEvent.COMMENT_ADDED);

    assertEquals(comment, event.getSource());
    assertEquals(comment, event.getComment());
    assertEquals(CommentEvent.COMMENT_ADDED, event.getType());
  }
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.