Package org.encuestame.persistence.domain.survey

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


  @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

     * 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

Related Classes of org.encuestame.persistence.domain.survey.SurveySection

Copyright © 2018 www.massapicom. 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.