Package org.jsurveylib

Examples of org.jsurveylib.Survey.reset()


    @Test
    public void goToPageReset() throws Exception {
        Survey survey = new Survey(new XMLSurveyReader(new File("src\\test\\org\\jsurveylib\\model\\script\\gotopagefiles\\gotopage.xml")));
        goToPageTest(survey);
        survey.reset();
        goToPageTest(survey);
    }

    private void goToPageTest(Survey survey) {
        Question q = survey.getQuestionByID("pageJump");
View Full Code Here


    @Test
    public void saveXMLReset() throws Exception {
        Survey survey = new Survey("src\\test\\org\\jsurveylib\\io\\xmlresultwriterfiles\\savexmlinput.xml");
        saveXMLTest(survey);
        survey.reset();
        saveXMLTest(survey);
    }

    private void saveXMLTest(Survey survey) throws SAXException, IOException {
        survey.setAnswer("X", "yes");
View Full Code Here

    }

    @Test
    public void answerOfReset() throws Exception {
        Survey model = new Survey(new XMLSurveyReader(new File("src\\test\\org\\jsurveylib\\model\\script\\answeroffiles\\answerof.xml")));
        model.reset();
        answerOfTest(model);
    }

    private void answerOfTest(Survey model) {
        model.addInsertQuestionListener(this);
View Full Code Here

    @Test
    public void visibleReset() throws Exception {
        Survey model = new Survey(new XMLSurveyReader(new File("src\\test\\org\\jsurveylib\\model\\script\\populatetemplatefiles\\visible.xml")));
        visibleTest(model);
        model.reset();
        visibleTest(model);
    }

    private void visibleTest(Survey model) {
        model.addInsertQuestionListener(this);
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.