Examples of DropdownQuestion


Examples of org.jsurveylib.model.question.DropdownQuestion

public class PopulateDropdownTest {

    @Test
    public void populateDropdown() throws Exception {
        Survey model = new Survey(new XMLSurveyReader(new File("src\\test\\org\\jsurveylib\\model\\script\\populatedropdownfiles\\populatedropdown.xml")));
        DropdownQuestion dd = (DropdownQuestion) model.getQuestionByID("dd");
        assertEquals(4, dd.getChoices().size());
        checkChoice(dd, 0, "", "");
        checkChoice(dd, 1, "A", "a");
        checkChoice(dd, 2, "B", "b");
        checkChoice(dd, 3, "C", "c");
    }
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.