assertEquals("", model.getPages().get(0).getQuestions().get(9).getAnswer());
}
@Test
public void loadXMLAnswersBefore() throws Exception {
Survey model = new Survey(new XMLSurveyReader(new File("src\\test\\org\\jsurveylib\\model\\script\\populatetemplatefiles\\loadxmlanswersbefore.xml")));
model.loadXMLAnswers("src\\test\\org\\jsurveylib\\model\\script\\populatetemplatefiles\\loadxmlanswersbeforeresult.xml");
//every time you answer a question, the populateTemplate adds a new one AFTER what already exists
assertEquals(10, model.getPages().get(0).getQuestions().size());
assertEquals("first", model.getPages().get(0).getQuestions().get(9).getAnswer());
assertEquals("first", model.getPages().get(0).getQuestions().get(8).getAnswer());