commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r992480 [35/46] - in /websites/production/commons/content/proper/commons-csv: ./ apidocs/ apidocs/org/apache/commons/csv/ apidocs/org/apache/commons/csv/class-use/ apidocs/resources/ apidocs/src-html/org/apache/commons/csv/ css/ jacoco/ jac...
Date Sun, 10 Jul 2016 19:38:21 GMT
Modified: websites/production/commons/content/proper/commons-csv/xref-test/org/apache/commons/csv/AssertionsTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-csv/xref-test/org/apache/commons/csv/AssertionsTest.html
(original)
+++ websites/production/commons/content/proper/commons-csv/xref-test/org/apache/commons/csv/AssertionsTest.html
Sun Jul 10 19:38:20 2016
@@ -28,7 +28,7 @@
 <a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong>
org.junit.Test;
 <a class="jxr_linenumber" name="L21" href="#L21">21</a>  
 <a class="jxr_linenumber" name="L22" href="#L22">22</a>  <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment">
* @version $Id: AssertionsTest.java 1518808 2013-08-29 20:25:19Z britter $</em>
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment">
* @version $Id$</em>
 <a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment">
*/</em>
 <a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/csv/AssertionsTest.html">AssertionsTest</a>
{
 <a class="jxr_linenumber" name="L26" href="#L26">26</a>  

Modified: websites/production/commons/content/proper/commons-csv/xref-test/org/apache/commons/csv/CSVFileParserTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-csv/xref-test/org/apache/commons/csv/CSVFileParserTest.html
(original)
+++ websites/production/commons/content/proper/commons-csv/xref-test/org/apache/commons/csv/CSVFileParserTest.html
Sun Jul 10 19:38:20 2016
@@ -77,7 +77,7 @@
 <a class="jxr_linenumber" name="L69" href="#L69">69</a>  
 <a class="jxr_linenumber" name="L70" href="#L70">70</a>      @Parameters
 <a class="jxr_linenumber" name="L71" href="#L71">71</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">static</strong> Collection&lt;Object[]&gt;
generateData() {
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>          <strong class="jxr_keyword">final</strong>
List&lt;Object[]&gt; list = <strong class="jxr_keyword">new</strong> ArrayList&lt;Object[]&gt;();
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>          <strong class="jxr_keyword">final</strong>
List&lt;Object[]&gt; list = <strong class="jxr_keyword">new</strong> ArrayList&lt;&gt;();
 <a class="jxr_linenumber" name="L73" href="#L73">73</a>  
 <a class="jxr_linenumber" name="L74" href="#L74">74</a>          <strong class="jxr_keyword">final</strong>
FilenameFilter filenameFilter = <strong class="jxr_keyword">new</strong> FilenameFilter()
{
 <a class="jxr_linenumber" name="L75" href="#L75">75</a>  
@@ -124,19 +124,19 @@
 <a class="jxr_linenumber" name="L116" href="#L116">116</a> 
 <a class="jxr_linenumber" name="L117" href="#L117">117</a>         <em class="jxr_comment">//
Now parse the file and compare against the expected results</em>
 <a class="jxr_linenumber" name="L118" href="#L118">118</a>         <em class="jxr_comment">//
We use a buffered reader internally so no need to create one here.</em>
-<a class="jxr_linenumber" name="L119" href="#L119">119</a>         <strong
class="jxr_keyword">final</strong> CSVParser parser = CSVParser.parse(<strong
class="jxr_keyword">new</strong> File(BASE, split[0]), Charset.defaultCharset(),
format);
-<a class="jxr_linenumber" name="L120" href="#L120">120</a>         <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong>
CSVRecord record : parser) {
-<a class="jxr_linenumber" name="L121" href="#L121">121</a>             String
parsed = Arrays.toString(record.values());
-<a class="jxr_linenumber" name="L122" href="#L122">122</a>             <strong
class="jxr_keyword">if</strong> (checkComments) {
-<a class="jxr_linenumber" name="L123" href="#L123">123</a>                 <strong
class="jxr_keyword">final</strong> String comment = record.getComment().replace(<span
class="jxr_string">"\n"</span>, <span class="jxr_string">"&#92;&#92;n"</span>);
-<a class="jxr_linenumber" name="L124" href="#L124">124</a>                 <strong
class="jxr_keyword">if</strong> (comment != <strong class="jxr_keyword">null</strong>)
{
-<a class="jxr_linenumber" name="L125" href="#L125">125</a>                  
  parsed += <span class="jxr_string">"#"</span> + comment;
-<a class="jxr_linenumber" name="L126" href="#L126">126</a>                 }
-<a class="jxr_linenumber" name="L127" href="#L127">127</a>             }
-<a class="jxr_linenumber" name="L128" href="#L128">128</a>             <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
count = record.size();
-<a class="jxr_linenumber" name="L129" href="#L129">129</a>             assertEquals(testName,
readTestData(), count + <span class="jxr_string">":"</span> + parsed);
-<a class="jxr_linenumber" name="L130" href="#L130">130</a>         }
-<a class="jxr_linenumber" name="L131" href="#L131">131</a>         parser.close();
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>         <strong
class="jxr_keyword">try</strong> (<strong class="jxr_keyword">final</strong>
CSVParser parser = CSVParser.parse(<strong class="jxr_keyword">new</strong> File(BASE,
split[0]), Charset.defaultCharset(), format)) {
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>             <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong>
CSVRecord record : parser) {
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>                 String
parsed = Arrays.toString(record.values());
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>                 <strong
class="jxr_keyword">if</strong> (checkComments) {
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>                  
  <strong class="jxr_keyword">final</strong> String comment = record.getComment().replace(<span
class="jxr_string">"\n"</span>, <span class="jxr_string">"&#92;&#92;n"</span>);
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>                  
  <strong class="jxr_keyword">if</strong> (comment != <strong class="jxr_keyword">null</strong>)
{
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>                  
      parsed += <span class="jxr_string">"#"</span> + comment;
+<a class="jxr_linenumber" name="L126" href="#L126">126</a>                  
  }
+<a class="jxr_linenumber" name="L127" href="#L127">127</a>                 }
+<a class="jxr_linenumber" name="L128" href="#L128">128</a>                 <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
count = record.size();
+<a class="jxr_linenumber" name="L129" href="#L129">129</a>                 assertEquals(testName,
readTestData(), count + <span class="jxr_string">":"</span> + parsed);
+<a class="jxr_linenumber" name="L130" href="#L130">130</a>             }
+<a class="jxr_linenumber" name="L131" href="#L131">131</a>         }
 <a class="jxr_linenumber" name="L132" href="#L132">132</a>     }
 <a class="jxr_linenumber" name="L133" href="#L133">133</a> 
 <a class="jxr_linenumber" name="L134" href="#L134">134</a>     @Test
@@ -168,19 +168,19 @@
 <a class="jxr_linenumber" name="L160" href="#L160">160</a> 
 <a class="jxr_linenumber" name="L161" href="#L161">161</a>         <em class="jxr_comment">//
Now parse the file and compare against the expected results</em>
 <a class="jxr_linenumber" name="L162" href="#L162">162</a>         <strong
class="jxr_keyword">final</strong> URL resource = ClassLoader.getSystemResource(<span
class="jxr_string">"CSVFileParser/"</span> + split[0]);
-<a class="jxr_linenumber" name="L163" href="#L163">163</a>         <strong
class="jxr_keyword">final</strong> CSVParser parser = CSVParser.parse(resource, Charset.forName(<span
class="jxr_string">"UTF-8"</span>), format);
-<a class="jxr_linenumber" name="L164" href="#L164">164</a>         <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong>
CSVRecord record : parser) {
-<a class="jxr_linenumber" name="L165" href="#L165">165</a>             String
parsed = Arrays.toString(record.values());
-<a class="jxr_linenumber" name="L166" href="#L166">166</a>             <strong
class="jxr_keyword">if</strong> (checkComments) {
-<a class="jxr_linenumber" name="L167" href="#L167">167</a>                 <strong
class="jxr_keyword">final</strong> String comment = record.getComment().replace(<span
class="jxr_string">"\n"</span>, <span class="jxr_string">"&#92;&#92;n"</span>);
-<a class="jxr_linenumber" name="L168" href="#L168">168</a>                 <strong
class="jxr_keyword">if</strong> (comment != <strong class="jxr_keyword">null</strong>)
{
-<a class="jxr_linenumber" name="L169" href="#L169">169</a>                  
  parsed += <span class="jxr_string">"#"</span> + comment;
-<a class="jxr_linenumber" name="L170" href="#L170">170</a>                 }
-<a class="jxr_linenumber" name="L171" href="#L171">171</a>             }
-<a class="jxr_linenumber" name="L172" href="#L172">172</a>             <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
count = record.size();
-<a class="jxr_linenumber" name="L173" href="#L173">173</a>             assertEquals(testName,
readTestData(), count + <span class="jxr_string">":"</span> + parsed);
-<a class="jxr_linenumber" name="L174" href="#L174">174</a>         }
-<a class="jxr_linenumber" name="L175" href="#L175">175</a>         parser.close();
+<a class="jxr_linenumber" name="L163" href="#L163">163</a>         <strong
class="jxr_keyword">try</strong> (<strong class="jxr_keyword">final</strong>
CSVParser parser = CSVParser.parse(resource, Charset.forName(<span class="jxr_string">"UTF-8"</span>),
format)) {
+<a class="jxr_linenumber" name="L164" href="#L164">164</a>             <strong
class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong>
CSVRecord record : parser) {
+<a class="jxr_linenumber" name="L165" href="#L165">165</a>                 String
parsed = Arrays.toString(record.values());
+<a class="jxr_linenumber" name="L166" href="#L166">166</a>                 <strong
class="jxr_keyword">if</strong> (checkComments) {
+<a class="jxr_linenumber" name="L167" href="#L167">167</a>                  
  <strong class="jxr_keyword">final</strong> String comment = record.getComment().replace(<span
class="jxr_string">"\n"</span>, <span class="jxr_string">"&#92;&#92;n"</span>);
+<a class="jxr_linenumber" name="L168" href="#L168">168</a>                  
  <strong class="jxr_keyword">if</strong> (comment != <strong class="jxr_keyword">null</strong>)
{
+<a class="jxr_linenumber" name="L169" href="#L169">169</a>                  
      parsed += <span class="jxr_string">"#"</span> + comment;
+<a class="jxr_linenumber" name="L170" href="#L170">170</a>                  
  }
+<a class="jxr_linenumber" name="L171" href="#L171">171</a>                 }
+<a class="jxr_linenumber" name="L172" href="#L172">172</a>                 <strong
class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong>
count = record.size();
+<a class="jxr_linenumber" name="L173" href="#L173">173</a>                 assertEquals(testName,
readTestData(), count + <span class="jxr_string">":"</span> + parsed);
+<a class="jxr_linenumber" name="L174" href="#L174">174</a>             }
+<a class="jxr_linenumber" name="L175" href="#L175">175</a>         }
 <a class="jxr_linenumber" name="L176" href="#L176">176</a>     }
 <a class="jxr_linenumber" name="L177" href="#L177">177</a> }
 </pre>

Modified: websites/production/commons/content/proper/commons-csv/xref-test/org/apache/commons/csv/CSVFormatPredefinedTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-csv/xref-test/org/apache/commons/csv/CSVFormatPredefinedTest.html
(original)
+++ websites/production/commons/content/proper/commons-csv/xref-test/org/apache/commons/csv/CSVFormatPredefinedTest.html
Sun Jul 10 19:38:20 2016
@@ -1,70 +1,70 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-<title>CSVFormatPredefinedTest xref</title>
-<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
-</head>
-<body>
-<div id="overview"><a href="../../../../../testapidocs/org/apache/commons/csv/CSVFormatPredefinedTest.html">View
Javadoc</a></div><pre>
-<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
-<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment">
* Licensed to the Apache Software Foundation (ASF) under one or more</em>
-<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment">
* contributor license agreements.  See the NOTICE file distributed with</em>
-<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment">
* this work for additional information regarding copyright ownership.</em>
-<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment">
* The ASF licenses this file to You under the Apache License, Version 2.0</em>
-<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment">
* (the "License"); you may not use this file except in compliance with</em>
-<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment">
* the License.  You may obtain a copy of the License at</em>
-<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment">
*</em>
-<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment">
*      <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
-<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment">
*</em>
-<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment">
* Unless required by applicable law or agreed to in writing, software</em>
-<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment">
* distributed under the License is distributed on an "AS IS" BASIS,</em>
-<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment">
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
-<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment">
* See the License for the specific language governing permissions and</em>
-<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment">
* limitations under the License.</em>
-<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment">
*/</em>
-<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>
org.junit.Assert;
-<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong>
org.junit.Test;
-<a class="jxr_linenumber" name="L22" href="#L22">22</a>  
-<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment">
* Tests {@link CSVFormat.Predefined}.</em>
-<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <em class="jxr_javadoccomment">
*/</em>
-<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/csv/CSVFormatPredefinedTest.html">CSVFormatPredefinedTest</a>
{
-<a class="jxr_linenumber" name="L27" href="#L27">27</a>  
-<a class="jxr_linenumber" name="L28" href="#L28">28</a>      <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">void</strong> test(<strong class="jxr_keyword">final</strong>
CSVFormat format, <strong class="jxr_keyword">final</strong> String enumName)
{
-<a class="jxr_linenumber" name="L29" href="#L29">29</a>          Assert.assertEquals(format,
CSVFormat.Predefined.valueOf(enumName).getFormat());
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>          Assert.assertEquals(format,
CSVFormat.valueOf(enumName));
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>      }
-<a class="jxr_linenumber" name="L32" href="#L32">32</a>  
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>      @Test
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">void</strong> testDefault() {
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>          test(CSVFormat.DEFAULT,
<span class="jxr_string">"Default"</span>);
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>      }
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>  
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>      @Test
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">void</strong> testExcel() {
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>          test(CSVFormat.EXCEL,
<span class="jxr_string">"Excel"</span>);
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>      }
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>  
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>      @Test
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">void</strong> testMySQL() {
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>          test(CSVFormat.MYSQL,
<span class="jxr_string">"MySQL"</span>);
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>      }
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>  
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>      @Test
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">void</strong> testRFC4180() {
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>          test(CSVFormat.RFC4180,
<span class="jxr_string">"RFC4180"</span>);
-<a class="jxr_linenumber" name="L51" href="#L51">51</a>      }
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>  
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>      @Test
-<a class="jxr_linenumber" name="L54" href="#L54">54</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">void</strong> testTDF() {
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>          test(CSVFormat.TDF,
<span class="jxr_string">"TDF"</span>);
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>      }
-<a class="jxr_linenumber" name="L57" href="#L57">57</a>  }
-</pre>
-<hr/>
-<div id="footer">Copyright &#169; 2016 <a href="http://www.apache.org/">The
Apache Software Foundation</a>. All rights reserved.</div>
-</body>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+<title>CSVFormatPredefinedTest xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../testapidocs/org/apache/commons/csv/CSVFormatPredefinedTest.html">View
Javadoc</a></div><pre>
+<a class="jxr_linenumber" name="L1" href="#L1">1</a>   <em class="jxr_comment">/*</em>
+<a class="jxr_linenumber" name="L2" href="#L2">2</a>   <em class="jxr_comment">
* Licensed to the Apache Software Foundation (ASF) under one or more</em>
+<a class="jxr_linenumber" name="L3" href="#L3">3</a>   <em class="jxr_comment">
* contributor license agreements.  See the NOTICE file distributed with</em>
+<a class="jxr_linenumber" name="L4" href="#L4">4</a>   <em class="jxr_comment">
* this work for additional information regarding copyright ownership.</em>
+<a class="jxr_linenumber" name="L5" href="#L5">5</a>   <em class="jxr_comment">
* The ASF licenses this file to You under the Apache License, Version 2.0</em>
+<a class="jxr_linenumber" name="L6" href="#L6">6</a>   <em class="jxr_comment">
* (the "License"); you may not use this file except in compliance with</em>
+<a class="jxr_linenumber" name="L7" href="#L7">7</a>   <em class="jxr_comment">
* the License.  You may obtain a copy of the License at</em>
+<a class="jxr_linenumber" name="L8" href="#L8">8</a>   <em class="jxr_comment">
*</em>
+<a class="jxr_linenumber" name="L9" href="#L9">9</a>   <em class="jxr_comment">
*      <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em>
+<a class="jxr_linenumber" name="L10" href="#L10">10</a>  <em class="jxr_comment">
*</em>
+<a class="jxr_linenumber" name="L11" href="#L11">11</a>  <em class="jxr_comment">
* Unless required by applicable law or agreed to in writing, software</em>
+<a class="jxr_linenumber" name="L12" href="#L12">12</a>  <em class="jxr_comment">
* distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a class="jxr_linenumber" name="L13" href="#L13">13</a>  <em class="jxr_comment">
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a class="jxr_linenumber" name="L14" href="#L14">14</a>  <em class="jxr_comment">
* See the License for the specific language governing permissions and</em>
+<a class="jxr_linenumber" name="L15" href="#L15">15</a>  <em class="jxr_comment">
* limitations under the License.</em>
+<a class="jxr_linenumber" name="L16" href="#L16">16</a>  <em class="jxr_comment">
*/</em>
+<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>
org.junit.Assert;
+<a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong>
org.junit.Test;
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <em class="jxr_javadoccomment">
* Tests {@link CSVFormat.Predefined}.</em>
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <em class="jxr_javadoccomment">
*/</em>
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/csv/CSVFormatPredefinedTest.html">CSVFormatPredefinedTest</a>
{
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>      <strong class="jxr_keyword">private</strong>
<strong class="jxr_keyword">void</strong> test(<strong class="jxr_keyword">final</strong>
CSVFormat format, <strong class="jxr_keyword">final</strong> String enumName)
{
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>          Assert.assertEquals(format,
CSVFormat.Predefined.valueOf(enumName).getFormat());
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>          Assert.assertEquals(format,
CSVFormat.valueOf(enumName));
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>      }
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      @Test
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">void</strong> testDefault() {
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>          test(CSVFormat.DEFAULT,
<span class="jxr_string">"Default"</span>);
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>      }
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>  
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>      @Test
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">void</strong> testExcel() {
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          test(CSVFormat.EXCEL,
<span class="jxr_string">"Excel"</span>);
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>      }
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>  
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>      @Test
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">void</strong> testMySQL() {
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          test(CSVFormat.MYSQL,
<span class="jxr_string">"MySQL"</span>);
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>      }
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>  
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>      @Test
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">void</strong> testRFC4180() {
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>          test(CSVFormat.RFC4180,
<span class="jxr_string">"RFC4180"</span>);
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>      }
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>  
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>      @Test
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>      <strong class="jxr_keyword">public</strong>
<strong class="jxr_keyword">void</strong> testTDF() {
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>          test(CSVFormat.TDF,
<span class="jxr_string">"TDF"</span>);
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>      }
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>  }
+</pre>
+<hr/>
+<div id="footer">Copyright &#169; 2016 <a href="http://www.apache.org/">The
Apache Software Foundation</a>. All rights reserved.</div>
+</body>
 </html>
\ No newline at end of file



Mime
View raw message