use of org.mamute.model.Tag in project mamute by caelum.
the class SolrQuestionIndexTest method setup.
@Before
public void setup() throws IOException, SolrServerException, InterruptedException {
author = new User(fromTrustedText("Leonardo"), "leo@leo");
eli5 = new Tag("eli5", "Explain Like I'm 5", author);
eli12 = new Tag("eli12", "Explain Like I'm 12", author);
science = new Tag("science", "Science!", author);
hobby = new Tag("hobby", "Hobbies and stuff", author);
whyIsSkyBlue = createQuestion(1L, "Why is the sky blue?", "I wanna know why is sky blue", science, eli5);
whereDoBabiesComeFrom = createQuestion(2L, "Where do babies come from?", "My mom said I came from a bird", science, eli12);
howShipInBottle = createQuestion(3L, "How do they get the ship in the bottle?", "I wanna know this for my school work", hobby);
}
Aggregations