Examples of SurveyFormat


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

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

    /**
    * 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

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

      * 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

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

    /**
     * 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
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.