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);
}
Aggregations