Search in sources :

Example 36 with LoggedUser

use of org.mamute.model.LoggedUser 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

LoggedUser (org.mamute.model.LoggedUser)36 Test (org.junit.Test)24 Before (org.junit.Before)9 User (org.mamute.model.User)9 InvisibleForUsersRule (org.mamute.dao.InvisibleForUsersRule)7 ServletContext (javax.servlet.ServletContext)6 EnvironmentKarma (org.mamute.brutauth.auth.rules.EnvironmentKarma)6 MamuteEnvironment (org.mamute.vraptor.environment.MamuteEnvironment)6 VRaptorTestResult (br.com.caelum.vraptor.test.VRaptorTestResult)4 Criterion (org.hibernate.criterion.Criterion)4 Answer (org.mamute.model.Answer)4 UserFlow (br.com.caelum.vraptor.test.requestflow.UserFlow)3 EditAnswerRule (org.mamute.brutauth.auth.rules.EditAnswerRule)3 EditQuestionRule (org.mamute.brutauth.auth.rules.EditQuestionRule)3 AnswerInformation (org.mamute.model.AnswerInformation)3 Comment (org.mamute.model.Comment)3 Question (org.mamute.model.Question)3 QuestionInformation (org.mamute.model.QuestionInformation)3 Tag (org.mamute.model.Tag)3 UpdateStatus (org.mamute.model.UpdateStatus)3