From f00b91b58937104bf1b17799f9660d26ffdff65f Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 28 Jan 2023 12:19:41 -0500 Subject: [PATCH] Add assert as sanity check --- src/test/java/org/apache/commons/csv/issues/JiraCsv149Test.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/org/apache/commons/csv/issues/JiraCsv149Test.java b/src/test/java/org/apache/commons/csv/issues/JiraCsv149Test.java index a42cb2a35..70f8c5ead 100644 --- a/src/test/java/org/apache/commons/csv/issues/JiraCsv149Test.java +++ b/src/test/java/org/apache/commons/csv/issues/JiraCsv149Test.java @@ -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 @@ private void testJiraCsv149EndWithEolAtEof(final boolean eolAtEof) throws IOExce int lineCounter = 2; try (final CSVParser parser = new CSVParser(records, format)) { for (final CSVRecord record : parser) { + assertNotNull(record); assertEquals(lineCounter++, parser.getCurrentLineNumber()); } }