Package org.jsurveylib

Examples of org.jsurveylib.Survey.goToPage()


    }

    @Test(expected = IllegalArgumentException.class)
    public void visitSkippedPage() throws Exception {
        Survey survey = new Survey(new XMLSurveyReader(new File("src\\test\\org\\jsurveylib\\model\\pagefiles\\visitskippedpage.xml")));
        survey.goToPage(1); //goto a skipped page
    }

    @Test
    public void firstPagesSkipped() throws Exception {
        Survey survey = new Survey(new XMLSurveyReader(new File("src\\test\\org\\jsurveylib\\model\\pagefiles\\firstpageskipped.xml")));
View Full Code Here


        return translatePage(survey);
    }

    public String[][] changePage(String surveyProvider, int toPage) {
        Survey survey = getSurvey(surveyProvider);
        survey.goToPage(toPage);
        return translatePage(survey);
    }

    private boolean isAnswerToSet(String id, String answer) {
        return id != null && answer != null;
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.