commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r916835 [34/41] - in /websites/production/commons/content/proper/commons-dbutils: ./ apidocs/ apidocs/org/apache/commons/dbutils/ apidocs/org/apache/commons/dbutils/class-use/ apidocs/org/apache/commons/dbutils/handlers/ apidocs/org/apache/...
Date Sun, 20 Jul 2014 08:52:25 GMT
Modified: websites/production/commons/content/proper/commons-dbutils/xref-test/org/apache/commons/dbutils/BaseTestCase.html
==============================================================================
--- websites/production/commons/content/proper/commons-dbutils/xref-test/org/apache/commons/dbutils/BaseTestCase.html (original)
+++ websites/production/commons/content/proper/commons-dbutils/xref-test/org/apache/commons/dbutils/BaseTestCase.html Sun Jul 20 08:52:20 2014
@@ -27,112 +27,123 @@
 <a class="jxr_linenumber" name="L19" href="#L19">19</a>  <strong class="jxr_keyword">import</strong> java.math.BigInteger;
 <a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> java.sql.ResultSet;
 <a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> java.sql.ResultSetMetaData;
-<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> java.util.Date;
-<a class="jxr_linenumber" name="L23" href="#L23">23</a>  
-<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> junit.framework.TestCase;
-<a class="jxr_linenumber" name="L25" href="#L25">25</a>  
-<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <em class="jxr_javadoccomment"> * BaseTestCase is the base class for all test cases as well as the "all tests"</em>
-<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <em class="jxr_javadoccomment"> * runner.</em>
-<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <em class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/dbutils/BaseTestCase.html">BaseTestCase</a> <strong class="jxr_keyword">extends</strong> TestCase {
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>  
-<a class="jxr_linenumber" name="L32" href="#L32">32</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String[] columnNames =
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>          <strong class="jxr_keyword">new</strong> String[] {
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>              <span class="jxr_string">"one"</span>,
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>              <span class="jxr_string">"two"</span>,
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>              <span class="jxr_string">"three"</span>,
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>              <span class="jxr_string">"notInBean"</span>,
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>              <span class="jxr_string">"intTest"</span>,
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>              <span class="jxr_string">"integerTest"</span>,
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>              <span class="jxr_string">"nullObjectTest"</span>,
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>              <span class="jxr_string">"nullPrimitiveTest"</span>,
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>              <span class="jxr_string">"notDate"</span>,
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>              <span class="jxr_string">"columnProcessorDoubleTest"</span> };
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>  
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>      <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>  <em class="jxr_javadoccomment">     * The number of columns in the MockResultSet.</em>
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>  <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>      <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> COLS = columnNames.length;
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>  
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>      <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> ResultSetMetaData metaData =
-<a class="jxr_linenumber" name="L51" href="#L51">51</a>          MockResultSetMetaData.create(columnNames);
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>  
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Object[] row1 =
-<a class="jxr_linenumber" name="L54" href="#L54">54</a>          <strong class="jxr_keyword">new</strong> Object[] {
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>              <span class="jxr_string">"1"</span>,
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>              <span class="jxr_string">"2"</span>,
-<a class="jxr_linenumber" name="L57" href="#L57">57</a>              <span class="jxr_string">"3"</span>,
-<a class="jxr_linenumber" name="L58" href="#L58">58</a>              <span class="jxr_string">"  notInBean  "</span>,
-<a class="jxr_linenumber" name="L59" href="#L59">59</a>              Integer.valueOf(1),
-<a class="jxr_linenumber" name="L60" href="#L60">60</a>              Integer.valueOf(2),
-<a class="jxr_linenumber" name="L61" href="#L61">61</a>              <strong class="jxr_keyword">null</strong>,
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>              <strong class="jxr_keyword">null</strong>,
-<a class="jxr_linenumber" name="L63" href="#L63">63</a>              <strong class="jxr_keyword">new</strong> Date(),
-<a class="jxr_linenumber" name="L64" href="#L64">64</a>              BigInteger.valueOf(13)};
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>  
-<a class="jxr_linenumber" name="L66" href="#L66">66</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Object[] row2 =
-<a class="jxr_linenumber" name="L67" href="#L67">67</a>          <strong class="jxr_keyword">new</strong> Object[] {
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>              <span class="jxr_string">"4"</span>,
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>              <span class="jxr_string">"5"</span>,
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>              <span class="jxr_string">"6"</span>,
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>              <span class="jxr_string">"  notInBean  "</span>,
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>              Integer.valueOf(3),
-<a class="jxr_linenumber" name="L73" href="#L73">73</a>              Integer.valueOf(4),
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>              <strong class="jxr_keyword">null</strong>,
-<a class="jxr_linenumber" name="L75" href="#L75">75</a>              <strong class="jxr_keyword">null</strong>,
-<a class="jxr_linenumber" name="L76" href="#L76">76</a>              <strong class="jxr_keyword">new</strong> Date(),
-<a class="jxr_linenumber" name="L77" href="#L77">77</a>              BigInteger.valueOf(13)};
-<a class="jxr_linenumber" name="L78" href="#L78">78</a>  
-<a class="jxr_linenumber" name="L79" href="#L79">79</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Object[][] rows = <strong class="jxr_keyword">new</strong> Object[][] { row1, row2 };
-<a class="jxr_linenumber" name="L80" href="#L80">80</a>  
-<a class="jxr_linenumber" name="L81" href="#L81">81</a>      <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L82" href="#L82">82</a>  <em class="jxr_javadoccomment">     * The number of rows in the MockResultSet.</em>
-<a class="jxr_linenumber" name="L83" href="#L83">83</a>  <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L84" href="#L84">84</a>      <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> ROWS = rows.length;
-<a class="jxr_linenumber" name="L85" href="#L85">85</a>  
-<a class="jxr_linenumber" name="L86" href="#L86">86</a>      <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L87" href="#L87">87</a>  <em class="jxr_javadoccomment">     * The ResultSet all test methods will use.</em>
-<a class="jxr_linenumber" name="L88" href="#L88">88</a>  <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L89" href="#L89">89</a>      <strong class="jxr_keyword">protected</strong> ResultSet rs = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L90" href="#L90">90</a>  
-<a class="jxr_linenumber" name="L91" href="#L91">91</a>      <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L92" href="#L92">92</a>  <em class="jxr_javadoccomment">     * A ResultSet with 0 rows.</em>
-<a class="jxr_linenumber" name="L93" href="#L93">93</a>  <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L94" href="#L94">94</a>      <strong class="jxr_keyword">protected</strong> ResultSet emptyResultSet = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L95" href="#L95">95</a>  
-<a class="jxr_linenumber" name="L96" href="#L96">96</a>      <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L97" href="#L97">97</a>  <em class="jxr_javadoccomment">     * This is called before each test method so ResultSet will be fresh each</em>
-<a class="jxr_linenumber" name="L98" href="#L98">98</a>  <em class="jxr_javadoccomment">     * time.</em>
-<a class="jxr_linenumber" name="L99" href="#L99">99</a>  <em class="jxr_javadoccomment">     * @see junit.framework.TestCase#setUp()</em>
-<a class="jxr_linenumber" name="L100" href="#L100">100</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L101" href="#L101">101</a>     @Override
-<a class="jxr_linenumber" name="L102" href="#L102">102</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="L103" href="#L103">103</a>         <strong class="jxr_keyword">super</strong>.setUp();
-<a class="jxr_linenumber" name="L104" href="#L104">104</a> 
-<a class="jxr_linenumber" name="L105" href="#L105">105</a>         rs = <strong class="jxr_keyword">this</strong>.createMockResultSet();
-<a class="jxr_linenumber" name="L106" href="#L106">106</a>         emptyResultSet = MockResultSet.create(metaData, <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="L107" href="#L107">107</a>     }
-<a class="jxr_linenumber" name="L108" href="#L108">108</a> 
-<a class="jxr_linenumber" name="L109" href="#L109">109</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L110" href="#L110">110</a> <em class="jxr_javadoccomment">     * Creates a freshly initialized ResultSet.</em>
+<a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> java.sql.Timestamp;
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> java.util.Date;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> junit.framework.TestCase;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <em class="jxr_javadoccomment"> * BaseTestCase is the base class for all test cases as well as the "all tests"</em>
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <em class="jxr_javadoccomment"> * runner.</em>
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/dbutils/BaseTestCase.html">BaseTestCase</a> <strong class="jxr_keyword">extends</strong> TestCase {
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String[] columnNames =
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>          <strong class="jxr_keyword">new</strong> String[] {
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>              <span class="jxr_string">"one"</span>,
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>              <span class="jxr_string">"two"</span>,
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>              <span class="jxr_string">"three"</span>,
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>              <span class="jxr_string">"notInBean"</span>,
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>              <span class="jxr_string">"intTest"</span>,
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>              <span class="jxr_string">"integerTest"</span>,
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>              <span class="jxr_string">"nullObjectTest"</span>,
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>              <span class="jxr_string">"nullPrimitiveTest"</span>,
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>              <span class="jxr_string">"notDate"</span>,
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>              <span class="jxr_string">"columnProcessorDoubleTest"</span> };
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>  
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>  <em class="jxr_javadoccomment">     * The number of columns in the MockResultSet.</em>
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>      <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> COLS = columnNames.length;
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>  
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>      <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> ResultSetMetaData metaData =
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          MockResultSetMetaData.create(columnNames);
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>  
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>  <em class="jxr_javadoccomment">     * A Timestamp for test purposes having 9 decimals</em>
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>      <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Timestamp ts789456123;
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>  
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>      <strong class="jxr_keyword">static</strong> {
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          ts789456123 = <strong class="jxr_keyword">new</strong> Timestamp(<strong class="jxr_keyword">new</strong> Date().getTime());
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>          ts789456123.setNanos(789456123);
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>      }
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>      
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Object[] row1 =
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          <strong class="jxr_keyword">new</strong> Object[] {
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>              <span class="jxr_string">"1"</span>,
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>              <span class="jxr_string">"2"</span>,
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>              <span class="jxr_string">"THREE"</span>,
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>              <span class="jxr_string">"  notInBean  "</span>,
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>              Integer.valueOf(1),
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>              Integer.valueOf(2),
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>              <strong class="jxr_keyword">null</strong>,
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>              <strong class="jxr_keyword">null</strong>,
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>              <strong class="jxr_keyword">new</strong> Date(),
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>              BigInteger.valueOf(13)};
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>  
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Object[] row2 =
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>          <strong class="jxr_keyword">new</strong> Object[] {
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>              <span class="jxr_string">"4"</span>,
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>              <span class="jxr_string">"5"</span>,
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>              <span class="jxr_string">"SIX"</span>,
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>              <span class="jxr_string">"  notInBean  "</span>,
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>              Integer.valueOf(3),
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>              Integer.valueOf(4),
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>              <strong class="jxr_keyword">null</strong>,
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>              <strong class="jxr_keyword">null</strong>,
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>              ts789456123,
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>              BigInteger.valueOf(13)};
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>  
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Object[][] rows = <strong class="jxr_keyword">new</strong> Object[][] { row1, row2 };
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>  
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>  <em class="jxr_javadoccomment">     * The number of rows in the MockResultSet.</em>
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>      <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> ROWS = rows.length;
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>  
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>  <em class="jxr_javadoccomment">     * The ResultSet all test methods will use.</em>
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>     <strong class="jxr_keyword">protected</strong> ResultSet rs = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L101" href="#L101">101</a> 
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L103" href="#L103">103</a> <em class="jxr_javadoccomment">     * A ResultSet with 0 rows.</em>
+<a class="jxr_linenumber" name="L104" href="#L104">104</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>     <strong class="jxr_keyword">protected</strong> ResultSet emptyResultSet = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L106" href="#L106">106</a> 
+<a class="jxr_linenumber" name="L107" href="#L107">107</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L108" href="#L108">108</a> <em class="jxr_javadoccomment">     * This is called before each test method so ResultSet will be fresh each</em>
+<a class="jxr_linenumber" name="L109" href="#L109">109</a> <em class="jxr_javadoccomment">     * time.</em>
+<a class="jxr_linenumber" name="L110" href="#L110">110</a> <em class="jxr_javadoccomment">     * @see junit.framework.TestCase#setUp()</em>
 <a class="jxr_linenumber" name="L111" href="#L111">111</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L112" href="#L112">112</a>     <strong class="jxr_keyword">protected</strong> ResultSet createMockResultSet() {
-<a class="jxr_linenumber" name="L113" href="#L113">113</a>         <strong class="jxr_keyword">return</strong> MockResultSet.create(metaData, rows);
-<a class="jxr_linenumber" name="L114" href="#L114">114</a>     }
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>     @Override
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>     <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> setUp() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>         <strong class="jxr_keyword">super</strong>.setUp();
 <a class="jxr_linenumber" name="L115" href="#L115">115</a> 
-<a class="jxr_linenumber" name="L116" href="#L116">116</a>     <em class="jxr_comment">// Test which allows Eclipse to be run on full project (avoids no tests found)</em>
-<a class="jxr_linenumber" name="L117" href="#L117">117</a>     <em class="jxr_comment">// check that the rows are valid for the column definition</em>
-<a class="jxr_linenumber" name="L118" href="#L118">118</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCheckDataSizes() {
-<a class="jxr_linenumber" name="L119" href="#L119">119</a>         assertEquals(<span class="jxr_string">"Row 1 must contain correct number of columns"</span>, columnNames.length, row1.length);
-<a class="jxr_linenumber" name="L120" href="#L120">120</a>         assertEquals(<span class="jxr_string">"Row 1 must contain correct number of columns"</span>, columnNames.length, row2.length);
-<a class="jxr_linenumber" name="L121" href="#L121">121</a>     }
-<a class="jxr_linenumber" name="L122" href="#L122">122</a> 
-<a class="jxr_linenumber" name="L123" href="#L123">123</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testResultSets() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="L124" href="#L124">124</a>         assertFalse(<span class="jxr_string">"emptyResultSet should be empty"</span>, emptyResultSet.next());
-<a class="jxr_linenumber" name="L125" href="#L125">125</a>         <em class="jxr_comment">// fails in SqlNullCheckedResultSetTest assertTrue("rs should not be empty", rs.next());</em>
-<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="L116" href="#L116">116</a>         rs = <strong class="jxr_keyword">this</strong>.createMockResultSet();
+<a class="jxr_linenumber" name="L117" href="#L117">117</a>         emptyResultSet = MockResultSet.create(metaData, <strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>     }
+<a class="jxr_linenumber" name="L119" href="#L119">119</a> 
+<a class="jxr_linenumber" name="L120" href="#L120">120</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L121" href="#L121">121</a> <em class="jxr_javadoccomment">     * Creates a freshly initialized ResultSet.</em>
+<a class="jxr_linenumber" name="L122" href="#L122">122</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>     <strong class="jxr_keyword">protected</strong> ResultSet createMockResultSet() {
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>         <strong class="jxr_keyword">return</strong> MockResultSet.create(metaData, rows);
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>     }
+<a class="jxr_linenumber" name="L126" href="#L126">126</a> 
+<a class="jxr_linenumber" name="L127" href="#L127">127</a>     <em class="jxr_comment">// Test which allows Eclipse to be run on full project (avoids no tests found)</em>
+<a class="jxr_linenumber" name="L128" href="#L128">128</a>     <em class="jxr_comment">// check that the rows are valid for the column definition</em>
+<a class="jxr_linenumber" name="L129" href="#L129">129</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCheckDataSizes() {
+<a class="jxr_linenumber" name="L130" href="#L130">130</a>         assertEquals(<span class="jxr_string">"Row 1 must contain correct number of columns"</span>, columnNames.length, row1.length);
+<a class="jxr_linenumber" name="L131" href="#L131">131</a>         assertEquals(<span class="jxr_string">"Row 1 must contain correct number of columns"</span>, columnNames.length, row2.length);
+<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>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testResultSets() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L135" href="#L135">135</a>         assertFalse(<span class="jxr_string">"emptyResultSet should be empty"</span>, emptyResultSet.next());
+<a class="jxr_linenumber" name="L136" href="#L136">136</a>         <em class="jxr_comment">// fails in SqlNullCheckedResultSetTest assertTrue("rs should not be empty", rs.next());</em>
+<a class="jxr_linenumber" name="L137" href="#L137">137</a>     }
+<a class="jxr_linenumber" name="L138" href="#L138">138</a> }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2002&#x2013;2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-dbutils/xref-test/org/apache/commons/dbutils/BasicRowProcessorTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-dbutils/xref-test/org/apache/commons/dbutils/BasicRowProcessorTest.html (original)
+++ websites/production/commons/content/proper/commons-dbutils/xref-test/org/apache/commons/dbutils/BasicRowProcessorTest.html Sun Jul 20 08:52:20 2014
@@ -28,123 +28,145 @@
 <a class="jxr_linenumber" name="L20" href="#L20">20</a>  <strong class="jxr_keyword">import</strong> java.text.DateFormat;
 <a class="jxr_linenumber" name="L21" href="#L21">21</a>  <strong class="jxr_keyword">import</strong> java.text.ParseException;
 <a class="jxr_linenumber" name="L22" href="#L22">22</a>  <strong class="jxr_keyword">import</strong> java.text.SimpleDateFormat;
-<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> java.util.List;
-<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> java.util.Locale;
-<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> java.util.Map;
-<a class="jxr_linenumber" name="L26" href="#L26">26</a>  
-<a class="jxr_linenumber" name="L27" href="#L27">27</a>  <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <em class="jxr_javadoccomment"> * Test the BasicRowProcessor class.</em>
-<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <em class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/dbutils/BasicRowProcessorTest.html">BasicRowProcessorTest</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../org/apache/commons/dbutils/BaseTestCase.html">BaseTestCase</a> {
-<a class="jxr_linenumber" name="L31" href="#L31">31</a>  
-<a class="jxr_linenumber" name="L32" href="#L32">32</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> RowProcessor processor = <strong class="jxr_keyword">new</strong> BasicRowProcessor();
-<a class="jxr_linenumber" name="L33" href="#L33">33</a>  
-<a class="jxr_linenumber" name="L34" href="#L34">34</a>      <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>  <em class="jxr_javadoccomment">     * Format that matches Date.toString().</em>
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>  <em class="jxr_javadoccomment">     * Sun Mar 14 15:19:15 MST 2004</em>
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>  <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> DateFormat datef =
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>          <strong class="jxr_keyword">new</strong> SimpleDateFormat(<span class="jxr_string">"EEE MMM dd HH:mm:ss zzz yyyy"</span>, Locale.US);
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>  
-<a class="jxr_linenumber" name="L41" href="#L41">41</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testToArray() <strong class="jxr_keyword">throws</strong> SQLException {
-<a class="jxr_linenumber" name="L42" href="#L42">42</a>  
-<a class="jxr_linenumber" name="L43" href="#L43">43</a>          Object[] a = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>          assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>          a = processor.toArray(<strong class="jxr_keyword">this</strong>.rs);
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>          assertEquals(COLS, a.length);
-<a class="jxr_linenumber" name="L47" href="#L47">47</a>          assertEquals(<span class="jxr_string">"1"</span>, a[0]);
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>          assertEquals(<span class="jxr_string">"2"</span>, a[1]);
-<a class="jxr_linenumber" name="L49" href="#L49">49</a>          assertEquals(<span class="jxr_string">"3"</span>, a[2]);
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>  
-<a class="jxr_linenumber" name="L51" href="#L51">51</a>          assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>          a = processor.toArray(<strong class="jxr_keyword">this</strong>.rs);
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>          assertEquals(COLS, a.length);
-<a class="jxr_linenumber" name="L54" href="#L54">54</a>  
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>          assertEquals(<span class="jxr_string">"4"</span>, a[0]);
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>          assertEquals(<span class="jxr_string">"5"</span>, a[1]);
-<a class="jxr_linenumber" name="L57" href="#L57">57</a>          assertEquals(<span class="jxr_string">"6"</span>, a[2]);
-<a class="jxr_linenumber" name="L58" href="#L58">58</a>  
-<a class="jxr_linenumber" name="L59" href="#L59">59</a>          assertFalse(<strong class="jxr_keyword">this</strong>.rs.next());
-<a class="jxr_linenumber" name="L60" href="#L60">60</a>      }
-<a class="jxr_linenumber" name="L61" href="#L61">61</a>  
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testToBean() <strong class="jxr_keyword">throws</strong> SQLException, ParseException {
-<a class="jxr_linenumber" name="L63" href="#L63">63</a>  
-<a class="jxr_linenumber" name="L64" href="#L64">64</a>          <a href="../../../../org/apache/commons/dbutils/TestBean.html">TestBean</a> row = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>          assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
-<a class="jxr_linenumber" name="L66" href="#L66">66</a>          row = processor.toBean(<strong class="jxr_keyword">this</strong>.rs, TestBean.<strong class="jxr_keyword">class</strong>);
-<a class="jxr_linenumber" name="L67" href="#L67">67</a>          assertEquals(<span class="jxr_string">"1"</span>, row.getOne());
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>          assertEquals(<span class="jxr_string">"2"</span>, row.getTwo());
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>          assertEquals(<span class="jxr_string">"3"</span>, row.getThree());
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>          assertEquals(<span class="jxr_string">"not set"</span>, row.getDoNotSet());
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>  
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>          assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
-<a class="jxr_linenumber" name="L73" href="#L73">73</a>          row = processor.toBean(<strong class="jxr_keyword">this</strong>.rs, TestBean.<strong class="jxr_keyword">class</strong>);
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>  
-<a class="jxr_linenumber" name="L75" href="#L75">75</a>          assertEquals(<span class="jxr_string">"4"</span>, row.getOne());
-<a class="jxr_linenumber" name="L76" href="#L76">76</a>          assertEquals(<span class="jxr_string">"5"</span>, row.getTwo());
-<a class="jxr_linenumber" name="L77" href="#L77">77</a>          assertEquals(<span class="jxr_string">"6"</span>, row.getThree());
-<a class="jxr_linenumber" name="L78" href="#L78">78</a>          assertEquals(<span class="jxr_string">"not set"</span>, row.getDoNotSet());
-<a class="jxr_linenumber" name="L79" href="#L79">79</a>          assertEquals(3, row.getIntTest());
-<a class="jxr_linenumber" name="L80" href="#L80">80</a>          assertEquals(Integer.valueOf(4), row.getIntegerTest());
-<a class="jxr_linenumber" name="L81" href="#L81">81</a>          assertEquals(<strong class="jxr_keyword">null</strong>, row.getNullObjectTest());
-<a class="jxr_linenumber" name="L82" href="#L82">82</a>          assertEquals(0, row.getNullPrimitiveTest());
-<a class="jxr_linenumber" name="L83" href="#L83">83</a>          <em class="jxr_comment">// test date -&gt; string handling</em>
-<a class="jxr_linenumber" name="L84" href="#L84">84</a>          assertNotNull(row.getNotDate());
-<a class="jxr_linenumber" name="L85" href="#L85">85</a>          assertTrue(!<span class="jxr_string">"not a date"</span>.equals(row.getNotDate()));
-<a class="jxr_linenumber" name="L86" href="#L86">86</a>          datef.parse(row.getNotDate());
-<a class="jxr_linenumber" name="L87" href="#L87">87</a>  
-<a class="jxr_linenumber" name="L88" href="#L88">88</a>          assertFalse(<strong class="jxr_keyword">this</strong>.rs.next());
-<a class="jxr_linenumber" name="L89" href="#L89">89</a>  
-<a class="jxr_linenumber" name="L90" href="#L90">90</a>      }
-<a class="jxr_linenumber" name="L91" href="#L91">91</a>  
-<a class="jxr_linenumber" name="L92" href="#L92">92</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testToBeanList() <strong class="jxr_keyword">throws</strong> SQLException, ParseException {
-<a class="jxr_linenumber" name="L93" href="#L93">93</a>  
-<a class="jxr_linenumber" name="L94" href="#L94">94</a>          List&lt;TestBean&gt; list = processor.toBeanList(<strong class="jxr_keyword">this</strong>.rs, TestBean.<strong class="jxr_keyword">class</strong>);
-<a class="jxr_linenumber" name="L95" href="#L95">95</a>          assertNotNull(list);
-<a class="jxr_linenumber" name="L96" href="#L96">96</a>          assertEquals(ROWS, list.size());
-<a class="jxr_linenumber" name="L97" href="#L97">97</a>  
-<a class="jxr_linenumber" name="L98" href="#L98">98</a>          <a href="../../../../org/apache/commons/dbutils/TestBean.html">TestBean</a> b = list.get(0);
-<a class="jxr_linenumber" name="L99" href="#L99">99</a>          assertEquals(<span class="jxr_string">"1"</span>, b.getOne());
-<a class="jxr_linenumber" name="L100" href="#L100">100</a>         assertEquals(<span class="jxr_string">"2"</span>, b.getTwo());
-<a class="jxr_linenumber" name="L101" href="#L101">101</a>         assertEquals(<span class="jxr_string">"3"</span>, b.getThree());
-<a class="jxr_linenumber" name="L102" href="#L102">102</a>         assertEquals(<span class="jxr_string">"not set"</span>, b.getDoNotSet());
-<a class="jxr_linenumber" name="L103" href="#L103">103</a> 
-<a class="jxr_linenumber" name="L104" href="#L104">104</a>         b = list.get(1);
-<a class="jxr_linenumber" name="L105" href="#L105">105</a>         assertEquals(<span class="jxr_string">"4"</span>, b.getOne());
-<a class="jxr_linenumber" name="L106" href="#L106">106</a>         assertEquals(<span class="jxr_string">"5"</span>, b.getTwo());
-<a class="jxr_linenumber" name="L107" href="#L107">107</a>         assertEquals(<span class="jxr_string">"6"</span>, b.getThree());
-<a class="jxr_linenumber" name="L108" href="#L108">108</a>         assertEquals(<span class="jxr_string">"not set"</span>, b.getDoNotSet());
-<a class="jxr_linenumber" name="L109" href="#L109">109</a>         assertEquals(3, b.getIntTest());
-<a class="jxr_linenumber" name="L110" href="#L110">110</a>         assertEquals(Integer.valueOf(4), b.getIntegerTest());
-<a class="jxr_linenumber" name="L111" href="#L111">111</a>         assertEquals(<strong class="jxr_keyword">null</strong>, b.getNullObjectTest());
-<a class="jxr_linenumber" name="L112" href="#L112">112</a>         assertEquals(0, b.getNullPrimitiveTest());
-<a class="jxr_linenumber" name="L113" href="#L113">113</a>         <em class="jxr_comment">// test date -&gt; string handling</em>
-<a class="jxr_linenumber" name="L114" href="#L114">114</a>         assertNotNull(b.getNotDate());
-<a class="jxr_linenumber" name="L115" href="#L115">115</a>         assertTrue(!<span class="jxr_string">"not a date"</span>.equals(b.getNotDate()));
-<a class="jxr_linenumber" name="L116" href="#L116">116</a>         datef.parse(b.getNotDate());
-<a class="jxr_linenumber" name="L117" href="#L117">117</a>     }
-<a class="jxr_linenumber" name="L118" href="#L118">118</a> 
-<a class="jxr_linenumber" name="L119" href="#L119">119</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testToMap() <strong class="jxr_keyword">throws</strong> SQLException {
+<a class="jxr_linenumber" name="L23" href="#L23">23</a>  <strong class="jxr_keyword">import</strong> java.util.Iterator;
+<a class="jxr_linenumber" name="L24" href="#L24">24</a>  <strong class="jxr_keyword">import</strong> java.util.List;
+<a class="jxr_linenumber" name="L25" href="#L25">25</a>  <strong class="jxr_keyword">import</strong> java.util.Locale;
+<a class="jxr_linenumber" name="L26" href="#L26">26</a>  <strong class="jxr_keyword">import</strong> java.util.Map;
+<a class="jxr_linenumber" name="L27" href="#L27">27</a>  
+<a class="jxr_linenumber" name="L28" href="#L28">28</a>  <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L29" href="#L29">29</a>  <em class="jxr_javadoccomment"> * Test the BasicRowProcessor class.</em>
+<a class="jxr_linenumber" name="L30" href="#L30">30</a>  <em class="jxr_javadoccomment"> */</em>
+<a class="jxr_linenumber" name="L31" href="#L31">31</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/dbutils/BasicRowProcessorTest.html">BasicRowProcessorTest</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../org/apache/commons/dbutils/BaseTestCase.html">BaseTestCase</a> {
+<a class="jxr_linenumber" name="L32" href="#L32">32</a>  
+<a class="jxr_linenumber" name="L33" href="#L33">33</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> RowProcessor processor = <strong class="jxr_keyword">new</strong> BasicRowProcessor();
+<a class="jxr_linenumber" name="L34" href="#L34">34</a>  
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>      <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  <em class="jxr_javadoccomment">     * Format that matches Date.toString().</em>
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>  <em class="jxr_javadoccomment">     * Sun Mar 14 15:19:15 MST 2004</em>
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>  <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> DateFormat datef =
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          <strong class="jxr_keyword">new</strong> SimpleDateFormat(<span class="jxr_string">"EEE MMM dd HH:mm:ss zzz yyyy"</span>, Locale.US);
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>  
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testToArray() <strong class="jxr_keyword">throws</strong> SQLException {
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>  
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>          Object[] a = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>          assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          a = processor.toArray(<strong class="jxr_keyword">this</strong>.rs);
+<a class="jxr_linenumber" name="L47" href="#L47">47</a>          assertEquals(COLS, a.length);
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          assertEquals(<span class="jxr_string">"1"</span>, a[0]);
+<a class="jxr_linenumber" name="L49" href="#L49">49</a>          assertEquals(<span class="jxr_string">"2"</span>, a[1]);
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>          assertEquals(<span class="jxr_string">"THREE"</span>, a[2]);
+<a class="jxr_linenumber" name="L51" href="#L51">51</a>  
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>          a = processor.toArray(<strong class="jxr_keyword">this</strong>.rs);
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          assertEquals(COLS, a.length);
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>  
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>          assertEquals(<span class="jxr_string">"4"</span>, a[0]);
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>          assertEquals(<span class="jxr_string">"5"</span>, a[1]);
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>          assertEquals(<span class="jxr_string">"SIX"</span>, a[2]);
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>  
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          assertFalse(<strong class="jxr_keyword">this</strong>.rs.next());
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>      }
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>  
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testToBean() <strong class="jxr_keyword">throws</strong> SQLException, ParseException {
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>  
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          <a href="../../../../org/apache/commons/dbutils/TestBean.html">TestBean</a> row = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>          assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>          row = processor.toBean(<strong class="jxr_keyword">this</strong>.rs, TestBean.<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          assertEquals(<span class="jxr_string">"1"</span>, row.getOne());
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>          assertEquals(<span class="jxr_string">"2"</span>, row.getTwo());
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>          assertEquals(TestBean.Ordinal.THREE, row.getThree());
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>          assertEquals(<span class="jxr_string">"not set"</span>, row.getDoNotSet());
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>  
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>          assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>          row = processor.toBean(<strong class="jxr_keyword">this</strong>.rs, TestBean.<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>  
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>          assertEquals(<span class="jxr_string">"4"</span>, row.getOne());
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>          assertEquals(<span class="jxr_string">"5"</span>, row.getTwo());
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>          assertEquals(TestBean.Ordinal.SIX, row.getThree());
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>          assertEquals(<span class="jxr_string">"not set"</span>, row.getDoNotSet());
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>          assertEquals(3, row.getIntTest());
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>          assertEquals(Integer.valueOf(4), row.getIntegerTest());
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>          assertEquals(<strong class="jxr_keyword">null</strong>, row.getNullObjectTest());
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>          assertEquals(0, row.getNullPrimitiveTest());
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>          <em class="jxr_comment">// test date -&gt; string handling</em>
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>          assertNotNull(row.getNotDate());
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>          assertTrue(!<span class="jxr_string">"not a date"</span>.equals(row.getNotDate()));
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>          assertTrue(row.getNotDate().endsWith(<span class="jxr_string">"789456123"</span>));
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>  
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>          assertFalse(<strong class="jxr_keyword">this</strong>.rs.next());
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>  
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>      }
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>  
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testToBeanList() <strong class="jxr_keyword">throws</strong> SQLException, ParseException {
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>  
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>          List&lt;TestBean&gt; list = processor.toBeanList(<strong class="jxr_keyword">this</strong>.rs, TestBean.<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>          assertNotNull(list);
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>          assertEquals(ROWS, list.size());
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>  
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>          <a href="../../../../org/apache/commons/dbutils/TestBean.html">TestBean</a> b = list.get(0);
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>         assertEquals(<span class="jxr_string">"1"</span>, b.getOne());
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>         assertEquals(<span class="jxr_string">"2"</span>, b.getTwo());
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>         assertEquals(TestBean.Ordinal.THREE, b.getThree());
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>         assertEquals(<span class="jxr_string">"not set"</span>, b.getDoNotSet());
+<a class="jxr_linenumber" name="L104" href="#L104">104</a>         datef.parse(b.getNotDate());
+<a class="jxr_linenumber" name="L105" href="#L105">105</a> 
+<a class="jxr_linenumber" name="L106" href="#L106">106</a>         b = list.get(1);
+<a class="jxr_linenumber" name="L107" href="#L107">107</a>         assertEquals(<span class="jxr_string">"4"</span>, b.getOne());
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>         assertEquals(<span class="jxr_string">"5"</span>, b.getTwo());
+<a class="jxr_linenumber" name="L109" href="#L109">109</a>         assertEquals(TestBean.Ordinal.SIX, b.getThree());
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>         assertEquals(<span class="jxr_string">"not set"</span>, b.getDoNotSet());
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>         assertEquals(3, b.getIntTest());
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>         assertEquals(Integer.valueOf(4), b.getIntegerTest());
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>         assertEquals(<strong class="jxr_keyword">null</strong>, b.getNullObjectTest());
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>         assertEquals(0, b.getNullPrimitiveTest());
+<a class="jxr_linenumber" name="L115" href="#L115">115</a>         <em class="jxr_comment">// test date -&gt; string handling</em>
+<a class="jxr_linenumber" name="L116" href="#L116">116</a>         assertNotNull(b.getNotDate());
+<a class="jxr_linenumber" name="L117" href="#L117">117</a>         assertTrue(!<span class="jxr_string">"not a date"</span>.equals(b.getNotDate()));
+<a class="jxr_linenumber" name="L118" href="#L118">118</a>         assertTrue(b.getNotDate().endsWith(<span class="jxr_string">"789456123"</span>));
+<a class="jxr_linenumber" name="L119" href="#L119">119</a>     }
 <a class="jxr_linenumber" name="L120" href="#L120">120</a> 
-<a class="jxr_linenumber" name="L121" href="#L121">121</a>         assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
-<a class="jxr_linenumber" name="L122" href="#L122">122</a>         Map&lt;String, Object&gt; m = processor.toMap(<strong class="jxr_keyword">this</strong>.rs);
-<a class="jxr_linenumber" name="L123" href="#L123">123</a>         assertEquals(COLS, m.keySet().size());
-<a class="jxr_linenumber" name="L124" href="#L124">124</a>         assertEquals(<span class="jxr_string">"1"</span>, m.get(<span class="jxr_string">"one"</span>));
-<a class="jxr_linenumber" name="L125" href="#L125">125</a>         assertEquals(<span class="jxr_string">"2"</span>, m.get(<span class="jxr_string">"TWO"</span>));
-<a class="jxr_linenumber" name="L126" href="#L126">126</a>         assertEquals(<span class="jxr_string">"3"</span>, m.get(<span class="jxr_string">"Three"</span>));
-<a class="jxr_linenumber" name="L127" href="#L127">127</a> 
-<a class="jxr_linenumber" name="L128" href="#L128">128</a>         assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
-<a class="jxr_linenumber" name="L129" href="#L129">129</a>         m = processor.toMap(<strong class="jxr_keyword">this</strong>.rs);
-<a class="jxr_linenumber" name="L130" href="#L130">130</a>         assertEquals(COLS, m.keySet().size());
-<a class="jxr_linenumber" name="L131" href="#L131">131</a> 
-<a class="jxr_linenumber" name="L132" href="#L132">132</a>         assertEquals(<span class="jxr_string">"4"</span>, m.get(<span class="jxr_string">"One"</span>)); <em class="jxr_comment">// case shouldn't matter</em>
-<a class="jxr_linenumber" name="L133" href="#L133">133</a>         assertEquals(<span class="jxr_string">"5"</span>, m.get(<span class="jxr_string">"two"</span>));
-<a class="jxr_linenumber" name="L134" href="#L134">134</a>         assertEquals(<span class="jxr_string">"6"</span>, m.get(<span class="jxr_string">"THREE"</span>));
-<a class="jxr_linenumber" name="L135" href="#L135">135</a> 
-<a class="jxr_linenumber" name="L136" href="#L136">136</a>         assertFalse(<strong class="jxr_keyword">this</strong>.rs.next());
-<a class="jxr_linenumber" name="L137" href="#L137">137</a>     }
-<a class="jxr_linenumber" name="L138" href="#L138">138</a> 
-<a class="jxr_linenumber" name="L139" href="#L139">139</a> }
+<a class="jxr_linenumber" name="L121" href="#L121">121</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testToMap() <strong class="jxr_keyword">throws</strong> SQLException {
+<a class="jxr_linenumber" name="L122" href="#L122">122</a> 
+<a class="jxr_linenumber" name="L123" href="#L123">123</a>         assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
+<a class="jxr_linenumber" name="L124" href="#L124">124</a>         Map&lt;String, Object&gt; m = processor.toMap(<strong class="jxr_keyword">this</strong>.rs);
+<a class="jxr_linenumber" name="L125" href="#L125">125</a>         assertEquals(COLS, m.keySet().size());
+<a class="jxr_linenumber" name="L126" href="#L126">126</a>         assertEquals(<span class="jxr_string">"1"</span>, m.get(<span class="jxr_string">"one"</span>));
+<a class="jxr_linenumber" name="L127" href="#L127">127</a>         assertEquals(<span class="jxr_string">"2"</span>, m.get(<span class="jxr_string">"TWO"</span>));
+<a class="jxr_linenumber" name="L128" href="#L128">128</a>         assertEquals(<span class="jxr_string">"THREE"</span>, m.get(<span class="jxr_string">"Three"</span>));
+<a class="jxr_linenumber" name="L129" href="#L129">129</a> 
+<a class="jxr_linenumber" name="L130" href="#L130">130</a>         assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
+<a class="jxr_linenumber" name="L131" href="#L131">131</a>         m = processor.toMap(<strong class="jxr_keyword">this</strong>.rs);
+<a class="jxr_linenumber" name="L132" href="#L132">132</a>         assertEquals(COLS, m.keySet().size());
+<a class="jxr_linenumber" name="L133" href="#L133">133</a> 
+<a class="jxr_linenumber" name="L134" href="#L134">134</a>         assertEquals(<span class="jxr_string">"4"</span>, m.get(<span class="jxr_string">"One"</span>)); <em class="jxr_comment">// case shouldn't matter</em>
+<a class="jxr_linenumber" name="L135" href="#L135">135</a>         assertEquals(<span class="jxr_string">"5"</span>, m.get(<span class="jxr_string">"two"</span>));
+<a class="jxr_linenumber" name="L136" href="#L136">136</a>         assertEquals(<span class="jxr_string">"SIX"</span>, m.get(<span class="jxr_string">"THREE"</span>));
+<a class="jxr_linenumber" name="L137" href="#L137">137</a> 
+<a class="jxr_linenumber" name="L138" href="#L138">138</a>         assertFalse(<strong class="jxr_keyword">this</strong>.rs.next());
+<a class="jxr_linenumber" name="L139" href="#L139">139</a>     }
+<a class="jxr_linenumber" name="L140" href="#L140">140</a> 
+<a class="jxr_linenumber" name="L141" href="#L141">141</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testToMapOrdering() <strong class="jxr_keyword">throws</strong> SQLException {
+<a class="jxr_linenumber" name="L142" href="#L142">142</a> 
+<a class="jxr_linenumber" name="L143" href="#L143">143</a>         assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
+<a class="jxr_linenumber" name="L144" href="#L144">144</a>         Map&lt;String, Object&gt; m = processor.toMap(<strong class="jxr_keyword">this</strong>.rs);
+<a class="jxr_linenumber" name="L145" href="#L145">145</a> 
+<a class="jxr_linenumber" name="L146" href="#L146">146</a>         Iterator&lt;String&gt; itr = m.keySet().iterator();
+<a class="jxr_linenumber" name="L147" href="#L147">147</a>         assertEquals(<span class="jxr_string">"one"</span>, itr.next());
+<a class="jxr_linenumber" name="L148" href="#L148">148</a>         assertEquals(<span class="jxr_string">"two"</span>, itr.next());
+<a class="jxr_linenumber" name="L149" href="#L149">149</a>         assertEquals(<span class="jxr_string">"three"</span>, itr.next());
+<a class="jxr_linenumber" name="L150" href="#L150">150</a>         assertEquals(<span class="jxr_string">"notInBean"</span>, itr.next());
+<a class="jxr_linenumber" name="L151" href="#L151">151</a>         assertEquals(<span class="jxr_string">"intTest"</span>, itr.next());
+<a class="jxr_linenumber" name="L152" href="#L152">152</a>         assertEquals(<span class="jxr_string">"integerTest"</span>, itr.next());
+<a class="jxr_linenumber" name="L153" href="#L153">153</a>         assertEquals(<span class="jxr_string">"nullObjectTest"</span>, itr.next());
+<a class="jxr_linenumber" name="L154" href="#L154">154</a>         assertEquals(<span class="jxr_string">"nullPrimitiveTest"</span>, itr.next());
+<a class="jxr_linenumber" name="L155" href="#L155">155</a>         assertEquals(<span class="jxr_string">"notDate"</span>, itr.next());
+<a class="jxr_linenumber" name="L156" href="#L156">156</a>         assertEquals(<span class="jxr_string">"columnProcessorDoubleTest"</span>, itr.next());
+<a class="jxr_linenumber" name="L157" href="#L157">157</a> 
+<a class="jxr_linenumber" name="L158" href="#L158">158</a>         assertFalse(itr.hasNext());
+<a class="jxr_linenumber" name="L159" href="#L159">159</a>     }
+<a class="jxr_linenumber" name="L160" href="#L160">160</a> 
+<a class="jxr_linenumber" name="L161" href="#L161">161</a> }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2002&#x2013;2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-dbutils/xref-test/org/apache/commons/dbutils/BeanProcessorTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-dbutils/xref-test/org/apache/commons/dbutils/BeanProcessorTest.html (original)
+++ websites/production/commons/content/proper/commons-dbutils/xref-test/org/apache/commons/dbutils/BeanProcessorTest.html Sun Jul 20 08:52:20 2014
@@ -40,85 +40,87 @@
 <a class="jxr_linenumber" name="L32" href="#L32">32</a>          assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
 <a class="jxr_linenumber" name="L33" href="#L33">33</a>          b = beanProc.toBean(<strong class="jxr_keyword">this</strong>.rs, TestBean.<strong class="jxr_keyword">class</strong>);
 <a class="jxr_linenumber" name="L34" href="#L34">34</a>          assertEquals(13.0, b.getColumnProcessorDoubleTest(), 0);
-<a class="jxr_linenumber" name="L35" href="#L35">35</a>  
-<a class="jxr_linenumber" name="L36" href="#L36">36</a>          assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
-<a class="jxr_linenumber" name="L37" href="#L37">37</a>          b = beanProc.toBean(<strong class="jxr_keyword">this</strong>.rs, TestBean.<strong class="jxr_keyword">class</strong>);
-<a class="jxr_linenumber" name="L38" href="#L38">38</a>          assertEquals(13.0, b.getColumnProcessorDoubleTest(), 0);
-<a class="jxr_linenumber" name="L39" href="#L39">39</a>  
-<a class="jxr_linenumber" name="L40" href="#L40">40</a>          assertFalse(<strong class="jxr_keyword">this</strong>.rs.next());
-<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>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/dbutils/BeanProcessorTest.html">MapColumnToPropertiesBean</a> {
-<a class="jxr_linenumber" name="L44" href="#L44">44</a>          <strong class="jxr_keyword">private</strong> String one;
-<a class="jxr_linenumber" name="L45" href="#L45">45</a>  
-<a class="jxr_linenumber" name="L46" href="#L46">46</a>          <strong class="jxr_keyword">private</strong> String two;
+<a class="jxr_linenumber" name="L35" href="#L35">35</a>          assertEquals(b.getThree(), TestBean.Ordinal.THREE);
+<a class="jxr_linenumber" name="L36" href="#L36">36</a>  
+<a class="jxr_linenumber" name="L37" href="#L37">37</a>          assertTrue(<strong class="jxr_keyword">this</strong>.rs.next());
+<a class="jxr_linenumber" name="L38" href="#L38">38</a>          b = beanProc.toBean(<strong class="jxr_keyword">this</strong>.rs, TestBean.<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="L39" href="#L39">39</a>          assertEquals(13.0, b.getColumnProcessorDoubleTest(), 0);
+<a class="jxr_linenumber" name="L40" href="#L40">40</a>          assertEquals(b.getThree(), TestBean.Ordinal.SIX);
+<a class="jxr_linenumber" name="L41" href="#L41">41</a>  
+<a class="jxr_linenumber" name="L42" href="#L42">42</a>          assertFalse(<strong class="jxr_keyword">this</strong>.rs.next());
+<a class="jxr_linenumber" name="L43" href="#L43">43</a>      }
+<a class="jxr_linenumber" name="L44" href="#L44">44</a>  
+<a class="jxr_linenumber" name="L45" href="#L45">45</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/dbutils/BeanProcessorTest.html">MapColumnToPropertiesBean</a> {
+<a class="jxr_linenumber" name="L46" href="#L46">46</a>          <strong class="jxr_keyword">private</strong> String one;
 <a class="jxr_linenumber" name="L47" href="#L47">47</a>  
-<a class="jxr_linenumber" name="L48" href="#L48">48</a>          <strong class="jxr_keyword">private</strong> String three;
+<a class="jxr_linenumber" name="L48" href="#L48">48</a>          <strong class="jxr_keyword">private</strong> String two;
 <a class="jxr_linenumber" name="L49" href="#L49">49</a>  
-<a class="jxr_linenumber" name="L50" href="#L50">50</a>          <strong class="jxr_keyword">private</strong> String four;
+<a class="jxr_linenumber" name="L50" href="#L50">50</a>          <strong class="jxr_keyword">private</strong> String three;
 <a class="jxr_linenumber" name="L51" href="#L51">51</a>  
-<a class="jxr_linenumber" name="L52" href="#L52">52</a>          <strong class="jxr_keyword">public</strong> String getOne() {
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>              <strong class="jxr_keyword">return</strong> one;
-<a class="jxr_linenumber" name="L54" href="#L54">54</a>          }
-<a class="jxr_linenumber" name="L55" href="#L55">55</a>  
-<a class="jxr_linenumber" name="L56" href="#L56">56</a>          <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setOne(String one) {
-<a class="jxr_linenumber" name="L57" href="#L57">57</a>              <strong class="jxr_keyword">this</strong>.one = one;
-<a class="jxr_linenumber" name="L58" href="#L58">58</a>          }
-<a class="jxr_linenumber" name="L59" href="#L59">59</a>  
-<a class="jxr_linenumber" name="L60" href="#L60">60</a>          <strong class="jxr_keyword">public</strong> String getTwo() {
-<a class="jxr_linenumber" name="L61" href="#L61">61</a>              <strong class="jxr_keyword">return</strong> two;
-<a class="jxr_linenumber" name="L62" href="#L62">62</a>          }
-<a class="jxr_linenumber" name="L63" href="#L63">63</a>  
-<a class="jxr_linenumber" name="L64" href="#L64">64</a>          <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setTwo(String two) {
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>              <strong class="jxr_keyword">this</strong>.two = two;
-<a class="jxr_linenumber" name="L66" href="#L66">66</a>          }
-<a class="jxr_linenumber" name="L67" href="#L67">67</a>  
-<a class="jxr_linenumber" name="L68" href="#L68">68</a>          <strong class="jxr_keyword">public</strong> String getThree() {
-<a class="jxr_linenumber" name="L69" href="#L69">69</a>              <strong class="jxr_keyword">return</strong> three;
-<a class="jxr_linenumber" name="L70" href="#L70">70</a>          }
-<a class="jxr_linenumber" name="L71" href="#L71">71</a>  
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>          <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setThree(String three) {
-<a class="jxr_linenumber" name="L73" href="#L73">73</a>              <strong class="jxr_keyword">this</strong>.three = three;
-<a class="jxr_linenumber" name="L74" href="#L74">74</a>          }
-<a class="jxr_linenumber" name="L75" href="#L75">75</a>  
-<a class="jxr_linenumber" name="L76" href="#L76">76</a>          <strong class="jxr_keyword">public</strong> String getFour() {
-<a class="jxr_linenumber" name="L77" href="#L77">77</a>              <strong class="jxr_keyword">return</strong> four;
-<a class="jxr_linenumber" name="L78" href="#L78">78</a>          }
-<a class="jxr_linenumber" name="L79" href="#L79">79</a>  
-<a class="jxr_linenumber" name="L80" href="#L80">80</a>          <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setFour(String four) {
-<a class="jxr_linenumber" name="L81" href="#L81">81</a>              <strong class="jxr_keyword">this</strong>.four = four;
-<a class="jxr_linenumber" name="L82" href="#L82">82</a>          }
-<a class="jxr_linenumber" name="L83" href="#L83">83</a>      }
-<a class="jxr_linenumber" name="L84" href="#L84">84</a>  
-<a class="jxr_linenumber" name="L85" href="#L85">85</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testMapColumnToProperties() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="L86" href="#L86">86</a>          String[] columnNames = { <span class="jxr_string">"test"</span>, <span class="jxr_string">"test"</span>, <span class="jxr_string">"three"</span> };
-<a class="jxr_linenumber" name="L87" href="#L87">87</a>          String[] columnLabels = { <span class="jxr_string">"one"</span>, <span class="jxr_string">"two"</span>, <strong class="jxr_keyword">null</strong> };
-<a class="jxr_linenumber" name="L88" href="#L88">88</a>          ResultSetMetaData rsmd = ProxyFactory.instance().createResultSetMetaData(
-<a class="jxr_linenumber" name="L89" href="#L89">89</a>                  <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/dbutils/MockResultSetMetaData.html">MockResultSetMetaData</a>(columnNames, columnLabels));
-<a class="jxr_linenumber" name="L90" href="#L90">90</a>          PropertyDescriptor[] props = Introspector.getBeanInfo(MapColumnToPropertiesBean.<strong class="jxr_keyword">class</strong>).getPropertyDescriptors();
-<a class="jxr_linenumber" name="L91" href="#L91">91</a>  
-<a class="jxr_linenumber" name="L92" href="#L92">92</a>          <strong class="jxr_keyword">int</strong>[] columns = beanProc.mapColumnsToProperties(rsmd, props);
-<a class="jxr_linenumber" name="L93" href="#L93">93</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 1; i &lt; columns.length; i++) {
-<a class="jxr_linenumber" name="L94" href="#L94">94</a>              assertTrue(columns[i] != BeanProcessor.PROPERTY_NOT_FOUND);
-<a class="jxr_linenumber" name="L95" href="#L95">95</a>          }
-<a class="jxr_linenumber" name="L96" href="#L96">96</a>      }
-<a class="jxr_linenumber" name="L97" href="#L97">97</a>  
-<a class="jxr_linenumber" name="L98" href="#L98">98</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testMapColumnToPropertiesWithOverrides() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="L99" href="#L99">99</a>          Map&lt;String, String&gt; columnToPropertyOverrides = <strong class="jxr_keyword">new</strong> HashMap&lt;String, String&gt;();
-<a class="jxr_linenumber" name="L100" href="#L100">100</a>         columnToPropertyOverrides.put(<span class="jxr_string">"five"</span>, <span class="jxr_string">"four"</span>);
-<a class="jxr_linenumber" name="L101" href="#L101">101</a>         BeanProcessor beanProc = <strong class="jxr_keyword">new</strong> BeanProcessor(columnToPropertyOverrides);
-<a class="jxr_linenumber" name="L102" href="#L102">102</a>         String[] columnNames = { <span class="jxr_string">"test"</span>, <span class="jxr_string">"test"</span>, <span class="jxr_string">"three"</span>, <span class="jxr_string">"five"</span> };
-<a class="jxr_linenumber" name="L103" href="#L103">103</a>         String[] columnLabels = { <span class="jxr_string">"one"</span>, <span class="jxr_string">"two"</span>, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong> };
-<a class="jxr_linenumber" name="L104" href="#L104">104</a>         ResultSetMetaData rsmd = ProxyFactory.instance().createResultSetMetaData(
-<a class="jxr_linenumber" name="L105" href="#L105">105</a>                 <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/dbutils/MockResultSetMetaData.html">MockResultSetMetaData</a>(columnNames, columnLabels));
-<a class="jxr_linenumber" name="L106" href="#L106">106</a>         PropertyDescriptor[] props = Introspector.getBeanInfo(MapColumnToPropertiesBean.<strong class="jxr_keyword">class</strong>).getPropertyDescriptors();
-<a class="jxr_linenumber" name="L107" href="#L107">107</a> 
-<a class="jxr_linenumber" name="L108" href="#L108">108</a>         <strong class="jxr_keyword">int</strong>[] columns = beanProc.mapColumnsToProperties(rsmd, props);
-<a class="jxr_linenumber" name="L109" href="#L109">109</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 1; i &lt; columns.length; i++) {
-<a class="jxr_linenumber" name="L110" href="#L110">110</a>             assertTrue(columns[i] != BeanProcessor.PROPERTY_NOT_FOUND);
-<a class="jxr_linenumber" name="L111" href="#L111">111</a>         }
-<a class="jxr_linenumber" name="L112" href="#L112">112</a>     }
-<a class="jxr_linenumber" name="L113" href="#L113">113</a> }
+<a class="jxr_linenumber" name="L52" href="#L52">52</a>          <strong class="jxr_keyword">private</strong> String four;
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>  
+<a class="jxr_linenumber" name="L54" href="#L54">54</a>          <strong class="jxr_keyword">public</strong> String getOne() {
+<a class="jxr_linenumber" name="L55" href="#L55">55</a>              <strong class="jxr_keyword">return</strong> one;
+<a class="jxr_linenumber" name="L56" href="#L56">56</a>          }
+<a class="jxr_linenumber" name="L57" href="#L57">57</a>  
+<a class="jxr_linenumber" name="L58" href="#L58">58</a>          <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setOne(String one) {
+<a class="jxr_linenumber" name="L59" href="#L59">59</a>              <strong class="jxr_keyword">this</strong>.one = one;
+<a class="jxr_linenumber" name="L60" href="#L60">60</a>          }
+<a class="jxr_linenumber" name="L61" href="#L61">61</a>  
+<a class="jxr_linenumber" name="L62" href="#L62">62</a>          <strong class="jxr_keyword">public</strong> String getTwo() {
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>              <strong class="jxr_keyword">return</strong> two;
+<a class="jxr_linenumber" name="L64" href="#L64">64</a>          }
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>  
+<a class="jxr_linenumber" name="L66" href="#L66">66</a>          <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setTwo(String two) {
+<a class="jxr_linenumber" name="L67" href="#L67">67</a>              <strong class="jxr_keyword">this</strong>.two = two;
+<a class="jxr_linenumber" name="L68" href="#L68">68</a>          }
+<a class="jxr_linenumber" name="L69" href="#L69">69</a>  
+<a class="jxr_linenumber" name="L70" href="#L70">70</a>          <strong class="jxr_keyword">public</strong> String getThree() {
+<a class="jxr_linenumber" name="L71" href="#L71">71</a>              <strong class="jxr_keyword">return</strong> three;
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>          }
+<a class="jxr_linenumber" name="L73" href="#L73">73</a>  
+<a class="jxr_linenumber" name="L74" href="#L74">74</a>          <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setThree(String three) {
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>              <strong class="jxr_keyword">this</strong>.three = three;
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>          }
+<a class="jxr_linenumber" name="L77" href="#L77">77</a>  
+<a class="jxr_linenumber" name="L78" href="#L78">78</a>          <strong class="jxr_keyword">public</strong> String getFour() {
+<a class="jxr_linenumber" name="L79" href="#L79">79</a>              <strong class="jxr_keyword">return</strong> four;
+<a class="jxr_linenumber" name="L80" href="#L80">80</a>          }
+<a class="jxr_linenumber" name="L81" href="#L81">81</a>  
+<a class="jxr_linenumber" name="L82" href="#L82">82</a>          <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setFour(String four) {
+<a class="jxr_linenumber" name="L83" href="#L83">83</a>              <strong class="jxr_keyword">this</strong>.four = four;
+<a class="jxr_linenumber" name="L84" href="#L84">84</a>          }
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>      }
+<a class="jxr_linenumber" name="L86" href="#L86">86</a>  
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testMapColumnToProperties() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L88" href="#L88">88</a>          String[] columnNames = { <span class="jxr_string">"test"</span>, <span class="jxr_string">"test"</span>, <span class="jxr_string">"three"</span> };
+<a class="jxr_linenumber" name="L89" href="#L89">89</a>          String[] columnLabels = { <span class="jxr_string">"one"</span>, <span class="jxr_string">"two"</span>, <strong class="jxr_keyword">null</strong> };
+<a class="jxr_linenumber" name="L90" href="#L90">90</a>          ResultSetMetaData rsmd = ProxyFactory.instance().createResultSetMetaData(
+<a class="jxr_linenumber" name="L91" href="#L91">91</a>                  <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/dbutils/MockResultSetMetaData.html">MockResultSetMetaData</a>(columnNames, columnLabels));
+<a class="jxr_linenumber" name="L92" href="#L92">92</a>          PropertyDescriptor[] props = Introspector.getBeanInfo(MapColumnToPropertiesBean.<strong class="jxr_keyword">class</strong>).getPropertyDescriptors();
+<a class="jxr_linenumber" name="L93" href="#L93">93</a>  
+<a class="jxr_linenumber" name="L94" href="#L94">94</a>          <strong class="jxr_keyword">int</strong>[] columns = beanProc.mapColumnsToProperties(rsmd, props);
+<a class="jxr_linenumber" name="L95" href="#L95">95</a>          <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 1; i &lt; columns.length; i++) {
+<a class="jxr_linenumber" name="L96" href="#L96">96</a>              assertTrue(columns[i] != BeanProcessor.PROPERTY_NOT_FOUND);
+<a class="jxr_linenumber" name="L97" href="#L97">97</a>          }
+<a class="jxr_linenumber" name="L98" href="#L98">98</a>      }
+<a class="jxr_linenumber" name="L99" href="#L99">99</a>  
+<a class="jxr_linenumber" name="L100" href="#L100">100</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testMapColumnToPropertiesWithOverrides() <strong class="jxr_keyword">throws</strong> Exception {
+<a class="jxr_linenumber" name="L101" href="#L101">101</a>         Map&lt;String, String&gt; columnToPropertyOverrides = <strong class="jxr_keyword">new</strong> HashMap&lt;String, String&gt;();
+<a class="jxr_linenumber" name="L102" href="#L102">102</a>         columnToPropertyOverrides.put(<span class="jxr_string">"five"</span>, <span class="jxr_string">"four"</span>);
+<a class="jxr_linenumber" name="L103" href="#L103">103</a>         BeanProcessor beanProc = <strong class="jxr_keyword">new</strong> BeanProcessor(columnToPropertyOverrides);
+<a class="jxr_linenumber" name="L104" href="#L104">104</a>         String[] columnNames = { <span class="jxr_string">"test"</span>, <span class="jxr_string">"test"</span>, <span class="jxr_string">"three"</span>, <span class="jxr_string">"five"</span> };
+<a class="jxr_linenumber" name="L105" href="#L105">105</a>         String[] columnLabels = { <span class="jxr_string">"one"</span>, <span class="jxr_string">"two"</span>, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong> };
+<a class="jxr_linenumber" name="L106" href="#L106">106</a>         ResultSetMetaData rsmd = ProxyFactory.instance().createResultSetMetaData(
+<a class="jxr_linenumber" name="L107" href="#L107">107</a>                 <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/commons/dbutils/MockResultSetMetaData.html">MockResultSetMetaData</a>(columnNames, columnLabels));
+<a class="jxr_linenumber" name="L108" href="#L108">108</a>         PropertyDescriptor[] props = Introspector.getBeanInfo(MapColumnToPropertiesBean.<strong class="jxr_keyword">class</strong>).getPropertyDescriptors();
+<a class="jxr_linenumber" name="L109" href="#L109">109</a> 
+<a class="jxr_linenumber" name="L110" href="#L110">110</a>         <strong class="jxr_keyword">int</strong>[] columns = beanProc.mapColumnsToProperties(rsmd, props);
+<a class="jxr_linenumber" name="L111" href="#L111">111</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 1; i &lt; columns.length; i++) {
+<a class="jxr_linenumber" name="L112" href="#L112">112</a>             assertTrue(columns[i] != BeanProcessor.PROPERTY_NOT_FOUND);
+<a class="jxr_linenumber" name="L113" href="#L113">113</a>         }
+<a class="jxr_linenumber" name="L114" href="#L114">114</a>     }
+<a class="jxr_linenumber" name="L115" href="#L115">115</a> }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2002&#x2013;2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-dbutils/xref-test/org/apache/commons/dbutils/QueryRunnerTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-dbutils/xref-test/org/apache/commons/dbutils/QueryRunnerTest.html (original)
+++ websites/production/commons/content/proper/commons-dbutils/xref-test/org/apache/commons/dbutils/QueryRunnerTest.html Sun Jul 20 08:52:20 2014
@@ -92,7 +92,7 @@
 <a class="jxr_linenumber" name="L84" href="#L84">84</a>          verify(stmt, times(2)).addBatch();
 <a class="jxr_linenumber" name="L85" href="#L85">85</a>          verify(stmt, times(1)).executeBatch();
 <a class="jxr_linenumber" name="L86" href="#L86">86</a>          verify(stmt, times(1)).close();    <em class="jxr_comment">// make sure we closed the statement</em>
-<a class="jxr_linenumber" name="L87" href="#L87">87</a>          verify(conn, times(0)).close();    <em class="jxr_comment">// make sure we closed the connection</em>
+<a class="jxr_linenumber" name="L87" href="#L87">87</a>          verify(conn, times(0)).close();    <em class="jxr_comment">// make sure we do not close the connection, since QueryRunner.batch(Connection, String, Object[][]) does not close connections</em>
 <a class="jxr_linenumber" name="L88" href="#L88">88</a>      }
 <a class="jxr_linenumber" name="L89" href="#L89">89</a>  
 <a class="jxr_linenumber" name="L90" href="#L90">90</a>      <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> callGoodBatch(Object[][] params) <strong class="jxr_keyword">throws</strong> Exception {
@@ -225,7 +225,7 @@
 <a class="jxr_linenumber" name="L217" href="#L217">217</a>         verify(stmt, times(1)).executeQuery();
 <a class="jxr_linenumber" name="L218" href="#L218">218</a>         verify(results, times(1)).close();
 <a class="jxr_linenumber" name="L219" href="#L219">219</a>         verify(stmt, times(1)).close();    <em class="jxr_comment">// make sure we closed the statement</em>
-<a class="jxr_linenumber" name="L220" href="#L220">220</a>         verify(conn, times(0)).close();    <em class="jxr_comment">// make sure we closed the connection</em>
+<a class="jxr_linenumber" name="L220" href="#L220">220</a>         verify(conn, times(0)).close();    <em class="jxr_comment">// make sure we do not close the connection, since QueryRunner.query(Connection, String, ResultSetHandler&lt;T&gt;, Object...) does not close connections</em>
 <a class="jxr_linenumber" name="L221" href="#L221">221</a> 
 <a class="jxr_linenumber" name="L222" href="#L222">222</a>         <em class="jxr_comment">// call the other variation of query</em>
 <a class="jxr_linenumber" name="L223" href="#L223">223</a>         when(meta.getParameterCount()).thenReturn(0);
@@ -234,7 +234,7 @@
 <a class="jxr_linenumber" name="L226" href="#L226">226</a>         verify(stmt, times(2)).executeQuery();
 <a class="jxr_linenumber" name="L227" href="#L227">227</a>         verify(results, times(2)).close();
 <a class="jxr_linenumber" name="L228" href="#L228">228</a>         verify(stmt, times(2)).close();    <em class="jxr_comment">// make sure we closed the statement</em>
-<a class="jxr_linenumber" name="L229" href="#L229">229</a>         verify(conn, times(0)).close();    <em class="jxr_comment">// make sure we closed the connection</em>
+<a class="jxr_linenumber" name="L229" href="#L229">229</a>         verify(conn, times(0)).close();    <em class="jxr_comment">// make sure we do not close the connection, see above</em>
 <a class="jxr_linenumber" name="L230" href="#L230">230</a>     }
 <a class="jxr_linenumber" name="L231" href="#L231">231</a> 
 <a class="jxr_linenumber" name="L232" href="#L232">232</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> callGoodQuery() <strong class="jxr_keyword">throws</strong> Exception {
@@ -349,7 +349,7 @@
 <a class="jxr_linenumber" name="L341" href="#L341">341</a> 
 <a class="jxr_linenumber" name="L342" href="#L342">342</a>         verify(stmt, times(1)).executeUpdate();
 <a class="jxr_linenumber" name="L343" href="#L343">343</a>         verify(stmt, times(1)).close();    <em class="jxr_comment">// make sure we closed the statement</em>
-<a class="jxr_linenumber" name="L344" href="#L344">344</a>         verify(conn, times(0)).close();    <em class="jxr_comment">// make sure we closed the connection</em>
+<a class="jxr_linenumber" name="L344" href="#L344">344</a>         verify(conn, times(0)).close();    <em class="jxr_comment">// make sure we do not close the connection, since QueryRunner.update(Connection, String, Object...) does not close connections</em>
 <a class="jxr_linenumber" name="L345" href="#L345">345</a> 
 <a class="jxr_linenumber" name="L346" href="#L346">346</a>         <em class="jxr_comment">// call the other variation</em>
 <a class="jxr_linenumber" name="L347" href="#L347">347</a>         when(meta.getParameterCount()).thenReturn(0);
@@ -357,7 +357,7 @@
 <a class="jxr_linenumber" name="L349" href="#L349">349</a> 
 <a class="jxr_linenumber" name="L350" href="#L350">350</a>         verify(stmt, times(2)).executeUpdate();
 <a class="jxr_linenumber" name="L351" href="#L351">351</a>         verify(stmt, times(2)).close();    <em class="jxr_comment">// make sure we closed the statement</em>
-<a class="jxr_linenumber" name="L352" href="#L352">352</a>         verify(conn, times(0)).close();    <em class="jxr_comment">// make sure we closed the connection</em>
+<a class="jxr_linenumber" name="L352" href="#L352">352</a>         verify(conn, times(0)).close();    <em class="jxr_comment">// make sure we do not close the connection, see above</em>
 <a class="jxr_linenumber" name="L353" href="#L353">353</a> 
 <a class="jxr_linenumber" name="L354" href="#L354">354</a>         <em class="jxr_comment">// call the other variation</em>
 <a class="jxr_linenumber" name="L355" href="#L355">355</a>         when(meta.getParameterCount()).thenReturn(1);
@@ -365,7 +365,7 @@
 <a class="jxr_linenumber" name="L357" href="#L357">357</a> 
 <a class="jxr_linenumber" name="L358" href="#L358">358</a>         verify(stmt, times(3)).executeUpdate();
 <a class="jxr_linenumber" name="L359" href="#L359">359</a>         verify(stmt, times(3)).close();    <em class="jxr_comment">// make sure we closed the statement</em>
-<a class="jxr_linenumber" name="L360" href="#L360">360</a>         verify(conn, times(0)).close();    <em class="jxr_comment">// make sure we closed the connection</em>
+<a class="jxr_linenumber" name="L360" href="#L360">360</a>         verify(conn, times(0)).close();    <em class="jxr_comment">// make sure we do not close the connection, see above</em>
 <a class="jxr_linenumber" name="L361" href="#L361">361</a>     }
 <a class="jxr_linenumber" name="L362" href="#L362">362</a> 
 <a class="jxr_linenumber" name="L363" href="#L363">363</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> callGoodUpdate() <strong class="jxr_keyword">throws</strong> Exception {



Mime
View raw message