Search in sources :

Example 1 with Updater

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

the class UpdaterTest method before_test.

@Before
public void before_test() throws IOException {
    ServletContext ctx = mock(ServletContext.class);
    EnvironmentKarma env = new EnvironmentKarma(new MamuteEnvironment(ctx));
    this.updater = new Updater(env);
    author = user("author", "author@gmail", nextId());
    myQuestion = question.withTitle("titel").withDescription("description").withAuthor(author).build();
}
Also used : EnvironmentKarma(org.mamute.brutauth.auth.rules.EnvironmentKarma) MamuteEnvironment(org.mamute.vraptor.environment.MamuteEnvironment) Updater(org.mamute.model.Updater) ServletContext(javax.servlet.ServletContext) Before(org.junit.Before)

Aggregations

ServletContext (javax.servlet.ServletContext)1 Before (org.junit.Before)1 EnvironmentKarma (org.mamute.brutauth.auth.rules.EnvironmentKarma)1 Updater (org.mamute.model.Updater)1 MamuteEnvironment (org.mamute.vraptor.environment.MamuteEnvironment)1