commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1480498 - /commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVFormatBuilderTest.java
Date Wed, 08 May 2013 23:43:14 GMT
Author: sebb
Date: Wed May  8 23:43:14 2013
New Revision: 1480498

URL: http://svn.apache.org/r1480498
Log:
Test default Quote policy

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=1480498&r1=1480497&r2=1480498&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 May  8 23:43:14 2013
@@ -24,6 +24,7 @@ import static org.apache.commons.csv.Con
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotSame;
+import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
 
 import org.apache.commons.csv.CSVFormat.CSVFormatBuilder;
@@ -153,6 +154,11 @@ public class CSVFormatBuilderTest {
         assertEquals(Quote.ALL, builder.withQuotePolicy(Quote.ALL).build().getQuotePolicy());
     }
 
+    @Test
+    public void testDefaultQuotePolicy() {
+        assertNull(builder.build().getQuotePolicy());
+    }
+
     @Test(expected = IllegalStateException.class)
     public void testQuotePolicyNoneWithoutEscapeThrowsException() {
         CSVFormat.newBuilder('!').withQuotePolicy(Quote.NONE).build();



Mime
View raw message