Search in sources :

Example 1 with UIOptionsBinder

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();
}
Also used : UIOptionsBinder(org.openforis.collect.persistence.xml.UIOptionsBinder) InputStream(java.io.InputStream) SurveyIdmlBinder(org.openforis.idm.metamodel.xml.SurveyIdmlBinder) Before(org.junit.Before)

Aggregations

InputStream (java.io.InputStream)1 Before (org.junit.Before)1 UIOptionsBinder (org.openforis.collect.persistence.xml.UIOptionsBinder)1 SurveyIdmlBinder (org.openforis.idm.metamodel.xml.SurveyIdmlBinder)1