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");
}