commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ki...@apache.org
Subject svn commit: r1017635 [26/40] - in /websites/production/commons/content/proper/commons-csv: ./ apidocs/ apidocs/org/apache/commons/csv/ apidocs/org/apache/commons/csv/class-use/ apidocs/src-html/org/apache/commons/csv/ images/ jacoco-aggregate/ jacoco-a...
Date Sun, 03 Sep 2017 05:34:10 GMT
Modified: websites/production/commons/content/proper/commons-csv/xref-test/org/apache/commons/csv/CSVFormatTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-csv/xref-test/org/apache/commons/csv/CSVFormatTest.html (original)
+++ websites/production/commons/content/proper/commons-csv/xref-test/org/apache/commons/csv/CSVFormatTest.html Sun Sep  3 05:34:03 2017
@@ -25,30 +25,30 @@
 <a class="jxr_linenumber" name="L17" href="#L17">17</a>  
 <a class="jxr_linenumber" name="L18" href="#L18">18</a>  <strong class="jxr_keyword">package</strong> org.apache.commons.csv;
 <a class="jxr_linenumber" name="L19" href="#L19">19</a>  
-<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.apache.commons.csv.CSVFormat.RFC4180;
-<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.apache.commons.csv.Constants.CR;
-<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.apache.commons.csv.Constants.CRLF;
-<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.apache.commons.csv.Constants.LF;
-<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertArrayEquals;
-<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertEquals;
-<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertFalse;
-<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertNotNull;
-<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertNotSame;
-<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertTrue;
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>  
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>  <strong class="jxr_keyword">import</strong> java.io.ByteArrayInputStream;
-<a class="jxr_linenumber" name="L32" href="#L32">32</a>  <strong class="jxr_keyword">import</strong> java.io.ByteArrayOutputStream;
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>  <strong class="jxr_keyword">import</strong> java.io.ObjectInputStream;
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>  <strong class="jxr_keyword">import</strong> java.io.ObjectOutputStream;
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>  <strong class="jxr_keyword">import</strong> java.util.Arrays;
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>  
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>  <strong class="jxr_keyword">import</strong> org.junit.Assert;
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>  
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>  <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>  <em class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>  <em class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>  <em class="jxr_javadoccomment"> * @version $Id$</em>
+<a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> junit.framework.TestCase.assertNull;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.apache.commons.csv.CSVFormat.RFC4180;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.apache.commons.csv.Constants.CR;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.apache.commons.csv.Constants.CRLF;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.apache.commons.csv.Constants.LF;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertArrayEquals;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertEquals;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertFalse;
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertNotNull;
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertNotSame;
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.assertTrue;
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  <strong class="jxr_keyword">import</strong> <strong class="jxr_keyword">static</strong> org.junit.Assert.fail;
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>  <strong class="jxr_keyword">import</strong> java.io.ByteArrayInputStream;
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>  <strong class="jxr_keyword">import</strong> java.io.ByteArrayOutputStream;
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>  <strong class="jxr_keyword">import</strong> java.io.ObjectInputStream;
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  <strong class="jxr_keyword">import</strong> java.io.ObjectOutputStream;
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>  <strong class="jxr_keyword">import</strong> java.util.Arrays;
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>  
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>  <strong class="jxr_keyword">import</strong> org.junit.Assert;
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>  <strong class="jxr_keyword">import</strong> org.junit.Test;
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>  
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>  <em class="jxr_javadoccomment"> *</em>
 <a class="jxr_linenumber" name="L44" href="#L44">44</a>  <em class="jxr_javadoccomment"> */</em>
 <a class="jxr_linenumber" name="L45" href="#L45">45</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/csv/CSVFormatTest.html">CSVFormatTest</a> {
 <a class="jxr_linenumber" name="L46" href="#L46">46</a>  
@@ -183,7 +183,7 @@
 <a class="jxr_linenumber" name="L175" href="#L175">175</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testEqualsLeftNoQuoteRightQuote() {
 <a class="jxr_linenumber" name="L176" href="#L176">176</a>     	<strong class="jxr_keyword">final</strong> CSVFormat left = CSVFormat.newFormat(',').withQuote(<strong class="jxr_keyword">null</strong>);
 <a class="jxr_linenumber" name="L177" href="#L177">177</a>     	<strong class="jxr_keyword">final</strong> CSVFormat right = left.withQuote('#');
-<a class="jxr_linenumber" name="L178" href="#L178">178</a>     	
+<a class="jxr_linenumber" name="L178" href="#L178">178</a> 
 <a class="jxr_linenumber" name="L179" href="#L179">179</a>     	assertNotEquals(left, right);
 <a class="jxr_linenumber" name="L180" href="#L180">180</a>     }
 <a class="jxr_linenumber" name="L181" href="#L181">181</a> 
@@ -467,15 +467,640 @@
 <a class="jxr_linenumber" name="L459" href="#L459">459</a>         assertTrue(formatWithFirstRecordAsHeader.getHeader().length == 0);
 <a class="jxr_linenumber" name="L460" href="#L460">460</a>     }
 <a class="jxr_linenumber" name="L461" href="#L461">461</a> 
-<a class="jxr_linenumber" name="L462" href="#L462">462</a>     <strong class="jxr_keyword">public</strong> enum <a href="../../../../org/apache/commons/csv/CSVFormatTest.html">Header</a> {
-<a class="jxr_linenumber" name="L463" href="#L463">463</a>         Name, Email, Phone
-<a class="jxr_linenumber" name="L464" href="#L464">464</a>     }
-<a class="jxr_linenumber" name="L465" href="#L465">465</a> 
-<a class="jxr_linenumber" name="L466" href="#L466">466</a>     <strong class="jxr_keyword">public</strong> enum <a href="../../../../org/apache/commons/csv/CSVFormatTest.html">EmptyEnum</a> {
-<a class="jxr_linenumber" name="L467" href="#L467">467</a>     }
-<a class="jxr_linenumber" name="L468" href="#L468">468</a> }
+<a class="jxr_linenumber" name="L462" href="#L462">462</a>     @Test
+<a class="jxr_linenumber" name="L463" href="#L463">463</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testToStringAndWithCommentMarkerTakingCharacter() {
+<a class="jxr_linenumber" name="L464" href="#L464">464</a> 
+<a class="jxr_linenumber" name="L465" href="#L465">465</a>         CSVFormat.Predefined cSVFormat_Predefined = CSVFormat.Predefined.Default;
+<a class="jxr_linenumber" name="L466" href="#L466">466</a>         CSVFormat cSVFormat = cSVFormat_Predefined.getFormat();
+<a class="jxr_linenumber" name="L467" href="#L467">467</a> 
+<a class="jxr_linenumber" name="L468" href="#L468">468</a>         assertNull(cSVFormat.getEscapeCharacter());
+<a class="jxr_linenumber" name="L469" href="#L469">469</a>         assertTrue(cSVFormat.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L470" href="#L470">470</a> 
+<a class="jxr_linenumber" name="L471" href="#L471">471</a>         assertFalse(cSVFormat.getTrim());
+<a class="jxr_linenumber" name="L472" href="#L472">472</a>         assertFalse(cSVFormat.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L473" href="#L473">473</a> 
+<a class="jxr_linenumber" name="L474" href="#L474">474</a>         assertFalse(cSVFormat.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L475" href="#L475">475</a>         assertEquals(',', cSVFormat.getDelimiter());
+<a class="jxr_linenumber" name="L476" href="#L476">476</a> 
+<a class="jxr_linenumber" name="L477" href="#L477">477</a>         assertFalse(cSVFormat.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L478" href="#L478">478</a>         assertEquals(<span class="jxr_string">"\r\n"</span>, cSVFormat.getRecordSeparator());
+<a class="jxr_linenumber" name="L479" href="#L479">479</a> 
+<a class="jxr_linenumber" name="L480" href="#L480">480</a>         assertFalse(cSVFormat.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L481" href="#L481">481</a>         assertNull(cSVFormat.getCommentMarker());
+<a class="jxr_linenumber" name="L482" href="#L482">482</a> 
+<a class="jxr_linenumber" name="L483" href="#L483">483</a>         assertFalse(cSVFormat.isNullStringSet());
+<a class="jxr_linenumber" name="L484" href="#L484">484</a>         assertFalse(cSVFormat.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L485" href="#L485">485</a> 
+<a class="jxr_linenumber" name="L486" href="#L486">486</a>         assertFalse(cSVFormat.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L487" href="#L487">487</a>         assertFalse(cSVFormat.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L488" href="#L488">488</a> 
+<a class="jxr_linenumber" name="L489" href="#L489">489</a>         assertNull(cSVFormat.getNullString());
+<a class="jxr_linenumber" name="L490" href="#L490">490</a>         assertNull(cSVFormat.getQuoteMode());
+<a class="jxr_linenumber" name="L491" href="#L491">491</a> 
+<a class="jxr_linenumber" name="L492" href="#L492">492</a>         assertTrue(cSVFormat.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L493" href="#L493">493</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormat.getQuoteCharacter());
+<a class="jxr_linenumber" name="L494" href="#L494">494</a> 
+<a class="jxr_linenumber" name="L495" href="#L495">495</a>         Character character = Character.valueOf('n');
+<a class="jxr_linenumber" name="L496" href="#L496">496</a> 
+<a class="jxr_linenumber" name="L497" href="#L497">497</a>         CSVFormat cSVFormatTwo = cSVFormat.withCommentMarker(character);
+<a class="jxr_linenumber" name="L498" href="#L498">498</a> 
+<a class="jxr_linenumber" name="L499" href="#L499">499</a>         assertNull(cSVFormat.getEscapeCharacter());
+<a class="jxr_linenumber" name="L500" href="#L500">500</a>         assertTrue(cSVFormat.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L501" href="#L501">501</a> 
+<a class="jxr_linenumber" name="L502" href="#L502">502</a>         assertFalse(cSVFormat.getTrim());
+<a class="jxr_linenumber" name="L503" href="#L503">503</a>         assertFalse(cSVFormat.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L504" href="#L504">504</a> 
+<a class="jxr_linenumber" name="L505" href="#L505">505</a>         assertFalse(cSVFormat.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L506" href="#L506">506</a>         assertEquals(',', cSVFormat.getDelimiter());
+<a class="jxr_linenumber" name="L507" href="#L507">507</a> 
+<a class="jxr_linenumber" name="L508" href="#L508">508</a>         assertFalse(cSVFormat.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L509" href="#L509">509</a>         assertEquals(<span class="jxr_string">"\r\n"</span>, cSVFormat.getRecordSeparator());
+<a class="jxr_linenumber" name="L510" href="#L510">510</a> 
+<a class="jxr_linenumber" name="L511" href="#L511">511</a>         assertFalse(cSVFormat.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L512" href="#L512">512</a>         assertNull(cSVFormat.getCommentMarker());
+<a class="jxr_linenumber" name="L513" href="#L513">513</a> 
+<a class="jxr_linenumber" name="L514" href="#L514">514</a>         assertFalse(cSVFormat.isNullStringSet());
+<a class="jxr_linenumber" name="L515" href="#L515">515</a>         assertFalse(cSVFormat.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L516" href="#L516">516</a> 
+<a class="jxr_linenumber" name="L517" href="#L517">517</a>         assertFalse(cSVFormat.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L518" href="#L518">518</a>         assertFalse(cSVFormat.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L519" href="#L519">519</a> 
+<a class="jxr_linenumber" name="L520" href="#L520">520</a>         assertNull(cSVFormat.getNullString());
+<a class="jxr_linenumber" name="L521" href="#L521">521</a>         assertNull(cSVFormat.getQuoteMode());
+<a class="jxr_linenumber" name="L522" href="#L522">522</a> 
+<a class="jxr_linenumber" name="L523" href="#L523">523</a>         assertTrue(cSVFormat.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L524" href="#L524">524</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormat.getQuoteCharacter());
+<a class="jxr_linenumber" name="L525" href="#L525">525</a> 
+<a class="jxr_linenumber" name="L526" href="#L526">526</a>         assertFalse(cSVFormatTwo.isNullStringSet());
+<a class="jxr_linenumber" name="L527" href="#L527">527</a>         assertFalse(cSVFormatTwo.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L528" href="#L528">528</a> 
+<a class="jxr_linenumber" name="L529" href="#L529">529</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormatTwo.getQuoteCharacter());
+<a class="jxr_linenumber" name="L530" href="#L530">530</a>         assertNull(cSVFormatTwo.getNullString());
+<a class="jxr_linenumber" name="L531" href="#L531">531</a> 
+<a class="jxr_linenumber" name="L532" href="#L532">532</a>         assertEquals(',', cSVFormatTwo.getDelimiter());
+<a class="jxr_linenumber" name="L533" href="#L533">533</a>         assertFalse(cSVFormatTwo.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L534" href="#L534">534</a> 
+<a class="jxr_linenumber" name="L535" href="#L535">535</a>         assertTrue(cSVFormatTwo.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L536" href="#L536">536</a>         assertFalse(cSVFormatTwo.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L537" href="#L537">537</a> 
+<a class="jxr_linenumber" name="L538" href="#L538">538</a>         assertFalse(cSVFormatTwo.getTrim());
+<a class="jxr_linenumber" name="L539" href="#L539">539</a>         assertNull(cSVFormatTwo.getEscapeCharacter());
+<a class="jxr_linenumber" name="L540" href="#L540">540</a> 
+<a class="jxr_linenumber" name="L541" href="#L541">541</a>         assertTrue(cSVFormatTwo.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L542" href="#L542">542</a>         assertFalse(cSVFormatTwo.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L543" href="#L543">543</a> 
+<a class="jxr_linenumber" name="L544" href="#L544">544</a>         assertEquals(<span class="jxr_string">"\r\n"</span>, cSVFormatTwo.getRecordSeparator());
+<a class="jxr_linenumber" name="L545" href="#L545">545</a>         assertNull(cSVFormatTwo.getQuoteMode());
+<a class="jxr_linenumber" name="L546" href="#L546">546</a> 
+<a class="jxr_linenumber" name="L547" href="#L547">547</a>         assertEquals('n', (<strong class="jxr_keyword">char</strong>)cSVFormatTwo.getCommentMarker());
+<a class="jxr_linenumber" name="L548" href="#L548">548</a>         assertFalse(cSVFormatTwo.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L549" href="#L549">549</a> 
+<a class="jxr_linenumber" name="L550" href="#L550">550</a>         assertFalse(cSVFormatTwo.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L551" href="#L551">551</a>         assertTrue(cSVFormatTwo.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L552" href="#L552">552</a> 
+<a class="jxr_linenumber" name="L553" href="#L553">553</a>         assertNotSame(cSVFormat, cSVFormatTwo);
+<a class="jxr_linenumber" name="L554" href="#L554">554</a>         assertNotSame(cSVFormatTwo, cSVFormat);
+<a class="jxr_linenumber" name="L555" href="#L555">555</a> 
+<a class="jxr_linenumber" name="L556" href="#L556">556</a>         assertFalse(cSVFormatTwo.equals(cSVFormat));
+<a class="jxr_linenumber" name="L557" href="#L557">557</a> 
+<a class="jxr_linenumber" name="L558" href="#L558">558</a>         assertNull(cSVFormat.getEscapeCharacter());
+<a class="jxr_linenumber" name="L559" href="#L559">559</a>         assertTrue(cSVFormat.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L560" href="#L560">560</a> 
+<a class="jxr_linenumber" name="L561" href="#L561">561</a>         assertFalse(cSVFormat.getTrim());
+<a class="jxr_linenumber" name="L562" href="#L562">562</a>         assertFalse(cSVFormat.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L563" href="#L563">563</a> 
+<a class="jxr_linenumber" name="L564" href="#L564">564</a>         assertFalse(cSVFormat.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L565" href="#L565">565</a>         assertEquals(',', cSVFormat.getDelimiter());
+<a class="jxr_linenumber" name="L566" href="#L566">566</a> 
+<a class="jxr_linenumber" name="L567" href="#L567">567</a>         assertFalse(cSVFormat.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L568" href="#L568">568</a>         assertEquals(<span class="jxr_string">"\r\n"</span>, cSVFormat.getRecordSeparator());
+<a class="jxr_linenumber" name="L569" href="#L569">569</a> 
+<a class="jxr_linenumber" name="L570" href="#L570">570</a>         assertFalse(cSVFormat.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L571" href="#L571">571</a>         assertNull(cSVFormat.getCommentMarker());
+<a class="jxr_linenumber" name="L572" href="#L572">572</a> 
+<a class="jxr_linenumber" name="L573" href="#L573">573</a>         assertFalse(cSVFormat.isNullStringSet());
+<a class="jxr_linenumber" name="L574" href="#L574">574</a>         assertFalse(cSVFormat.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L575" href="#L575">575</a> 
+<a class="jxr_linenumber" name="L576" href="#L576">576</a>         assertFalse(cSVFormat.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L577" href="#L577">577</a>         assertFalse(cSVFormat.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L578" href="#L578">578</a> 
+<a class="jxr_linenumber" name="L579" href="#L579">579</a>         assertNull(cSVFormat.getNullString());
+<a class="jxr_linenumber" name="L580" href="#L580">580</a>         assertNull(cSVFormat.getQuoteMode());
+<a class="jxr_linenumber" name="L581" href="#L581">581</a> 
+<a class="jxr_linenumber" name="L582" href="#L582">582</a>         assertTrue(cSVFormat.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L583" href="#L583">583</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormat.getQuoteCharacter());
+<a class="jxr_linenumber" name="L584" href="#L584">584</a> 
+<a class="jxr_linenumber" name="L585" href="#L585">585</a>         assertFalse(cSVFormatTwo.isNullStringSet());
+<a class="jxr_linenumber" name="L586" href="#L586">586</a>         assertFalse(cSVFormatTwo.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L587" href="#L587">587</a> 
+<a class="jxr_linenumber" name="L588" href="#L588">588</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormatTwo.getQuoteCharacter());
+<a class="jxr_linenumber" name="L589" href="#L589">589</a>         assertNull(cSVFormatTwo.getNullString());
+<a class="jxr_linenumber" name="L590" href="#L590">590</a> 
+<a class="jxr_linenumber" name="L591" href="#L591">591</a>         assertEquals(',', cSVFormatTwo.getDelimiter());
+<a class="jxr_linenumber" name="L592" href="#L592">592</a>         assertFalse(cSVFormatTwo.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L593" href="#L593">593</a> 
+<a class="jxr_linenumber" name="L594" href="#L594">594</a>         assertTrue(cSVFormatTwo.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L595" href="#L595">595</a>         assertFalse(cSVFormatTwo.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L596" href="#L596">596</a> 
+<a class="jxr_linenumber" name="L597" href="#L597">597</a>         assertFalse(cSVFormatTwo.getTrim());
+<a class="jxr_linenumber" name="L598" href="#L598">598</a>         assertNull(cSVFormatTwo.getEscapeCharacter());
+<a class="jxr_linenumber" name="L599" href="#L599">599</a> 
+<a class="jxr_linenumber" name="L600" href="#L600">600</a>         assertTrue(cSVFormatTwo.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L601" href="#L601">601</a>         assertFalse(cSVFormatTwo.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L602" href="#L602">602</a> 
+<a class="jxr_linenumber" name="L603" href="#L603">603</a>         assertEquals(<span class="jxr_string">"\r\n"</span>, cSVFormatTwo.getRecordSeparator());
+<a class="jxr_linenumber" name="L604" href="#L604">604</a>         assertNull(cSVFormatTwo.getQuoteMode());
+<a class="jxr_linenumber" name="L605" href="#L605">605</a> 
+<a class="jxr_linenumber" name="L606" href="#L606">606</a>         assertEquals('n', (<strong class="jxr_keyword">char</strong>)cSVFormatTwo.getCommentMarker());
+<a class="jxr_linenumber" name="L607" href="#L607">607</a>         assertFalse(cSVFormatTwo.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L608" href="#L608">608</a> 
+<a class="jxr_linenumber" name="L609" href="#L609">609</a>         assertFalse(cSVFormatTwo.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L610" href="#L610">610</a>         assertTrue(cSVFormatTwo.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L611" href="#L611">611</a> 
+<a class="jxr_linenumber" name="L612" href="#L612">612</a>         assertNotSame(cSVFormat, cSVFormatTwo);
+<a class="jxr_linenumber" name="L613" href="#L613">613</a>         assertNotSame(cSVFormatTwo, cSVFormat);
+<a class="jxr_linenumber" name="L614" href="#L614">614</a> 
+<a class="jxr_linenumber" name="L615" href="#L615">615</a>         assertFalse(cSVFormat.equals(cSVFormatTwo));
+<a class="jxr_linenumber" name="L616" href="#L616">616</a> 
+<a class="jxr_linenumber" name="L617" href="#L617">617</a>         assertFalse(cSVFormatTwo.equals(cSVFormat));
+<a class="jxr_linenumber" name="L618" href="#L618">618</a>         assertEquals(<span class="jxr_string">"Delimiter=&lt;,&gt; QuoteChar=&lt;\&quot;&gt; CommentStart=&lt;n&gt; "</span> +
+<a class="jxr_linenumber" name="L619" href="#L619">619</a>                         <span class="jxr_string">"RecordSeparator=&lt;\r\n&gt; EmptyLines:ignored SkipHeaderRecord:false"</span>
+<a class="jxr_linenumber" name="L620" href="#L620">620</a>                 , cSVFormatTwo.toString());
+<a class="jxr_linenumber" name="L621" href="#L621">621</a> 
+<a class="jxr_linenumber" name="L622" href="#L622">622</a>     }
+<a class="jxr_linenumber" name="L623" href="#L623">623</a> 
+<a class="jxr_linenumber" name="L624" href="#L624">624</a> 
+<a class="jxr_linenumber" name="L625" href="#L625">625</a>     @Test
+<a class="jxr_linenumber" name="L626" href="#L626">626</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testNewFormat() {
+<a class="jxr_linenumber" name="L627" href="#L627">627</a> 
+<a class="jxr_linenumber" name="L628" href="#L628">628</a>         CSVFormat cSVFormat = CSVFormat.newFormat('X');
+<a class="jxr_linenumber" name="L629" href="#L629">629</a> 
+<a class="jxr_linenumber" name="L630" href="#L630">630</a>         assertFalse(cSVFormat.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L631" href="#L631">631</a>         assertFalse(cSVFormat.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L632" href="#L632">632</a> 
+<a class="jxr_linenumber" name="L633" href="#L633">633</a>         assertNull(cSVFormat.getRecordSeparator());
+<a class="jxr_linenumber" name="L634" href="#L634">634</a>         assertNull(cSVFormat.getQuoteMode());
+<a class="jxr_linenumber" name="L635" href="#L635">635</a> 
+<a class="jxr_linenumber" name="L636" href="#L636">636</a>         assertNull(cSVFormat.getCommentMarker());
+<a class="jxr_linenumber" name="L637" href="#L637">637</a>         assertFalse(cSVFormat.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L638" href="#L638">638</a> 
+<a class="jxr_linenumber" name="L639" href="#L639">639</a>         assertFalse(cSVFormat.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L640" href="#L640">640</a>         assertFalse(cSVFormat.getTrim());
+<a class="jxr_linenumber" name="L641" href="#L641">641</a> 
+<a class="jxr_linenumber" name="L642" href="#L642">642</a>         assertFalse(cSVFormat.isNullStringSet());
+<a class="jxr_linenumber" name="L643" href="#L643">643</a>         assertNull(cSVFormat.getEscapeCharacter());
+<a class="jxr_linenumber" name="L644" href="#L644">644</a> 
+<a class="jxr_linenumber" name="L645" href="#L645">645</a>         assertFalse(cSVFormat.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L646" href="#L646">646</a>         assertFalse(cSVFormat.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L647" href="#L647">647</a> 
+<a class="jxr_linenumber" name="L648" href="#L648">648</a>         assertEquals('X', cSVFormat.getDelimiter());
+<a class="jxr_linenumber" name="L649" href="#L649">649</a>         assertNull(cSVFormat.getNullString());
+<a class="jxr_linenumber" name="L650" href="#L650">650</a> 
+<a class="jxr_linenumber" name="L651" href="#L651">651</a>         assertFalse(cSVFormat.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L652" href="#L652">652</a>         assertFalse(cSVFormat.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L653" href="#L653">653</a> 
+<a class="jxr_linenumber" name="L654" href="#L654">654</a>         assertNull(cSVFormat.getQuoteCharacter());
+<a class="jxr_linenumber" name="L655" href="#L655">655</a>         assertFalse(cSVFormat.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L656" href="#L656">656</a> 
+<a class="jxr_linenumber" name="L657" href="#L657">657</a>         assertFalse(cSVFormat.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L658" href="#L658">658</a>         assertFalse(cSVFormat.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L659" href="#L659">659</a> 
+<a class="jxr_linenumber" name="L660" href="#L660">660</a>         assertNull(cSVFormat.getRecordSeparator());
+<a class="jxr_linenumber" name="L661" href="#L661">661</a>         assertNull(cSVFormat.getQuoteMode());
+<a class="jxr_linenumber" name="L662" href="#L662">662</a> 
+<a class="jxr_linenumber" name="L663" href="#L663">663</a>         assertNull(cSVFormat.getCommentMarker());
+<a class="jxr_linenumber" name="L664" href="#L664">664</a>         assertFalse(cSVFormat.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L665" href="#L665">665</a> 
+<a class="jxr_linenumber" name="L666" href="#L666">666</a>         assertFalse(cSVFormat.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L667" href="#L667">667</a>         assertFalse(cSVFormat.getTrim());
+<a class="jxr_linenumber" name="L668" href="#L668">668</a> 
+<a class="jxr_linenumber" name="L669" href="#L669">669</a>         assertFalse(cSVFormat.isNullStringSet());
+<a class="jxr_linenumber" name="L670" href="#L670">670</a>         assertNull(cSVFormat.getEscapeCharacter());
+<a class="jxr_linenumber" name="L671" href="#L671">671</a> 
+<a class="jxr_linenumber" name="L672" href="#L672">672</a>         assertFalse(cSVFormat.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L673" href="#L673">673</a>         assertFalse(cSVFormat.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L674" href="#L674">674</a> 
+<a class="jxr_linenumber" name="L675" href="#L675">675</a>         assertEquals('X', cSVFormat.getDelimiter());
+<a class="jxr_linenumber" name="L676" href="#L676">676</a>         assertNull(cSVFormat.getNullString());
+<a class="jxr_linenumber" name="L677" href="#L677">677</a> 
+<a class="jxr_linenumber" name="L678" href="#L678">678</a>         assertFalse(cSVFormat.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L679" href="#L679">679</a>         assertFalse(cSVFormat.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L680" href="#L680">680</a> 
+<a class="jxr_linenumber" name="L681" href="#L681">681</a>         assertNull(cSVFormat.getQuoteCharacter());
+<a class="jxr_linenumber" name="L682" href="#L682">682</a>         assertFalse(cSVFormat.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L683" href="#L683">683</a> 
+<a class="jxr_linenumber" name="L684" href="#L684">684</a>     }
+<a class="jxr_linenumber" name="L685" href="#L685">685</a> 
+<a class="jxr_linenumber" name="L686" href="#L686">686</a> 
+<a class="jxr_linenumber" name="L687" href="#L687">687</a>     @Test
+<a class="jxr_linenumber" name="L688" href="#L688">688</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testWithHeaderComments() {
+<a class="jxr_linenumber" name="L689" href="#L689">689</a> 
+<a class="jxr_linenumber" name="L690" href="#L690">690</a>         CSVFormat cSVFormat = CSVFormat.DEFAULT;
+<a class="jxr_linenumber" name="L691" href="#L691">691</a> 
+<a class="jxr_linenumber" name="L692" href="#L692">692</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormat.getQuoteCharacter());
+<a class="jxr_linenumber" name="L693" href="#L693">693</a>         assertFalse(cSVFormat.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L694" href="#L694">694</a> 
+<a class="jxr_linenumber" name="L695" href="#L695">695</a>         assertFalse(cSVFormat.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L696" href="#L696">696</a>         assertTrue(cSVFormat.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L697" href="#L697">697</a> 
+<a class="jxr_linenumber" name="L698" href="#L698">698</a>         assertFalse(cSVFormat.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L699" href="#L699">699</a>         assertNull(cSVFormat.getQuoteMode());
+<a class="jxr_linenumber" name="L700" href="#L700">700</a> 
+<a class="jxr_linenumber" name="L701" href="#L701">701</a>         assertEquals(',', cSVFormat.getDelimiter());
+<a class="jxr_linenumber" name="L702" href="#L702">702</a>         assertTrue(cSVFormat.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L703" href="#L703">703</a> 
+<a class="jxr_linenumber" name="L704" href="#L704">704</a>         assertFalse(cSVFormat.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L705" href="#L705">705</a>         assertNull(cSVFormat.getCommentMarker());
+<a class="jxr_linenumber" name="L706" href="#L706">706</a> 
+<a class="jxr_linenumber" name="L707" href="#L707">707</a>         assertEquals(<span class="jxr_string">"\r\n"</span>, cSVFormat.getRecordSeparator());
+<a class="jxr_linenumber" name="L708" href="#L708">708</a>         assertFalse(cSVFormat.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L709" href="#L709">709</a> 
+<a class="jxr_linenumber" name="L710" href="#L710">710</a>         assertFalse(cSVFormat.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L711" href="#L711">711</a>         assertFalse(cSVFormat.getTrim());
+<a class="jxr_linenumber" name="L712" href="#L712">712</a> 
+<a class="jxr_linenumber" name="L713" href="#L713">713</a>         assertFalse(cSVFormat.isNullStringSet());
+<a class="jxr_linenumber" name="L714" href="#L714">714</a>         assertNull(cSVFormat.getNullString());
+<a class="jxr_linenumber" name="L715" href="#L715">715</a> 
+<a class="jxr_linenumber" name="L716" href="#L716">716</a>         assertFalse(cSVFormat.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L717" href="#L717">717</a>         assertNull(cSVFormat.getEscapeCharacter());
+<a class="jxr_linenumber" name="L718" href="#L718">718</a> 
+<a class="jxr_linenumber" name="L719" href="#L719">719</a>         Object[] objectArray = <strong class="jxr_keyword">new</strong> Object[8];
+<a class="jxr_linenumber" name="L720" href="#L720">720</a>         CSVFormat cSVFormatTwo = cSVFormat.withHeaderComments(objectArray);
+<a class="jxr_linenumber" name="L721" href="#L721">721</a> 
+<a class="jxr_linenumber" name="L722" href="#L722">722</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormat.getQuoteCharacter());
+<a class="jxr_linenumber" name="L723" href="#L723">723</a>         assertFalse(cSVFormat.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L724" href="#L724">724</a> 
+<a class="jxr_linenumber" name="L725" href="#L725">725</a>         assertFalse(cSVFormat.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L726" href="#L726">726</a>         assertTrue(cSVFormat.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L727" href="#L727">727</a> 
+<a class="jxr_linenumber" name="L728" href="#L728">728</a>         assertFalse(cSVFormat.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L729" href="#L729">729</a>         assertNull(cSVFormat.getQuoteMode());
+<a class="jxr_linenumber" name="L730" href="#L730">730</a> 
+<a class="jxr_linenumber" name="L731" href="#L731">731</a>         assertEquals(',', cSVFormat.getDelimiter());
+<a class="jxr_linenumber" name="L732" href="#L732">732</a>         assertTrue(cSVFormat.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L733" href="#L733">733</a> 
+<a class="jxr_linenumber" name="L734" href="#L734">734</a>         assertFalse(cSVFormat.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L735" href="#L735">735</a>         assertNull(cSVFormat.getCommentMarker());
+<a class="jxr_linenumber" name="L736" href="#L736">736</a> 
+<a class="jxr_linenumber" name="L737" href="#L737">737</a>         assertEquals(<span class="jxr_string">"\r\n"</span>, cSVFormat.getRecordSeparator());
+<a class="jxr_linenumber" name="L738" href="#L738">738</a>         assertFalse(cSVFormat.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L739" href="#L739">739</a> 
+<a class="jxr_linenumber" name="L740" href="#L740">740</a>         assertFalse(cSVFormat.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L741" href="#L741">741</a>         assertFalse(cSVFormat.getTrim());
+<a class="jxr_linenumber" name="L742" href="#L742">742</a> 
+<a class="jxr_linenumber" name="L743" href="#L743">743</a>         assertFalse(cSVFormat.isNullStringSet());
+<a class="jxr_linenumber" name="L744" href="#L744">744</a>         assertNull(cSVFormat.getNullString());
+<a class="jxr_linenumber" name="L745" href="#L745">745</a> 
+<a class="jxr_linenumber" name="L746" href="#L746">746</a>         assertFalse(cSVFormat.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L747" href="#L747">747</a>         assertNull(cSVFormat.getEscapeCharacter());
+<a class="jxr_linenumber" name="L748" href="#L748">748</a> 
+<a class="jxr_linenumber" name="L749" href="#L749">749</a>         assertFalse(cSVFormatTwo.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L750" href="#L750">750</a>         assertNull(cSVFormatTwo.getQuoteMode());
+<a class="jxr_linenumber" name="L751" href="#L751">751</a> 
+<a class="jxr_linenumber" name="L752" href="#L752">752</a>         assertTrue(cSVFormatTwo.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L753" href="#L753">753</a>         assertFalse(cSVFormatTwo.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L754" href="#L754">754</a> 
+<a class="jxr_linenumber" name="L755" href="#L755">755</a>         assertNull(cSVFormatTwo.getEscapeCharacter());
+<a class="jxr_linenumber" name="L756" href="#L756">756</a>         assertFalse(cSVFormatTwo.getTrim());
+<a class="jxr_linenumber" name="L757" href="#L757">757</a> 
+<a class="jxr_linenumber" name="L758" href="#L758">758</a>         assertFalse(cSVFormatTwo.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L759" href="#L759">759</a>         assertTrue(cSVFormatTwo.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L760" href="#L760">760</a> 
+<a class="jxr_linenumber" name="L761" href="#L761">761</a>         assertFalse(cSVFormatTwo.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L762" href="#L762">762</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormatTwo.getQuoteCharacter());
+<a class="jxr_linenumber" name="L763" href="#L763">763</a> 
+<a class="jxr_linenumber" name="L764" href="#L764">764</a>         assertFalse(cSVFormatTwo.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L765" href="#L765">765</a>         assertNull(cSVFormatTwo.getNullString());
+<a class="jxr_linenumber" name="L766" href="#L766">766</a> 
+<a class="jxr_linenumber" name="L767" href="#L767">767</a>         assertFalse(cSVFormatTwo.isNullStringSet());
+<a class="jxr_linenumber" name="L768" href="#L768">768</a>         assertFalse(cSVFormatTwo.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L769" href="#L769">769</a> 
+<a class="jxr_linenumber" name="L770" href="#L770">770</a>         assertEquals(<span class="jxr_string">"\r\n"</span>, cSVFormatTwo.getRecordSeparator());
+<a class="jxr_linenumber" name="L771" href="#L771">771</a>         assertEquals(',', cSVFormatTwo.getDelimiter());
+<a class="jxr_linenumber" name="L772" href="#L772">772</a> 
+<a class="jxr_linenumber" name="L773" href="#L773">773</a>         assertNull(cSVFormatTwo.getCommentMarker());
+<a class="jxr_linenumber" name="L774" href="#L774">774</a>         assertFalse(cSVFormatTwo.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L775" href="#L775">775</a> 
+<a class="jxr_linenumber" name="L776" href="#L776">776</a>         assertNotSame(cSVFormat, cSVFormatTwo);
+<a class="jxr_linenumber" name="L777" href="#L777">777</a>         assertNotSame(cSVFormatTwo, cSVFormat);
+<a class="jxr_linenumber" name="L778" href="#L778">778</a> 
+<a class="jxr_linenumber" name="L779" href="#L779">779</a>         assertTrue(cSVFormatTwo.equals(cSVFormat));
+<a class="jxr_linenumber" name="L780" href="#L780">780</a> 
+<a class="jxr_linenumber" name="L781" href="#L781">781</a>         String string = cSVFormatTwo.format(objectArray);
+<a class="jxr_linenumber" name="L782" href="#L782">782</a> 
+<a class="jxr_linenumber" name="L783" href="#L783">783</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormat.getQuoteCharacter());
+<a class="jxr_linenumber" name="L784" href="#L784">784</a>         assertFalse(cSVFormat.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L785" href="#L785">785</a> 
+<a class="jxr_linenumber" name="L786" href="#L786">786</a>         assertFalse(cSVFormat.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L787" href="#L787">787</a>         assertTrue(cSVFormat.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L788" href="#L788">788</a> 
+<a class="jxr_linenumber" name="L789" href="#L789">789</a>         assertFalse(cSVFormat.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L790" href="#L790">790</a>         assertNull(cSVFormat.getQuoteMode());
+<a class="jxr_linenumber" name="L791" href="#L791">791</a> 
+<a class="jxr_linenumber" name="L792" href="#L792">792</a>         assertEquals(',', cSVFormat.getDelimiter());
+<a class="jxr_linenumber" name="L793" href="#L793">793</a>         assertTrue(cSVFormat.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L794" href="#L794">794</a> 
+<a class="jxr_linenumber" name="L795" href="#L795">795</a>         assertFalse(cSVFormat.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L796" href="#L796">796</a>         assertNull(cSVFormat.getCommentMarker());
+<a class="jxr_linenumber" name="L797" href="#L797">797</a> 
+<a class="jxr_linenumber" name="L798" href="#L798">798</a>         assertEquals(<span class="jxr_string">"\r\n"</span>, cSVFormat.getRecordSeparator());
+<a class="jxr_linenumber" name="L799" href="#L799">799</a>         assertFalse(cSVFormat.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L800" href="#L800">800</a> 
+<a class="jxr_linenumber" name="L801" href="#L801">801</a>         assertFalse(cSVFormat.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L802" href="#L802">802</a>         assertFalse(cSVFormat.getTrim());
+<a class="jxr_linenumber" name="L803" href="#L803">803</a> 
+<a class="jxr_linenumber" name="L804" href="#L804">804</a>         assertFalse(cSVFormat.isNullStringSet());
+<a class="jxr_linenumber" name="L805" href="#L805">805</a>         assertNull(cSVFormat.getNullString());
+<a class="jxr_linenumber" name="L806" href="#L806">806</a> 
+<a class="jxr_linenumber" name="L807" href="#L807">807</a>         assertFalse(cSVFormat.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L808" href="#L808">808</a>         assertNull(cSVFormat.getEscapeCharacter());
+<a class="jxr_linenumber" name="L809" href="#L809">809</a> 
+<a class="jxr_linenumber" name="L810" href="#L810">810</a>         assertFalse(cSVFormatTwo.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L811" href="#L811">811</a>         assertNull(cSVFormatTwo.getQuoteMode());
+<a class="jxr_linenumber" name="L812" href="#L812">812</a> 
+<a class="jxr_linenumber" name="L813" href="#L813">813</a>         assertTrue(cSVFormatTwo.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L814" href="#L814">814</a>         assertFalse(cSVFormatTwo.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L815" href="#L815">815</a> 
+<a class="jxr_linenumber" name="L816" href="#L816">816</a>         assertNull(cSVFormatTwo.getEscapeCharacter());
+<a class="jxr_linenumber" name="L817" href="#L817">817</a>         assertFalse(cSVFormatTwo.getTrim());
+<a class="jxr_linenumber" name="L818" href="#L818">818</a> 
+<a class="jxr_linenumber" name="L819" href="#L819">819</a>         assertFalse(cSVFormatTwo.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L820" href="#L820">820</a>         assertTrue(cSVFormatTwo.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L821" href="#L821">821</a> 
+<a class="jxr_linenumber" name="L822" href="#L822">822</a>         assertFalse(cSVFormatTwo.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L823" href="#L823">823</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormatTwo.getQuoteCharacter());
+<a class="jxr_linenumber" name="L824" href="#L824">824</a> 
+<a class="jxr_linenumber" name="L825" href="#L825">825</a>         assertFalse(cSVFormatTwo.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L826" href="#L826">826</a>         assertNull(cSVFormatTwo.getNullString());
+<a class="jxr_linenumber" name="L827" href="#L827">827</a> 
+<a class="jxr_linenumber" name="L828" href="#L828">828</a>         assertFalse(cSVFormatTwo.isNullStringSet());
+<a class="jxr_linenumber" name="L829" href="#L829">829</a>         assertFalse(cSVFormatTwo.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L830" href="#L830">830</a> 
+<a class="jxr_linenumber" name="L831" href="#L831">831</a>         assertEquals(<span class="jxr_string">"\r\n"</span>, cSVFormatTwo.getRecordSeparator());
+<a class="jxr_linenumber" name="L832" href="#L832">832</a>         assertEquals(',', cSVFormatTwo.getDelimiter());
+<a class="jxr_linenumber" name="L833" href="#L833">833</a> 
+<a class="jxr_linenumber" name="L834" href="#L834">834</a>         assertNull(cSVFormatTwo.getCommentMarker());
+<a class="jxr_linenumber" name="L835" href="#L835">835</a>         assertFalse(cSVFormatTwo.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L836" href="#L836">836</a> 
+<a class="jxr_linenumber" name="L837" href="#L837">837</a>         assertNotSame(cSVFormat, cSVFormatTwo);
+<a class="jxr_linenumber" name="L838" href="#L838">838</a>         assertNotSame(cSVFormatTwo, cSVFormat);
+<a class="jxr_linenumber" name="L839" href="#L839">839</a> 
+<a class="jxr_linenumber" name="L840" href="#L840">840</a>         assertNotNull(string);
+<a class="jxr_linenumber" name="L841" href="#L841">841</a>         assertTrue(cSVFormat.equals(cSVFormatTwo));
+<a class="jxr_linenumber" name="L842" href="#L842">842</a> 
+<a class="jxr_linenumber" name="L843" href="#L843">843</a>         assertTrue(cSVFormatTwo.equals(cSVFormat));
+<a class="jxr_linenumber" name="L844" href="#L844">844</a>         assertEquals(<span class="jxr_string">",,,,,,,"</span>, string);
+<a class="jxr_linenumber" name="L845" href="#L845">845</a> 
+<a class="jxr_linenumber" name="L846" href="#L846">846</a>     }
+<a class="jxr_linenumber" name="L847" href="#L847">847</a> 
+<a class="jxr_linenumber" name="L848" href="#L848">848</a> 
+<a class="jxr_linenumber" name="L849" href="#L849">849</a>     @Test  <em class="jxr_comment">//I assume this to be a defect.</em>
+<a class="jxr_linenumber" name="L850" href="#L850">850</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testFormatThrowsNullPointerException() {
+<a class="jxr_linenumber" name="L851" href="#L851">851</a> 
+<a class="jxr_linenumber" name="L852" href="#L852">852</a>         CSVFormat cSVFormat = CSVFormat.MYSQL;
+<a class="jxr_linenumber" name="L853" href="#L853">853</a> 
+<a class="jxr_linenumber" name="L854" href="#L854">854</a>         <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L855" href="#L855">855</a>             cSVFormat.format(<strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="L856" href="#L856">856</a>             fail(<span class="jxr_string">"Expecting exception: NullPointerException"</span>);
+<a class="jxr_linenumber" name="L857" href="#L857">857</a>         } <strong class="jxr_keyword">catch</strong>(NullPointerException e) {
+<a class="jxr_linenumber" name="L858" href="#L858">858</a>             assertEquals(CSVFormat.<strong class="jxr_keyword">class</strong>.getName(), e.getStackTrace()[0].getClassName());
+<a class="jxr_linenumber" name="L859" href="#L859">859</a>         }
+<a class="jxr_linenumber" name="L860" href="#L860">860</a> 
+<a class="jxr_linenumber" name="L861" href="#L861">861</a>     }
+<a class="jxr_linenumber" name="L862" href="#L862">862</a> 
+<a class="jxr_linenumber" name="L863" href="#L863">863</a> 
+<a class="jxr_linenumber" name="L864" href="#L864">864</a>     @Test
+<a class="jxr_linenumber" name="L865" href="#L865">865</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testEqualsOne() {
+<a class="jxr_linenumber" name="L866" href="#L866">866</a> 
+<a class="jxr_linenumber" name="L867" href="#L867">867</a>         CSVFormat cSVFormatOne = CSVFormat.INFORMIX_UNLOAD;
+<a class="jxr_linenumber" name="L868" href="#L868">868</a>         CSVFormat cSVFormatTwo = CSVFormat.MYSQL;
+<a class="jxr_linenumber" name="L869" href="#L869">869</a> 
+<a class="jxr_linenumber" name="L870" href="#L870">870</a> 
+<a class="jxr_linenumber" name="L871" href="#L871">871</a>         assertEquals('&#92;&#92;', (<strong class="jxr_keyword">char</strong>)cSVFormatOne.getEscapeCharacter());
+<a class="jxr_linenumber" name="L872" href="#L872">872</a>         assertNull(cSVFormatOne.getQuoteMode());
+<a class="jxr_linenumber" name="L873" href="#L873">873</a> 
+<a class="jxr_linenumber" name="L874" href="#L874">874</a>         assertTrue(cSVFormatOne.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L875" href="#L875">875</a>         assertFalse(cSVFormatOne.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L876" href="#L876">876</a> 
+<a class="jxr_linenumber" name="L877" href="#L877">877</a>         assertFalse(cSVFormatOne.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L878" href="#L878">878</a>         assertNull(cSVFormatOne.getCommentMarker());
+<a class="jxr_linenumber" name="L879" href="#L879">879</a> 
+<a class="jxr_linenumber" name="L880" href="#L880">880</a>         assertFalse(cSVFormatOne.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L881" href="#L881">881</a>         assertTrue(cSVFormatOne.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L882" href="#L882">882</a> 
+<a class="jxr_linenumber" name="L883" href="#L883">883</a>         assertEquals('|', cSVFormatOne.getDelimiter());
+<a class="jxr_linenumber" name="L884" href="#L884">884</a>         assertFalse(cSVFormatOne.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L885" href="#L885">885</a> 
+<a class="jxr_linenumber" name="L886" href="#L886">886</a>         assertTrue(cSVFormatOne.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L887" href="#L887">887</a>         assertEquals(<span class="jxr_string">"\n"</span>, cSVFormatOne.getRecordSeparator());
+<a class="jxr_linenumber" name="L888" href="#L888">888</a> 
+<a class="jxr_linenumber" name="L889" href="#L889">889</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormatOne.getQuoteCharacter());
+<a class="jxr_linenumber" name="L890" href="#L890">890</a>         assertFalse(cSVFormatOne.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L891" href="#L891">891</a> 
+<a class="jxr_linenumber" name="L892" href="#L892">892</a>         assertFalse(cSVFormatOne.getTrim());
+<a class="jxr_linenumber" name="L893" href="#L893">893</a>         assertFalse(cSVFormatOne.isNullStringSet());
+<a class="jxr_linenumber" name="L894" href="#L894">894</a> 
+<a class="jxr_linenumber" name="L895" href="#L895">895</a>         assertNull(cSVFormatOne.getNullString());
+<a class="jxr_linenumber" name="L896" href="#L896">896</a>         assertFalse(cSVFormatOne.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L897" href="#L897">897</a> 
+<a class="jxr_linenumber" name="L898" href="#L898">898</a> 
+<a class="jxr_linenumber" name="L899" href="#L899">899</a>         assertTrue(cSVFormatTwo.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L900" href="#L900">900</a>         assertNull(cSVFormatTwo.getQuoteCharacter());
+<a class="jxr_linenumber" name="L901" href="#L901">901</a> 
+<a class="jxr_linenumber" name="L902" href="#L902">902</a>         assertFalse(cSVFormatTwo.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L903" href="#L903">903</a>         assertEquals(QuoteMode.ALL_NON_NULL, cSVFormatTwo.getQuoteMode());
+<a class="jxr_linenumber" name="L904" href="#L904">904</a> 
+<a class="jxr_linenumber" name="L905" href="#L905">905</a>         assertEquals('\t', cSVFormatTwo.getDelimiter());
+<a class="jxr_linenumber" name="L906" href="#L906">906</a>         assertEquals(<span class="jxr_string">"\n"</span>, cSVFormatTwo.getRecordSeparator());
+<a class="jxr_linenumber" name="L907" href="#L907">907</a> 
+<a class="jxr_linenumber" name="L908" href="#L908">908</a>         assertFalse(cSVFormatTwo.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L909" href="#L909">909</a>         assertTrue(cSVFormatTwo.isNullStringSet());
+<a class="jxr_linenumber" name="L910" href="#L910">910</a> 
+<a class="jxr_linenumber" name="L911" href="#L911">911</a>         assertEquals('&#92;&#92;', (<strong class="jxr_keyword">char</strong>)cSVFormatTwo.getEscapeCharacter());
+<a class="jxr_linenumber" name="L912" href="#L912">912</a>         assertFalse(cSVFormatTwo.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L913" href="#L913">913</a> 
+<a class="jxr_linenumber" name="L914" href="#L914">914</a>         assertFalse(cSVFormatTwo.getTrim());
+<a class="jxr_linenumber" name="L915" href="#L915">915</a>         assertFalse(cSVFormatTwo.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L916" href="#L916">916</a> 
+<a class="jxr_linenumber" name="L917" href="#L917">917</a>         assertEquals(<span class="jxr_string">"&#92;&#92;N"</span>, cSVFormatTwo.getNullString());
+<a class="jxr_linenumber" name="L918" href="#L918">918</a>         assertFalse(cSVFormatTwo.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L919" href="#L919">919</a> 
+<a class="jxr_linenumber" name="L920" href="#L920">920</a>         assertFalse(cSVFormatTwo.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L921" href="#L921">921</a>         assertFalse(cSVFormatTwo.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L922" href="#L922">922</a> 
+<a class="jxr_linenumber" name="L923" href="#L923">923</a>         assertNull(cSVFormatTwo.getCommentMarker());
+<a class="jxr_linenumber" name="L924" href="#L924">924</a>         assertFalse(cSVFormatTwo.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L925" href="#L925">925</a> 
+<a class="jxr_linenumber" name="L926" href="#L926">926</a>         assertNotSame(cSVFormatTwo, cSVFormatOne);
+<a class="jxr_linenumber" name="L927" href="#L927">927</a>         assertFalse(cSVFormatTwo.equals(cSVFormatOne));
+<a class="jxr_linenumber" name="L928" href="#L928">928</a> 
+<a class="jxr_linenumber" name="L929" href="#L929">929</a>         assertEquals('&#92;&#92;', (<strong class="jxr_keyword">char</strong>)cSVFormatOne.getEscapeCharacter());
+<a class="jxr_linenumber" name="L930" href="#L930">930</a>         assertNull(cSVFormatOne.getQuoteMode());
+<a class="jxr_linenumber" name="L931" href="#L931">931</a> 
+<a class="jxr_linenumber" name="L932" href="#L932">932</a>         assertTrue(cSVFormatOne.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L933" href="#L933">933</a>         assertFalse(cSVFormatOne.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L934" href="#L934">934</a> 
+<a class="jxr_linenumber" name="L935" href="#L935">935</a>         assertFalse(cSVFormatOne.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L936" href="#L936">936</a>         assertNull(cSVFormatOne.getCommentMarker());
+<a class="jxr_linenumber" name="L937" href="#L937">937</a> 
+<a class="jxr_linenumber" name="L938" href="#L938">938</a>         assertFalse(cSVFormatOne.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L939" href="#L939">939</a>         assertTrue(cSVFormatOne.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L940" href="#L940">940</a> 
+<a class="jxr_linenumber" name="L941" href="#L941">941</a>         assertEquals('|', cSVFormatOne.getDelimiter());
+<a class="jxr_linenumber" name="L942" href="#L942">942</a>         assertFalse(cSVFormatOne.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L943" href="#L943">943</a> 
+<a class="jxr_linenumber" name="L944" href="#L944">944</a>         assertTrue(cSVFormatOne.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L945" href="#L945">945</a>         assertEquals(<span class="jxr_string">"\n"</span>, cSVFormatOne.getRecordSeparator());
+<a class="jxr_linenumber" name="L946" href="#L946">946</a> 
+<a class="jxr_linenumber" name="L947" href="#L947">947</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormatOne.getQuoteCharacter());
+<a class="jxr_linenumber" name="L948" href="#L948">948</a>         assertFalse(cSVFormatOne.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L949" href="#L949">949</a> 
+<a class="jxr_linenumber" name="L950" href="#L950">950</a>         assertFalse(cSVFormatOne.getTrim());
+<a class="jxr_linenumber" name="L951" href="#L951">951</a>         assertFalse(cSVFormatOne.isNullStringSet());
+<a class="jxr_linenumber" name="L952" href="#L952">952</a> 
+<a class="jxr_linenumber" name="L953" href="#L953">953</a>         assertNull(cSVFormatOne.getNullString());
+<a class="jxr_linenumber" name="L954" href="#L954">954</a>         assertFalse(cSVFormatOne.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L955" href="#L955">955</a> 
+<a class="jxr_linenumber" name="L956" href="#L956">956</a>         assertTrue(cSVFormatTwo.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L957" href="#L957">957</a>         assertNull(cSVFormatTwo.getQuoteCharacter());
+<a class="jxr_linenumber" name="L958" href="#L958">958</a> 
+<a class="jxr_linenumber" name="L959" href="#L959">959</a>         assertFalse(cSVFormatTwo.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L960" href="#L960">960</a>         assertEquals(QuoteMode.ALL_NON_NULL, cSVFormatTwo.getQuoteMode());
+<a class="jxr_linenumber" name="L961" href="#L961">961</a> 
+<a class="jxr_linenumber" name="L962" href="#L962">962</a>         assertEquals('\t', cSVFormatTwo.getDelimiter());
+<a class="jxr_linenumber" name="L963" href="#L963">963</a>         assertEquals(<span class="jxr_string">"\n"</span>, cSVFormatTwo.getRecordSeparator());
+<a class="jxr_linenumber" name="L964" href="#L964">964</a> 
+<a class="jxr_linenumber" name="L965" href="#L965">965</a>         assertFalse(cSVFormatTwo.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L966" href="#L966">966</a>         assertTrue(cSVFormatTwo.isNullStringSet());
+<a class="jxr_linenumber" name="L967" href="#L967">967</a> 
+<a class="jxr_linenumber" name="L968" href="#L968">968</a>         assertEquals('&#92;&#92;', (<strong class="jxr_keyword">char</strong>)cSVFormatTwo.getEscapeCharacter());
+<a class="jxr_linenumber" name="L969" href="#L969">969</a>         assertFalse(cSVFormatTwo.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L970" href="#L970">970</a> 
+<a class="jxr_linenumber" name="L971" href="#L971">971</a>         assertFalse(cSVFormatTwo.getTrim());
+<a class="jxr_linenumber" name="L972" href="#L972">972</a>         assertFalse(cSVFormatTwo.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L973" href="#L973">973</a> 
+<a class="jxr_linenumber" name="L974" href="#L974">974</a>         assertEquals(<span class="jxr_string">"&#92;&#92;N"</span>, cSVFormatTwo.getNullString());
+<a class="jxr_linenumber" name="L975" href="#L975">975</a>         assertFalse(cSVFormatTwo.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L976" href="#L976">976</a> 
+<a class="jxr_linenumber" name="L977" href="#L977">977</a>         assertFalse(cSVFormatTwo.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L978" href="#L978">978</a>         assertFalse(cSVFormatTwo.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L979" href="#L979">979</a> 
+<a class="jxr_linenumber" name="L980" href="#L980">980</a>         assertNull(cSVFormatTwo.getCommentMarker());
+<a class="jxr_linenumber" name="L981" href="#L981">981</a>         assertFalse(cSVFormatTwo.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L982" href="#L982">982</a> 
+<a class="jxr_linenumber" name="L983" href="#L983">983</a>         assertNotSame(cSVFormatOne, cSVFormatTwo);
+<a class="jxr_linenumber" name="L984" href="#L984">984</a>         assertNotSame(cSVFormatTwo, cSVFormatOne);
+<a class="jxr_linenumber" name="L985" href="#L985">985</a> 
+<a class="jxr_linenumber" name="L986" href="#L986">986</a>         assertFalse(cSVFormatOne.equals(cSVFormatTwo));
+<a class="jxr_linenumber" name="L987" href="#L987">987</a>         assertFalse(cSVFormatTwo.equals(cSVFormatOne));
+<a class="jxr_linenumber" name="L988" href="#L988">988</a> 
+<a class="jxr_linenumber" name="L989" href="#L989">989</a>         assertFalse(cSVFormatTwo.equals(cSVFormatOne));
+<a class="jxr_linenumber" name="L990" href="#L990">990</a> 
+<a class="jxr_linenumber" name="L991" href="#L991">991</a>     }
+<a class="jxr_linenumber" name="L992" href="#L992">992</a> 
+<a class="jxr_linenumber" name="L993" href="#L993">993</a> 
+<a class="jxr_linenumber" name="L994" href="#L994">994</a>     @Test
+<a class="jxr_linenumber" name="L995" href="#L995">995</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testEqualsWithNull() {
+<a class="jxr_linenumber" name="L996" href="#L996">996</a> 
+<a class="jxr_linenumber" name="L997" href="#L997">997</a>         CSVFormat cSVFormat = CSVFormat.POSTGRESQL_TEXT;
+<a class="jxr_linenumber" name="L998" href="#L998">998</a> 
+<a class="jxr_linenumber" name="L999" href="#L999">999</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormat.getEscapeCharacter());
+<a class="jxr_linenumber" name="L1000" href="#L1000">1000</a>         assertFalse(cSVFormat.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L1001" href="#L1001">1001</a> 
+<a class="jxr_linenumber" name="L1002" href="#L1002">1002</a>         assertFalse(cSVFormat.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L1003" href="#L1003">1003</a>         assertFalse(cSVFormat.getTrim());
+<a class="jxr_linenumber" name="L1004" href="#L1004">1004</a> 
+<a class="jxr_linenumber" name="L1005" href="#L1005">1005</a>         assertTrue(cSVFormat.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L1006" href="#L1006">1006</a>         assertEquals(<span class="jxr_string">"&#92;&#92;N"</span>, cSVFormat.getNullString());
+<a class="jxr_linenumber" name="L1007" href="#L1007">1007</a> 
+<a class="jxr_linenumber" name="L1008" href="#L1008">1008</a>         assertFalse(cSVFormat.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L1009" href="#L1009">1009</a>         assertTrue(cSVFormat.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L1010" href="#L1010">1010</a> 
+<a class="jxr_linenumber" name="L1011" href="#L1011">1011</a>         assertFalse(cSVFormat.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L1012" href="#L1012">1012</a>         assertNull(cSVFormat.getCommentMarker());
+<a class="jxr_linenumber" name="L1013" href="#L1013">1013</a> 
+<a class="jxr_linenumber" name="L1014" href="#L1014">1014</a>         assertFalse(cSVFormat.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L1015" href="#L1015">1015</a>         assertEquals(QuoteMode.ALL_NON_NULL, cSVFormat.getQuoteMode());
+<a class="jxr_linenumber" name="L1016" href="#L1016">1016</a> 
+<a class="jxr_linenumber" name="L1017" href="#L1017">1017</a>         assertEquals('\t', cSVFormat.getDelimiter());
+<a class="jxr_linenumber" name="L1018" href="#L1018">1018</a>         assertFalse(cSVFormat.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L1019" href="#L1019">1019</a> 
+<a class="jxr_linenumber" name="L1020" href="#L1020">1020</a>         assertEquals(<span class="jxr_string">"\n"</span>, cSVFormat.getRecordSeparator());
+<a class="jxr_linenumber" name="L1021" href="#L1021">1021</a>         assertFalse(cSVFormat.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L1022" href="#L1022">1022</a> 
+<a class="jxr_linenumber" name="L1023" href="#L1023">1023</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormat.getQuoteCharacter());
+<a class="jxr_linenumber" name="L1024" href="#L1024">1024</a>         assertTrue(cSVFormat.isNullStringSet());
+<a class="jxr_linenumber" name="L1025" href="#L1025">1025</a> 
+<a class="jxr_linenumber" name="L1026" href="#L1026">1026</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormat.getEscapeCharacter());
+<a class="jxr_linenumber" name="L1027" href="#L1027">1027</a>         assertFalse(cSVFormat.getIgnoreSurroundingSpaces());
+<a class="jxr_linenumber" name="L1028" href="#L1028">1028</a> 
+<a class="jxr_linenumber" name="L1029" href="#L1029">1029</a>         assertFalse(cSVFormat.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L1030" href="#L1030">1030</a>         assertFalse(cSVFormat.getTrim());
+<a class="jxr_linenumber" name="L1031" href="#L1031">1031</a> 
+<a class="jxr_linenumber" name="L1032" href="#L1032">1032</a>         assertTrue(cSVFormat.isQuoteCharacterSet());
+<a class="jxr_linenumber" name="L1033" href="#L1033">1033</a>         assertEquals(<span class="jxr_string">"&#92;&#92;N"</span>, cSVFormat.getNullString());
+<a class="jxr_linenumber" name="L1034" href="#L1034">1034</a> 
+<a class="jxr_linenumber" name="L1035" href="#L1035">1035</a>         assertFalse(cSVFormat.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L1036" href="#L1036">1036</a>         assertTrue(cSVFormat.isEscapeCharacterSet());
+<a class="jxr_linenumber" name="L1037" href="#L1037">1037</a> 
+<a class="jxr_linenumber" name="L1038" href="#L1038">1038</a>         assertFalse(cSVFormat.isCommentMarkerSet());
+<a class="jxr_linenumber" name="L1039" href="#L1039">1039</a>         assertNull(cSVFormat.getCommentMarker());
+<a class="jxr_linenumber" name="L1040" href="#L1040">1040</a> 
+<a class="jxr_linenumber" name="L1041" href="#L1041">1041</a>         assertFalse(cSVFormat.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L1042" href="#L1042">1042</a>         assertEquals(QuoteMode.ALL_NON_NULL, cSVFormat.getQuoteMode());
+<a class="jxr_linenumber" name="L1043" href="#L1043">1043</a> 
+<a class="jxr_linenumber" name="L1044" href="#L1044">1044</a>         assertEquals('\t', cSVFormat.getDelimiter());
+<a class="jxr_linenumber" name="L1045" href="#L1045">1045</a>         assertFalse(cSVFormat.getSkipHeaderRecord());
+<a class="jxr_linenumber" name="L1046" href="#L1046">1046</a> 
+<a class="jxr_linenumber" name="L1047" href="#L1047">1047</a>         assertEquals(<span class="jxr_string">"\n"</span>, cSVFormat.getRecordSeparator());
+<a class="jxr_linenumber" name="L1048" href="#L1048">1048</a>         assertFalse(cSVFormat.getIgnoreEmptyLines());
+<a class="jxr_linenumber" name="L1049" href="#L1049">1049</a> 
+<a class="jxr_linenumber" name="L1050" href="#L1050">1050</a>         assertEquals('\&quot;', (<strong class="jxr_keyword">char</strong>)cSVFormat.getQuoteCharacter());
+<a class="jxr_linenumber" name="L1051" href="#L1051">1051</a>         assertTrue(cSVFormat.isNullStringSet());
+<a class="jxr_linenumber" name="L1052" href="#L1052">1052</a> 
+<a class="jxr_linenumber" name="L1053" href="#L1053">1053</a>         assertFalse(cSVFormat.equals( <strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L1054" href="#L1054">1054</a> 
+<a class="jxr_linenumber" name="L1055" href="#L1055">1055</a>     }
+<a class="jxr_linenumber" name="L1056" href="#L1056">1056</a> 
+<a class="jxr_linenumber" name="L1057" href="#L1057">1057</a> 
+<a class="jxr_linenumber" name="L1058" href="#L1058">1058</a>     @Test
+<a class="jxr_linenumber" name="L1059" href="#L1059">1059</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testToString() {
+<a class="jxr_linenumber" name="L1060" href="#L1060">1060</a> 
+<a class="jxr_linenumber" name="L1061" href="#L1061">1061</a>         CSVFormat cSVFormat = CSVFormat.POSTGRESQL_TEXT;
+<a class="jxr_linenumber" name="L1062" href="#L1062">1062</a>         String string = cSVFormat.INFORMIX_UNLOAD.toString();
+<a class="jxr_linenumber" name="L1063" href="#L1063">1063</a> 
+<a class="jxr_linenumber" name="L1064" href="#L1064">1064</a>         assertEquals(<span class="jxr_string">"Delimiter=&lt;|&gt; Escape=&lt;&#92;&#92;&gt; QuoteChar=&lt;\&quot;&gt; RecordSeparator=&lt;\n&gt; EmptyLines:ignored SkipHeaderRecord:false"</span>, string);
+<a class="jxr_linenumber" name="L1065" href="#L1065">1065</a> 
+<a class="jxr_linenumber" name="L1066" href="#L1066">1066</a>     }
+<a class="jxr_linenumber" name="L1067" href="#L1067">1067</a> 
+<a class="jxr_linenumber" name="L1068" href="#L1068">1068</a> 
+<a class="jxr_linenumber" name="L1069" href="#L1069">1069</a>     @Test
+<a class="jxr_linenumber" name="L1070" href="#L1070">1070</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testHashCodeAndWithIgnoreHeaderCase() {
+<a class="jxr_linenumber" name="L1071" href="#L1071">1071</a> 
+<a class="jxr_linenumber" name="L1072" href="#L1072">1072</a>         CSVFormat cSVFormat = CSVFormat.INFORMIX_UNLOAD_CSV;
+<a class="jxr_linenumber" name="L1073" href="#L1073">1073</a>         CSVFormat cSVFormatTwo = cSVFormat.withIgnoreHeaderCase();
+<a class="jxr_linenumber" name="L1074" href="#L1074">1074</a>         cSVFormatTwo.hashCode();
+<a class="jxr_linenumber" name="L1075" href="#L1075">1075</a> 
+<a class="jxr_linenumber" name="L1076" href="#L1076">1076</a>         assertTrue(cSVFormatTwo.getIgnoreHeaderCase());
+<a class="jxr_linenumber" name="L1077" href="#L1077">1077</a>         assertFalse(cSVFormatTwo.getTrailingDelimiter());
+<a class="jxr_linenumber" name="L1078" href="#L1078">1078</a> 
+<a class="jxr_linenumber" name="L1079" href="#L1079">1079</a>         assertTrue(cSVFormatTwo.equals(cSVFormat));
+<a class="jxr_linenumber" name="L1080" href="#L1080">1080</a>         assertFalse(cSVFormatTwo.getAllowMissingColumnNames());
+<a class="jxr_linenumber" name="L1081" href="#L1081">1081</a> 
+<a class="jxr_linenumber" name="L1082" href="#L1082">1082</a>         assertFalse(cSVFormatTwo.getTrim());
+<a class="jxr_linenumber" name="L1083" href="#L1083">1083</a> 
+<a class="jxr_linenumber" name="L1084" href="#L1084">1084</a>     }
+<a class="jxr_linenumber" name="L1085" href="#L1085">1085</a> 
+<a class="jxr_linenumber" name="L1086" href="#L1086">1086</a>     <strong class="jxr_keyword">public</strong> enum <a href="../../../../org/apache/commons/csv/CSVFormatTest.html">Header</a> {
+<a class="jxr_linenumber" name="L1087" href="#L1087">1087</a>         Name, Email, Phone
+<a class="jxr_linenumber" name="L1088" href="#L1088">1088</a>     }
+<a class="jxr_linenumber" name="L1089" href="#L1089">1089</a> 
+<a class="jxr_linenumber" name="L1090" href="#L1090">1090</a>     <strong class="jxr_keyword">public</strong> enum <a href="../../../../org/apache/commons/csv/CSVFormatTest.html">EmptyEnum</a> {
+<a class="jxr_linenumber" name="L1091" href="#L1091">1091</a>     }
+<a class="jxr_linenumber" name="L1092" href="#L1092">1092</a> 
+<a class="jxr_linenumber" name="L1093" href="#L1093">1093</a> }
 </pre>
 <hr/>
-<div id="footer">Copyright &#169; 2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
+<div id="footer">Copyright &#169; 2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>
 </body>
 </html>
\ No newline at end of file



Mime
View raw message