Author: ggregory Date: Wed Mar 20 05:23:46 2013 New Revision: 1458637 URL: http://svn.apache.org/r1458637 Log: Add testRFC4180().
Modified: commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFormatBuilderTest.java Modified: commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFormatBuilderTest.java URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFormatBuilderTest.java?rev=1458637&r1=1458636&r2=1458637&view=diff ============================================================================== --- commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFormatBuilderTest.java (original) +++ commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFormatBuilderTest.java Wed Mar 20 05:23:46 2013 @@ -163,6 +163,17 @@ public class CSVFormatBuilderTest { } @Test + public void testRFC4180() { + assertEquals(null, RFC4180.getCommentStart()); + assertEquals(',', RFC4180.getDelimiter()); + assertEquals(null, RFC4180.getEscape()); + assertEquals(false, RFC4180.getIgnoreEmptyLines()); + assertEquals(Character.valueOf('"'), RFC4180.getQuoteChar()); + assertEquals(null, RFC4180.getQuotePolicy()); + assertEquals("\r\n", RFC4180.getRecordSeparator()); + } + + @Test public void testCopiedFormatWithChanges() { final CSVFormat newFormat = CSVFormat.newBuilder(RFC4180).withDelimiter('!').build(); assertTrue(newFormat.getDelimiter() != RFC4180.getDelimiter());