You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2014/03/17 15:32:38 UTC

svn commit: r1578397 - /commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java

Author: ggregory
Date: Mon Mar 17 14:32:38 2014
New Revision: 1578397

URL: http://svn.apache.org/r1578397
Log:
Clean up tests for [CSV-107] CSVFormat.EXCEL.parse should handle byte order marks.

Modified:
    commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java

Modified: commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java?rev=1578397&r1=1578396&r2=1578397&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java (original)
+++ commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java Mon Mar 17 14:32:38 2014
@@ -185,7 +185,9 @@ public class CSVParserTest {
         final CSVParser parser = CSVParser.parse(url, null, CSVFormat.EXCEL.withHeader());
         try {
             for (CSVRecord record : parser) {
-                System.out.println("date: " + record.get("Date"));
+                final String string = record.get("Date");
+                Assert.assertNotNull(string);
+                //System.out.println("date: " + record.get("Date"));
             }
         } finally {
             parser.close();
@@ -199,7 +201,9 @@ public class CSVParserTest {
         final CSVParser parser = new CSVParser(reader, CSVFormat.EXCEL.withHeader());
         try {
             for (CSVRecord record : parser) {
-                System.out.println("date: " + record.get("Date"));
+                final String string = record.get("Date");
+                Assert.assertNotNull(string);
+                //System.out.println("date: " + record.get("Date"));
             }
         } finally {
             parser.close();