use of org.openforis.collect.model.CollectTestSurveyContext in project collect by openforis.
the class DistanceCheckTest method setup.
@Before
public void setup() {
CollectTestSurveyContext surveyContext = (CollectTestSurveyContext) record.getSurveyContext();
surveyContext.lookupProvider.coordinate = TEST_COORDINATE;
surveyContext.lookupProvider.samplingPointData = TEST_SAMPLING_POINT_DATA;
}
use of org.openforis.collect.model.CollectTestSurveyContext in project collect by openforis.
the class AbstractTest method setUp.
@BeforeClass
public static void setUp() throws IOException, XmlParseException, IdmlParseException {
URL idm = AbstractTest.class.getResource("/test.idm.xml");
InputStream is = idm.openStream();
SurveyIdmlBinder binder = new SurveyIdmlBinder(new CollectTestSurveyContext());
survey = (CollectSurvey) binder.unmarshal(is);
}
use of org.openforis.collect.model.CollectTestSurveyContext in project collect by openforis.
the class CollectLookupFunctionTest method setup.
@Before
public void setup() {
CollectTestSurveyContext surveyContext = (CollectTestSurveyContext) record.getSurveyContext();
surveyContext.lookupProvider.coordinate = TEST_COORDINATE;
expressionEvaluator = surveyContext.getExpressionEvaluator();
}
Aggregations