Skip to content

Commit bb3bb0d

Browse files
committed
Test default Quote policy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1480498 13f79535-47bb-0310-9956-ffa450edef68
1 parent 71c69df commit bb3bb0d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/test/java/org/apache/commons/csv/CSVFormatBuilderTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import static org.junit.Assert.assertEquals;
2525
import static org.junit.Assert.assertFalse;
2626
import static org.junit.Assert.assertNotSame;
27+
import static org.junit.Assert.assertNull;
2728
import static org.junit.Assert.assertTrue;
2829

2930
import org.apache.commons.csv.CSVFormat.CSVFormatBuilder;
@@ -153,6 +154,11 @@ public void testQuotePolicy() {
153154
assertEquals(Quote.ALL, builder.withQuotePolicy(Quote.ALL).build().getQuotePolicy());
154155
}
155156

157+
@Test
158+
public void testDefaultQuotePolicy() {
159+
assertNull(builder.build().getQuotePolicy());
160+
}
161+
156162
@Test(expected = IllegalStateException.class)
157163
public void testQuotePolicyNoneWithoutEscapeThrowsException() {
158164
CSVFormat.newBuilder('!').withQuotePolicy(Quote.NONE).build();

0 commit comments

Comments
 (0)