示例#1
0
 /**
  * Before.
  *
  * @throws ParseException
  */
 @Before
 public void beforeQuestion() throws ParseException {
   this.user = createUser("testEncuesta", "testEncuesta123");
   createFakesQuestions(this.user);
   // masive insert.
   for (int i = 0; i < 200; i++) {
     createQuestion("Word Cup 2010, Spain is a good champion?", this.user);
   }
   final Date createDate = DateUtil.parseDate("2011-01-01", DateUtil.DEFAULT_FORMAT_DATE);
   createQuestion("Question with date and hits", this.user, createDate, 200L);
   this.initQuestion =
       createDefaultQuestion(
           "What is the country with the highest number of medals at the 2012 Olympic game");
 }