use of org.openforis.collect.io.metadata.samplingdesign.SamplingDesignFileColumn in project collect by openforis.
the class SamplingDesignImportProcessIntegrationTest method containsError.
protected boolean containsError(List<ParsingError> errors, long row, SamplingDesignFileColumn[] columns, ErrorType type) {
String[] colNames = new String[columns.length];
for (int i = 0; i < columns.length; i++) {
SamplingDesignFileColumn col = columns[i];
colNames[i] = col.getColumnName();
}
for (ParsingError error : errors) {
if (error.getErrorType() == type && error.getRow() == row && Arrays.equals(colNames, error.getColumns())) {
return true;
}
}
return false;
}
Aggregations