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:
Benedikt Ritter 2013-03-23 16:57:13 +00:00
parent 2e543f41f3
commit 3567ad0acc
1 changed files with 2 additions and 3 deletions

View File

@ -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