assertFalse(invisible.isAnswerable()); //it's invisible so this method returns false
}
@Test
public void defaultSet() throws Exception {
Survey m = new Survey(new XMLSurveyReader(new File("src\\test\\org\\jsurveylib\\model\\question\\typeinvisiblefiles\\defaultset.xml")));
m.getQuestionByID("invisible").addAnswerListener(this);
FreeTextQuestion invisible = (FreeTextQuestion) m.getQuestionByID("invisible");
assertTrue(invisible.isAnswered()); //it's invisible so this method returns true
assertEquals("hah", invisible.getAnswer());
assertFalse(stateChanged);