Search in sources :

Example 1 with VisibleCommentList

use of org.mamute.model.VisibleCommentList in project mamute by caelum.

the class VisibleCommentListTest method setup.

@Before
public void setup() {
    commentList = new VisibleCommentList();
    author = user("leonardo", "leo@leo.com");
    leo = user("leonardo", "leo@leo.com");
    moderatorLeo = user("moderator", "moderator@leo.com").asModerator();
    Comment comment = comment(author, "meu teste de visibilidade de comentarios :)");
    comment.remove();
    invisibleComments = asList(comment);
    session.save(leo);
    session.save(moderatorLeo);
    session.save(author);
    session.save(comment);
}
Also used : Comment(org.mamute.model.Comment) VisibleCommentList(org.mamute.model.VisibleCommentList) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 Comment (org.mamute.model.Comment)1 VisibleCommentList (org.mamute.model.VisibleCommentList)1