use of org.openforis.collect.io.metadata.parsing.ParsingError.ErrorType in project collect by openforis.
the class SpeciesImportProcessIntegrationTest method testInvalidColumns.
@Test
public void testInvalidColumns() throws Exception {
SpeciesImportProcess process = importCSVFile(INVALID_MISSING_COLUMNS_TEST_CSV);
SpeciesImportStatus status = process.getStatus();
assertTrue(status.isError());
List<ParsingError> errors = status.getErrors();
assertEquals(1, errors.size());
ParsingError error = errors.get(0);
ErrorType errorType = error.getErrorType();
assertEquals(ErrorType.MISSING_REQUIRED_COLUMNS, errorType);
}
Aggregations