commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1306345 - in /commons/proper/csv/trunk/src/test: java/org/apache/commons/csv/CSVFileParserTest.java resources/CSVFileParser/README.txt
Date Wed, 28 Mar 2012 14:06:01 GMT
Author: sebb
Date: Wed Mar 28 14:06:01 2012
New Revision: 1306345

URL: http://svn.apache.org/viewvc?rev=1306345&view=rev
Log:
Handle CommentStart option

Modified:
    commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFileParserTest.java
    commons/proper/csv/trunk/src/test/resources/CSVFileParser/README.txt

Modified: commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFileParserTest.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFileParserTest.java?rev=1306345&r1=1306344&r2=1306345&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFileParserTest.java (original)
+++ commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFileParserTest.java Wed
Mar 28 14:06:01 2012
@@ -96,6 +96,8 @@ public class CSVFileParserTest {
                 fmt = fmt.withEmptyLinesIgnored(Boolean.parseBoolean(option_parts[1]));
             } else if ("IgnoreSpaces".equalsIgnoreCase(option_parts[0])) {
                 fmt = fmt.withSurroundingSpacesIgnored(Boolean.parseBoolean(option_parts[1]));
+            } else if ("CommentStart".equalsIgnoreCase(option_parts[0])) {
+                fmt = fmt.withCommentStart(option_parts[1].charAt(0));
             } else {
                 fail(testName+" unexpected option: "+option);
             }

Modified: commons/proper/csv/trunk/src/test/resources/CSVFileParser/README.txt
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/test/resources/CSVFileParser/README.txt?rev=1306345&r1=1306344&r2=1306345&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/test/resources/CSVFileParser/README.txt (original)
+++ commons/proper/csv/trunk/src/test/resources/CSVFileParser/README.txt Wed Mar 28 14:06:01
2012
@@ -11,6 +11,8 @@ The first line of this file consists of 
 - (optional) settings to be applied to the default parsing format, which is delim=',' encap='"'
 The settings have the form (see test source file for full details):
 IgnoreEmpty=true|false
+IgnoreSpaces=true|false
+CommentStart=char
 
 The second line is the expected output from invoking CSVFormat#toString() on the parsing
format
 



Mime
View raw message