use of org.openforis.collect.io.parsing.CSVFileOptions in project collect by openforis.
the class SpeciesImportProcessIntegrationTest method importCSVFile.
public SpeciesImportProcess importCSVFile(String fileName) throws Exception {
File file = getTestFile(fileName);
CollectTaxonomy taxonomy = new CollectTaxonomy();
taxonomy.setSurvey(survey);
taxonomy.setName(TEST_TAXONOMY_NAME);
speciesManager.save(taxonomy);
SpeciesImportProcess process = new SpeciesImportProcess(surveyManager, speciesManager, survey, taxonomy.getId(), file, new CSVFileOptions(), true);
process.call();
return process;
}
Aggregations