commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1578397 - /commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java
Date Mon, 17 Mar 2014 14:32:38 GMT
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();



Mime
View raw message