use of org.javarosa.core.test.FormParseInit in project javarosa by opendatakit.
the class FormDefTest method setUp.
public void setUp() {
fpi = new FormParseInit();
q = fpi.getFirstQuestionDef();
fep = new FormEntryPrompt(fpi.getFormDef(), fpi.getFormEntryModel().getFormIndex());
}
use of org.javarosa.core.test.FormParseInit in project javarosa by opendatakit.
the class TextFormTests method setUp.
public void setUp() {
fpi = new FormParseInit();
q = fpi.getFirstQuestionDef();
fep = new FormEntryPrompt(fpi.getFormDef(), fpi.getFormEntryModel().getFormIndex());
}
use of org.javarosa.core.test.FormParseInit in project javarosa by opendatakit.
the class FormIndexSerializationTest method testOnFormController.
@Test
public void testOnFormController() throws IOException, ClassNotFoundException {
FormParseInit formParseInit = new FormParseInit();
formParseInit.setFormToParse(Paths.get(PathConst.getTestResourcePath().getAbsolutePath(), "formindex-serialization.xml").toString());
FormEntryController formEntryController = formParseInit.getFormEntryController();
FormIndex formIndex = formEntryController.getModel().getFormIndex();
assertFormIndex(formIndex, deserializeFormIndex(serializeObject(formIndex)));
do {
formIndex = formEntryController.getModel().incrementIndex(formIndex);
assertFormIndex(formIndex, deserializeFormIndex(serializeObject(formIndex)));
} while (!formIndex.isEndOfFormIndex());
}
Aggregations