File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/csv Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424import static org .junit .Assert .assertEquals ;
2525import static org .junit .Assert .assertFalse ;
2626import static org .junit .Assert .assertNotSame ;
27+ import static org .junit .Assert .assertNull ;
2728import static org .junit .Assert .assertTrue ;
2829
2930import 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 ();
You can’t perform that action at this time.
0 commit comments