Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit c8630e1

Browse files
committed
Clean up tests for [CSV-107] CSVFormat.EXCEL.parse should handle byte order marks.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1578397 13f79535-47bb-0310-9956-ffa450edef68
1 parent 932b294 commit c8630e1

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/test/java/org/apache/commons/csv/CSVParserTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)