Package org.encuestame.persistence.domain.survey

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


     * */
    public SurveyFormat createSurveyFormat(
            final String formatName,
            final Date createdDate
            ){
        final SurveyFormat sformat = new SurveyFormat();
        sformat.setDateCreated(createdDate);
        sformat.setSurveyFormatName(formatName);
        sformat.getSurveyGroups().add(createSurveyGroup("editors"));
        getSurveyformatDaoImp().saveOrUpdate(sformat);
        return sformat;
    }
View Full Code Here


    /**
    * Test Survey Format Domain.
    **/
    @Test
     public void testSurveyFormat(){
         final SurveyFormat surveyformat = new SurveyFormat();
         surveyformat.setDateCreated(new Date());
         surveyformat.setSurveyFormatName("Education");
         surveyformat.getSurveyGroups().add(createSurveyGroup("Education National"));
         getSurveyFormatDaoImp().saveOrUpdate(surveyformat);
         assertNotNull(surveyformat.getIdSidFormat());

     }
View Full Code Here

      * Test Question Dependence Survey
      */
     //@Test
     public void testQuestionDependenceSurvey(){
         final QuestionDependenceSurvey questionDepSurvey = new QuestionDependenceSurvey();
         final SurveyFormat mySurveyFormat =  createSurveyFormat("Schools",new Date());
         final Survey mySurvey = createSurvey("", new Date(), new Date(), createAccount(), new Date(),mySurveyFormat,"FirstSurvey", new Date());
         questionDepSurvey.setSurvey(mySurvey);
         getQuestionDaoImp().saveOrUpdate(questionDepSurvey);
         assertNotNull(questionDepSurvey.getQuestionDependenceId());
     }
View Full Code Here

    /**
     * Test Survey Format.
     */
    @Test
    public void testSurveyFormat() {
        SurveyFormat surveyformat = new SurveyFormat();
        surveyformat.setDateCreated(null);
        surveyformat.setSurveyFormatName("Education");
        getSurveyFormatDaoImp().saveOrUpdate(surveyformat);
    }
View Full Code Here

TOP

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

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.