Examples of SurveySection


Examples of org.encuestame.persistence.domain.survey.SurveySection

    @SuppressWarnings("unchecked")
   // @Test
    public void testRetrieveSectionByPagination(){
         this.surveyPag = createSurveyPagination(1, surveySection,this.survey);
         final SurveySection s2 = createSurveySection("Second Section");
         createSurveyPagination(1, s2, this.survey);
         //log.debug(surveyPag.getPageNumber());
         //log.debug(surveyPag.getSurveySection().getSsid());
         //log.debug(surveyPag.getSurveySection().getDescSection());
         //log.debug(surveyPag.getSurvey().getName());
View Full Code Here

Examples of org.encuestame.persistence.domain.survey.SurveySection

        // 1- Create Survey Container
        final Survey mySurvey = createDefaultSurvey(this.user, "My Survey test", new Date());
        Assert.assertNotNull(mySurvey);

        // 2- Add survey sections
        final SurveySection section = createDefaultSection("Overview", mySurvey);
        Assert.assertNotNull(mySurvey);

        // 4- Add question to survey sections.
        /** Fist question**/
        final Question question = addQuestionSection("First Question", section, this.user);
View Full Code Here

Examples of org.encuestame.persistence.domain.survey.SurveySection

  @Ignore
  @Test
  @Deprecated
  public void testQuestionSection(){
    final QuestionSection qSection = new QuestionSection();
    final SurveySection section = createSurveySection("Personal Information");
    qSection.setQuestion(this.initQuestion);
    //qSection.setQuestionSectionId(1L);
    qSection.setSurveySection(section);
    getSurveyDaoImp().saveOrUpdate(qSection);
    assertNotNull(qSection.getQuestion());
View Full Code Here

Examples of org.encuestame.persistence.domain.survey.SurveySection

     * Test Get questions by survey section.
     */
    @Test
    public void testGetQuestionsbySection(){
        // Sections
        final SurveySection section1 = createSurveySection("First Section");
        final SurveySection section2 = createSurveySection("Second Section");
        Assert.assertNotNull(section1);
        Assert.assertNotNull(section2);

        // Questions in first section.
        addQuestionSection("Question 11", section1, this.user);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.