Search in sources :

Example 1 with RetrieveKarma

use of org.mamute.model.flag.RetrieveKarma in project mamute by caelum.

the class RetrieveKarmaTest method setUp.

@Before
public void setUp() {
    User moderator = user(null, null).asModerator();
    User user = user(null, null);
    retrieveKarma = new RetrieveKarma(new LoggedUser(moderator, null), null, null);
    retrieveKarmaWithoutModerator = new RetrieveKarma(new LoggedUser(user, null), null, null);
    question = question(null);
}
Also used : User(org.mamute.model.User) LoggedUser(org.mamute.model.LoggedUser) RetrieveKarma(org.mamute.model.flag.RetrieveKarma) LoggedUser(org.mamute.model.LoggedUser) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 LoggedUser (org.mamute.model.LoggedUser)1 User (org.mamute.model.User)1 RetrieveKarma (org.mamute.model.flag.RetrieveKarma)1