Add assert as sanity check
This commit is contained in:
parent
347c8723c0
commit
f00b91b589
|
@ -17,6 +17,7 @@
|
||||||
package org.apache.commons.csv.issues;
|
package org.apache.commons.csv.issues;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.StringReader;
|
import java.io.StringReader;
|
||||||
|
@ -51,6 +52,7 @@ public class JiraCsv149Test {
|
||||||
int lineCounter = 2;
|
int lineCounter = 2;
|
||||||
try (final CSVParser parser = new CSVParser(records, format)) {
|
try (final CSVParser parser = new CSVParser(records, format)) {
|
||||||
for (final CSVRecord record : parser) {
|
for (final CSVRecord record : parser) {
|
||||||
|
assertNotNull(record);
|
||||||
assertEquals(lineCounter++, parser.getCurrentLineNumber());
|
assertEquals(lineCounter++, parser.getCurrentLineNumber());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue