File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/csv Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -185,7 +185,9 @@ public void testBOM() throws IOException {
185185 final CSVParser parser = CSVParser .parse (url , null , CSVFormat .EXCEL .withHeader ());
186186 try {
187187 for (CSVRecord record : parser ) {
188- System .out .println ("date: " + record .get ("Date" ));
188+ final String string = record .get ("Date" );
189+ Assert .assertNotNull (string );
190+ //System.out.println("date: " + record.get("Date"));
189191 }
190192 } finally {
191193 parser .close ();
@@ -199,7 +201,9 @@ public void testBOMInputStream() throws IOException {
199201 final CSVParser parser = new CSVParser (reader , CSVFormat .EXCEL .withHeader ());
200202 try {
201203 for (CSVRecord record : parser ) {
202- System .out .println ("date: " + record .get ("Date" ));
204+ final String string = record .get ("Date" );
205+ Assert .assertNotNull (string );
206+ //System.out.println("date: " + record.get("Date"));
203207 }
204208 } finally {
205209 parser .close ();
You can’t perform that action at this time.
0 commit comments