use of org.openforis.collect.persistence.xml.UIOptionsBinder in project collect by openforis.
the class UIOptionsMigratorTest method setUp.
@Before
public void setUp() throws IdmlParseException {
SurveyIdmlBinder binder = new SurveyIdmlBinder(surveyContext);
binder.addApplicationOptionsBinder(new UIOptionsBinder());
InputStream is = ClassLoader.getSystemResourceAsStream("test.idm.xml");
survey = (CollectSurvey) binder.unmarshal(is);
uiOptions = survey.getUIOptions();
}
Aggregations