Search in sources :

Example 1 with WatcherDAO

use of org.mamute.dao.WatcherDAO in project mamute by caelum.

the class WatcherDAOTest method set_up.

@Before
public void set_up() {
    User leo = user("Leonardo", "leo@leo.com");
    session.save(leo);
    Tag java = tag("java");
    session.save(java);
    question = question(leo, java);
    session.save(question);
    watchers = new WatcherDAO(session, new InvisibleForUsersRule(new LoggedUser(leo, null)));
}
Also used : User(org.mamute.model.User) LoggedUser(org.mamute.model.LoggedUser) WatcherDAO(org.mamute.dao.WatcherDAO) LoggedUser(org.mamute.model.LoggedUser) Tag(org.mamute.model.Tag) InvisibleForUsersRule(org.mamute.dao.InvisibleForUsersRule) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 InvisibleForUsersRule (org.mamute.dao.InvisibleForUsersRule)1 WatcherDAO (org.mamute.dao.WatcherDAO)1 LoggedUser (org.mamute.model.LoggedUser)1 Tag (org.mamute.model.Tag)1 User (org.mamute.model.User)1