Add assert as sanity check

This commit is contained in:
Gary Gregory 2023-01-28 12:19:41 -05:00
parent 347c8723c0
commit f00b91b589
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@
package org.apache.commons.csv.issues;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import java.io.IOException;
import java.io.StringReader;
@ -51,6 +52,7 @@ public class JiraCsv149Test {
int lineCounter = 2;
try (final CSVParser parser = new CSVParser(records, format)) {
for (final CSVRecord record : parser) {
assertNotNull(record);
assertEquals(lineCounter++, parser.getCurrentLineNumber());
}
}