Use Utils class for comparing list of CSVRecords against expectation array
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1460194 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2e543f41f3
commit
3567ad0acc
|
@ -318,9 +318,8 @@ public class CSVParserTest {
|
|||
final CSVParser parser = new CSVParser(code, format);
|
||||
final List<CSVRecord> records = parser.getRecords();
|
||||
assertTrue(records.size() > 0);
|
||||
for (int i = 0; i < res.length; i++) {
|
||||
assertArrayEquals(res[i], records.get(i).values());
|
||||
}
|
||||
|
||||
Utils.compare("Records do not match expected result", res, records);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue