Search in sources :

Example 11 with QuestionBuilder

use of org.mamute.builder.QuestionBuilder in project mamute by caelum.

the class QuestionInformationTest method setup.

@Before
public void setup() {
    builder = new QuestionInformationBuilder();
    ruby = new QuestionBuilder().withTitle("how do i program using ruby?").build();
}
Also used : QuestionInformationBuilder(org.mamute.model.QuestionInformationBuilder) QuestionBuilder(org.mamute.builder.QuestionBuilder) Before(org.junit.Before)

Aggregations

QuestionBuilder (org.mamute.builder.QuestionBuilder)11 Question (org.mamute.model.Question)7 Test (org.junit.Test)5 Before (org.junit.Before)3 DefaultEnvironment (br.com.caelum.vraptor.environment.DefaultEnvironment)2 EnvironmentType (br.com.caelum.vraptor.environment.EnvironmentType)2 ByteArrayOutputStream (java.io.ByteArrayOutputStream)2 QuestionRssEntryFactory (org.mamute.infra.rss.write.QuestionRssEntryFactory)2 User (org.mamute.model.User)2 URL (java.net.URL)1 AuthorRule (org.mamute.auth.rules.AuthorRule)1 NewsBuilder (org.mamute.builder.NewsBuilder)1 RssFeedFactory (org.mamute.infra.rss.write.RssFeedFactory)1 News (org.mamute.model.News)1 QuestionInformationBuilder (org.mamute.model.QuestionInformationBuilder)1 Moderatable (org.mamute.model.interfaces.Moderatable)1