Package org.jsurveylib.model.question

Examples of org.jsurveylib.model.question.RadioButtonsQuestion


        assertFalse(check.getId().contains("TEMPLATE"));

    }

    private void checkAgreementTemplate(Survey survey, String id) {
        RadioButtonsQuestion radio = (RadioButtonsQuestion) survey.getQuestionByID(id);
        assertFalse(radio.getLabel().getText().contains("TEMPLATE"));
        assertFalse(radio.getId().contains("TEMPLATE"));
        for (int i = 1; i <= 7; i++) {
            Choice c = radio.getChoices().get(i - 1);
            assertEquals(String.valueOf(i), c.getId());
            assertEquals(String.valueOf(i), c.getLabel());
        }

    }
View Full Code Here

TOP

Related Classes of org.jsurveylib.model.question.RadioButtonsQuestion

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.