commons-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r949864 [34/48] - in /websites/production/commons/content/proper/commons-lang: ./ apidocs/ apidocs/org/apache/commons/lang3/ apidocs/org/apache/commons/lang3/builder/ apidocs/org/apache/commons/lang3/time/ apidocs/src-html/org/apache/common...
Date Fri, 01 May 2015 20:55:53 GMT
Modified: websites/production/commons/content/proper/commons-lang/xref-test/org/apache/commons/lang3/StringUtilsTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-lang/xref-test/org/apache/commons/lang3/StringUtilsTest.html (original)
+++ websites/production/commons/content/proper/commons-lang/xref-test/org/apache/commons/lang3/StringUtilsTest.html Fri May  1 20:55:51 2015
@@ -1361,1189 +1361,1213 @@
 <a class="jxr_linenumber" name="L1353" href="#L1353">1353</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.repeat(<span class="jxr_string">"ab"</span>, 0));
 <a class="jxr_linenumber" name="L1354" href="#L1354">1354</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.repeat(<span class="jxr_string">""</span>, 3));
 <a class="jxr_linenumber" name="L1355" href="#L1355">1355</a>         assertEquals(<span class="jxr_string">"aaa"</span>, StringUtils.repeat(<span class="jxr_string">"a"</span>, 3));
-<a class="jxr_linenumber" name="L1356" href="#L1356">1356</a>         assertEquals(<span class="jxr_string">"ababab"</span>, StringUtils.repeat(<span class="jxr_string">"ab"</span>, 3));
-<a class="jxr_linenumber" name="L1357" href="#L1357">1357</a>         assertEquals(<span class="jxr_string">"abcabcabc"</span>, StringUtils.repeat(<span class="jxr_string">"abc"</span>, 3));
-<a class="jxr_linenumber" name="L1358" href="#L1358">1358</a>         <strong class="jxr_keyword">final</strong> String str = StringUtils.repeat(<span class="jxr_string">"a"</span>, 10000);  <em class="jxr_comment">// bigger than pad limit</em>
-<a class="jxr_linenumber" name="L1359" href="#L1359">1359</a>         assertEquals(10000, str.length());
-<a class="jxr_linenumber" name="L1360" href="#L1360">1360</a>         assertTrue(StringUtils.containsOnly(str, <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">char</strong>[] {'a'}));
-<a class="jxr_linenumber" name="L1361" href="#L1361">1361</a>     }
-<a class="jxr_linenumber" name="L1362" href="#L1362">1362</a> 
-<a class="jxr_linenumber" name="L1363" href="#L1363">1363</a>     @Test
-<a class="jxr_linenumber" name="L1364" href="#L1364">1364</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRepeat_StringStringInt() {
-<a class="jxr_linenumber" name="L1365" href="#L1365">1365</a>         assertNull(StringUtils.repeat(<strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>, 2));
-<a class="jxr_linenumber" name="L1366" href="#L1366">1366</a>         assertNull(StringUtils.repeat(<strong class="jxr_keyword">null</strong>, <span class="jxr_string">"x"</span>, 2));
-<a class="jxr_linenumber" name="L1367" href="#L1367">1367</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.repeat(<span class="jxr_string">""</span>, <strong class="jxr_keyword">null</strong>, 2));
-<a class="jxr_linenumber" name="L1368" href="#L1368">1368</a> 
-<a class="jxr_linenumber" name="L1369" href="#L1369">1369</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.repeat(<span class="jxr_string">"ab"</span>, <span class="jxr_string">""</span>, 0));
-<a class="jxr_linenumber" name="L1370" href="#L1370">1370</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.repeat(<span class="jxr_string">""</span>, <span class="jxr_string">""</span>, 2));
-<a class="jxr_linenumber" name="L1371" href="#L1371">1371</a> 
-<a class="jxr_linenumber" name="L1372" href="#L1372">1372</a>         assertEquals(<span class="jxr_string">"xx"</span>, StringUtils.repeat(<span class="jxr_string">""</span>, <span class="jxr_string">"x"</span>, 3));
-<a class="jxr_linenumber" name="L1373" href="#L1373">1373</a> 
-<a class="jxr_linenumber" name="L1374" href="#L1374">1374</a>         assertEquals(<span class="jxr_string">"?, ?, ?"</span>, StringUtils.repeat(<span class="jxr_string">"?"</span>, <span class="jxr_string">", "</span>, 3));
-<a class="jxr_linenumber" name="L1375" href="#L1375">1375</a>     }
-<a class="jxr_linenumber" name="L1376" href="#L1376">1376</a> 
-<a class="jxr_linenumber" name="L1377" href="#L1377">1377</a>     @Test
-<a class="jxr_linenumber" name="L1378" href="#L1378">1378</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testChop() {
-<a class="jxr_linenumber" name="L1379" href="#L1379">1379</a> 
-<a class="jxr_linenumber" name="L1380" href="#L1380">1380</a>         <strong class="jxr_keyword">final</strong> String[][] chopCases = {
-<a class="jxr_linenumber" name="L1381" href="#L1381">1381</a>             { FOO_UNCAP + <span class="jxr_string">"\r\n"</span>, FOO_UNCAP } ,
-<a class="jxr_linenumber" name="L1382" href="#L1382">1382</a>             { FOO_UNCAP + <span class="jxr_string">"\n"</span> , FOO_UNCAP } ,
-<a class="jxr_linenumber" name="L1383" href="#L1383">1383</a>             { FOO_UNCAP + <span class="jxr_string">"\r"</span>, FOO_UNCAP },
-<a class="jxr_linenumber" name="L1384" href="#L1384">1384</a>             { FOO_UNCAP + <span class="jxr_string">" \r"</span>, FOO_UNCAP + <span class="jxr_string">" "</span> },
-<a class="jxr_linenumber" name="L1385" href="#L1385">1385</a>             { <span class="jxr_string">"foo"</span>, <span class="jxr_string">"fo"</span>},
-<a class="jxr_linenumber" name="L1386" href="#L1386">1386</a>             { <span class="jxr_string">"foo\nfoo"</span>, <span class="jxr_string">"foo\nfo"</span> },
-<a class="jxr_linenumber" name="L1387" href="#L1387">1387</a>             { <span class="jxr_string">"\n"</span>, <span class="jxr_string">""</span> },
-<a class="jxr_linenumber" name="L1388" href="#L1388">1388</a>             { <span class="jxr_string">"\r"</span>, <span class="jxr_string">""</span> },
-<a class="jxr_linenumber" name="L1389" href="#L1389">1389</a>             { <span class="jxr_string">"\r\n"</span>, <span class="jxr_string">""</span> },
-<a class="jxr_linenumber" name="L1390" href="#L1390">1390</a>             { <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong> },
-<a class="jxr_linenumber" name="L1391" href="#L1391">1391</a>             { <span class="jxr_string">""</span>, <span class="jxr_string">""</span> },
-<a class="jxr_linenumber" name="L1392" href="#L1392">1392</a>             { <span class="jxr_string">"a"</span>, <span class="jxr_string">""</span> },
-<a class="jxr_linenumber" name="L1393" href="#L1393">1393</a>         };
-<a class="jxr_linenumber" name="L1394" href="#L1394">1394</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> String[] chopCase : chopCases) {
-<a class="jxr_linenumber" name="L1395" href="#L1395">1395</a>             <strong class="jxr_keyword">final</strong> String original = chopCase[0];
-<a class="jxr_linenumber" name="L1396" href="#L1396">1396</a>             <strong class="jxr_keyword">final</strong> String expectedResult = chopCase[1];
-<a class="jxr_linenumber" name="L1397" href="#L1397">1397</a>             assertEquals(<span class="jxr_string">"chop(String) failed"</span>,
-<a class="jxr_linenumber" name="L1398" href="#L1398">1398</a>                     expectedResult, StringUtils.chop(original));
-<a class="jxr_linenumber" name="L1399" href="#L1399">1399</a>         }
-<a class="jxr_linenumber" name="L1400" href="#L1400">1400</a>     }
-<a class="jxr_linenumber" name="L1401" href="#L1401">1401</a> 
-<a class="jxr_linenumber" name="L1402" href="#L1402">1402</a>     @Test
-<a class="jxr_linenumber" name="L1403" href="#L1403">1403</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testChomp() {
-<a class="jxr_linenumber" name="L1404" href="#L1404">1404</a> 
-<a class="jxr_linenumber" name="L1405" href="#L1405">1405</a>         <strong class="jxr_keyword">final</strong> String[][] chompCases = {
-<a class="jxr_linenumber" name="L1406" href="#L1406">1406</a>             { FOO_UNCAP + <span class="jxr_string">"\r\n"</span>, FOO_UNCAP },
-<a class="jxr_linenumber" name="L1407" href="#L1407">1407</a>             { FOO_UNCAP + <span class="jxr_string">"\n"</span> , FOO_UNCAP },
-<a class="jxr_linenumber" name="L1408" href="#L1408">1408</a>             { FOO_UNCAP + <span class="jxr_string">"\r"</span>, FOO_UNCAP },
-<a class="jxr_linenumber" name="L1409" href="#L1409">1409</a>             { FOO_UNCAP + <span class="jxr_string">" \r"</span>, FOO_UNCAP + <span class="jxr_string">" "</span> },
-<a class="jxr_linenumber" name="L1410" href="#L1410">1410</a>             { FOO_UNCAP, FOO_UNCAP },
-<a class="jxr_linenumber" name="L1411" href="#L1411">1411</a>             { FOO_UNCAP + <span class="jxr_string">"\n\n"</span>, FOO_UNCAP + <span class="jxr_string">"\n"</span>},
-<a class="jxr_linenumber" name="L1412" href="#L1412">1412</a>             { FOO_UNCAP + <span class="jxr_string">"\r\n\r\n"</span>, FOO_UNCAP + <span class="jxr_string">"\r\n"</span> },
-<a class="jxr_linenumber" name="L1413" href="#L1413">1413</a>             { <span class="jxr_string">"foo\nfoo"</span>, <span class="jxr_string">"foo\nfoo"</span> },
-<a class="jxr_linenumber" name="L1414" href="#L1414">1414</a>             { <span class="jxr_string">"foo\n\rfoo"</span>, <span class="jxr_string">"foo\n\rfoo"</span> },
-<a class="jxr_linenumber" name="L1415" href="#L1415">1415</a>             { <span class="jxr_string">"\n"</span>, <span class="jxr_string">""</span> },
-<a class="jxr_linenumber" name="L1416" href="#L1416">1416</a>             { <span class="jxr_string">"\r"</span>, <span class="jxr_string">""</span> },
-<a class="jxr_linenumber" name="L1417" href="#L1417">1417</a>             { <span class="jxr_string">"a"</span>, <span class="jxr_string">"a"</span> },
-<a class="jxr_linenumber" name="L1418" href="#L1418">1418</a>             { <span class="jxr_string">"\r\n"</span>, <span class="jxr_string">""</span> },
-<a class="jxr_linenumber" name="L1419" href="#L1419">1419</a>             { <span class="jxr_string">""</span>, <span class="jxr_string">""</span> },
-<a class="jxr_linenumber" name="L1420" href="#L1420">1420</a>             { <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong> },
-<a class="jxr_linenumber" name="L1421" href="#L1421">1421</a>             { FOO_UNCAP + <span class="jxr_string">"\n\r"</span>, FOO_UNCAP + <span class="jxr_string">"\n"</span>}
-<a class="jxr_linenumber" name="L1422" href="#L1422">1422</a>         };
-<a class="jxr_linenumber" name="L1423" href="#L1423">1423</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> String[] chompCase : chompCases) {
-<a class="jxr_linenumber" name="L1424" href="#L1424">1424</a>             <strong class="jxr_keyword">final</strong> String original = chompCase[0];
-<a class="jxr_linenumber" name="L1425" href="#L1425">1425</a>             <strong class="jxr_keyword">final</strong> String expectedResult = chompCase[1];
-<a class="jxr_linenumber" name="L1426" href="#L1426">1426</a>             assertEquals(<span class="jxr_string">"chomp(String) failed"</span>,
-<a class="jxr_linenumber" name="L1427" href="#L1427">1427</a>                     expectedResult, StringUtils.chomp(original));
-<a class="jxr_linenumber" name="L1428" href="#L1428">1428</a>         }
-<a class="jxr_linenumber" name="L1429" href="#L1429">1429</a> 
-<a class="jxr_linenumber" name="L1430" href="#L1430">1430</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
-<a class="jxr_linenumber" name="L1431" href="#L1431">1431</a>                 <span class="jxr_string">"foo"</span>, StringUtils.chomp(<span class="jxr_string">"foobar"</span>, <span class="jxr_string">"bar"</span>));
-<a class="jxr_linenumber" name="L1432" href="#L1432">1432</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
-<a class="jxr_linenumber" name="L1433" href="#L1433">1433</a>                 <span class="jxr_string">"foobar"</span>, StringUtils.chomp(<span class="jxr_string">"foobar"</span>, <span class="jxr_string">"baz"</span>));
-<a class="jxr_linenumber" name="L1434" href="#L1434">1434</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
-<a class="jxr_linenumber" name="L1435" href="#L1435">1435</a>                 <span class="jxr_string">"foo"</span>, StringUtils.chomp(<span class="jxr_string">"foo"</span>, <span class="jxr_string">"foooo"</span>));
-<a class="jxr_linenumber" name="L1436" href="#L1436">1436</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
-<a class="jxr_linenumber" name="L1437" href="#L1437">1437</a>                 <span class="jxr_string">"foobar"</span>, StringUtils.chomp(<span class="jxr_string">"foobar"</span>, <span class="jxr_string">""</span>));
+<a class="jxr_linenumber" name="L1356" href="#L1356">1356</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.repeat(<span class="jxr_string">"a"</span>, -2));
+<a class="jxr_linenumber" name="L1357" href="#L1357">1357</a>         assertEquals(<span class="jxr_string">"ababab"</span>, StringUtils.repeat(<span class="jxr_string">"ab"</span>, 3));
+<a class="jxr_linenumber" name="L1358" href="#L1358">1358</a>         assertEquals(<span class="jxr_string">"abcabcabc"</span>, StringUtils.repeat(<span class="jxr_string">"abc"</span>, 3));
+<a class="jxr_linenumber" name="L1359" href="#L1359">1359</a>         <strong class="jxr_keyword">final</strong> String str = StringUtils.repeat(<span class="jxr_string">"a"</span>, 10000);  <em class="jxr_comment">// bigger than pad limit</em>
+<a class="jxr_linenumber" name="L1360" href="#L1360">1360</a>         assertEquals(10000, str.length());
+<a class="jxr_linenumber" name="L1361" href="#L1361">1361</a>         assertTrue(StringUtils.containsOnly(str, <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">char</strong>[] {'a'}));
+<a class="jxr_linenumber" name="L1362" href="#L1362">1362</a>     }
+<a class="jxr_linenumber" name="L1363" href="#L1363">1363</a> 
+<a class="jxr_linenumber" name="L1364" href="#L1364">1364</a>     @Test
+<a class="jxr_linenumber" name="L1365" href="#L1365">1365</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRepeat_StringStringInt() {
+<a class="jxr_linenumber" name="L1366" href="#L1366">1366</a>         assertNull(StringUtils.repeat(<strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>, 2));
+<a class="jxr_linenumber" name="L1367" href="#L1367">1367</a>         assertNull(StringUtils.repeat(<strong class="jxr_keyword">null</strong>, <span class="jxr_string">"x"</span>, 2));
+<a class="jxr_linenumber" name="L1368" href="#L1368">1368</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.repeat(<span class="jxr_string">""</span>, <strong class="jxr_keyword">null</strong>, 2));
+<a class="jxr_linenumber" name="L1369" href="#L1369">1369</a> 
+<a class="jxr_linenumber" name="L1370" href="#L1370">1370</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.repeat(<span class="jxr_string">"ab"</span>, <span class="jxr_string">""</span>, 0));
+<a class="jxr_linenumber" name="L1371" href="#L1371">1371</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.repeat(<span class="jxr_string">""</span>, <span class="jxr_string">""</span>, 2));
+<a class="jxr_linenumber" name="L1372" href="#L1372">1372</a> 
+<a class="jxr_linenumber" name="L1373" href="#L1373">1373</a>         assertEquals(<span class="jxr_string">"xx"</span>, StringUtils.repeat(<span class="jxr_string">""</span>, <span class="jxr_string">"x"</span>, 3));
+<a class="jxr_linenumber" name="L1374" href="#L1374">1374</a> 
+<a class="jxr_linenumber" name="L1375" href="#L1375">1375</a>         assertEquals(<span class="jxr_string">"?, ?, ?"</span>, StringUtils.repeat(<span class="jxr_string">"?"</span>, <span class="jxr_string">", "</span>, 3));
+<a class="jxr_linenumber" name="L1376" href="#L1376">1376</a>     }
+<a class="jxr_linenumber" name="L1377" href="#L1377">1377</a> 
+<a class="jxr_linenumber" name="L1378" href="#L1378">1378</a>     @Test
+<a class="jxr_linenumber" name="L1379" href="#L1379">1379</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRepeat_CharInt() {
+<a class="jxr_linenumber" name="L1380" href="#L1380">1380</a>         assertEquals(<span class="jxr_string">"zzz"</span>, StringUtils.repeat('z', 3));
+<a class="jxr_linenumber" name="L1381" href="#L1381">1381</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.repeat('z', 0));
+<a class="jxr_linenumber" name="L1382" href="#L1382">1382</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.repeat('z', -2));
+<a class="jxr_linenumber" name="L1383" href="#L1383">1383</a>     }
+<a class="jxr_linenumber" name="L1384" href="#L1384">1384</a> 
+<a class="jxr_linenumber" name="L1385" href="#L1385">1385</a>     @Test
+<a class="jxr_linenumber" name="L1386" href="#L1386">1386</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testChop() {
+<a class="jxr_linenumber" name="L1387" href="#L1387">1387</a> 
+<a class="jxr_linenumber" name="L1388" href="#L1388">1388</a>         <strong class="jxr_keyword">final</strong> String[][] chopCases = {
+<a class="jxr_linenumber" name="L1389" href="#L1389">1389</a>             { FOO_UNCAP + <span class="jxr_string">"\r\n"</span>, FOO_UNCAP } ,
+<a class="jxr_linenumber" name="L1390" href="#L1390">1390</a>             { FOO_UNCAP + <span class="jxr_string">"\n"</span> , FOO_UNCAP } ,
+<a class="jxr_linenumber" name="L1391" href="#L1391">1391</a>             { FOO_UNCAP + <span class="jxr_string">"\r"</span>, FOO_UNCAP },
+<a class="jxr_linenumber" name="L1392" href="#L1392">1392</a>             { FOO_UNCAP + <span class="jxr_string">" \r"</span>, FOO_UNCAP + <span class="jxr_string">" "</span> },
+<a class="jxr_linenumber" name="L1393" href="#L1393">1393</a>             { <span class="jxr_string">"foo"</span>, <span class="jxr_string">"fo"</span>},
+<a class="jxr_linenumber" name="L1394" href="#L1394">1394</a>             { <span class="jxr_string">"foo\nfoo"</span>, <span class="jxr_string">"foo\nfo"</span> },
+<a class="jxr_linenumber" name="L1395" href="#L1395">1395</a>             { <span class="jxr_string">"\n"</span>, <span class="jxr_string">""</span> },
+<a class="jxr_linenumber" name="L1396" href="#L1396">1396</a>             { <span class="jxr_string">"\r"</span>, <span class="jxr_string">""</span> },
+<a class="jxr_linenumber" name="L1397" href="#L1397">1397</a>             { <span class="jxr_string">"\r\n"</span>, <span class="jxr_string">""</span> },
+<a class="jxr_linenumber" name="L1398" href="#L1398">1398</a>             { <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong> },
+<a class="jxr_linenumber" name="L1399" href="#L1399">1399</a>             { <span class="jxr_string">""</span>, <span class="jxr_string">""</span> },
+<a class="jxr_linenumber" name="L1400" href="#L1400">1400</a>             { <span class="jxr_string">"a"</span>, <span class="jxr_string">""</span> },
+<a class="jxr_linenumber" name="L1401" href="#L1401">1401</a>         };
+<a class="jxr_linenumber" name="L1402" href="#L1402">1402</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> String[] chopCase : chopCases) {
+<a class="jxr_linenumber" name="L1403" href="#L1403">1403</a>             <strong class="jxr_keyword">final</strong> String original = chopCase[0];
+<a class="jxr_linenumber" name="L1404" href="#L1404">1404</a>             <strong class="jxr_keyword">final</strong> String expectedResult = chopCase[1];
+<a class="jxr_linenumber" name="L1405" href="#L1405">1405</a>             assertEquals(<span class="jxr_string">"chop(String) failed"</span>,
+<a class="jxr_linenumber" name="L1406" href="#L1406">1406</a>                     expectedResult, StringUtils.chop(original));
+<a class="jxr_linenumber" name="L1407" href="#L1407">1407</a>         }
+<a class="jxr_linenumber" name="L1408" href="#L1408">1408</a>     }
+<a class="jxr_linenumber" name="L1409" href="#L1409">1409</a> 
+<a class="jxr_linenumber" name="L1410" href="#L1410">1410</a>     @Test
+<a class="jxr_linenumber" name="L1411" href="#L1411">1411</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testChomp() {
+<a class="jxr_linenumber" name="L1412" href="#L1412">1412</a> 
+<a class="jxr_linenumber" name="L1413" href="#L1413">1413</a>         <strong class="jxr_keyword">final</strong> String[][] chompCases = {
+<a class="jxr_linenumber" name="L1414" href="#L1414">1414</a>             { FOO_UNCAP + <span class="jxr_string">"\r\n"</span>, FOO_UNCAP },
+<a class="jxr_linenumber" name="L1415" href="#L1415">1415</a>             { FOO_UNCAP + <span class="jxr_string">"\n"</span> , FOO_UNCAP },
+<a class="jxr_linenumber" name="L1416" href="#L1416">1416</a>             { FOO_UNCAP + <span class="jxr_string">"\r"</span>, FOO_UNCAP },
+<a class="jxr_linenumber" name="L1417" href="#L1417">1417</a>             { FOO_UNCAP + <span class="jxr_string">" \r"</span>, FOO_UNCAP + <span class="jxr_string">" "</span> },
+<a class="jxr_linenumber" name="L1418" href="#L1418">1418</a>             { FOO_UNCAP, FOO_UNCAP },
+<a class="jxr_linenumber" name="L1419" href="#L1419">1419</a>             { FOO_UNCAP + <span class="jxr_string">"\n\n"</span>, FOO_UNCAP + <span class="jxr_string">"\n"</span>},
+<a class="jxr_linenumber" name="L1420" href="#L1420">1420</a>             { FOO_UNCAP + <span class="jxr_string">"\r\n\r\n"</span>, FOO_UNCAP + <span class="jxr_string">"\r\n"</span> },
+<a class="jxr_linenumber" name="L1421" href="#L1421">1421</a>             { <span class="jxr_string">"foo\nfoo"</span>, <span class="jxr_string">"foo\nfoo"</span> },
+<a class="jxr_linenumber" name="L1422" href="#L1422">1422</a>             { <span class="jxr_string">"foo\n\rfoo"</span>, <span class="jxr_string">"foo\n\rfoo"</span> },
+<a class="jxr_linenumber" name="L1423" href="#L1423">1423</a>             { <span class="jxr_string">"\n"</span>, <span class="jxr_string">""</span> },
+<a class="jxr_linenumber" name="L1424" href="#L1424">1424</a>             { <span class="jxr_string">"\r"</span>, <span class="jxr_string">""</span> },
+<a class="jxr_linenumber" name="L1425" href="#L1425">1425</a>             { <span class="jxr_string">"a"</span>, <span class="jxr_string">"a"</span> },
+<a class="jxr_linenumber" name="L1426" href="#L1426">1426</a>             { <span class="jxr_string">"\r\n"</span>, <span class="jxr_string">""</span> },
+<a class="jxr_linenumber" name="L1427" href="#L1427">1427</a>             { <span class="jxr_string">""</span>, <span class="jxr_string">""</span> },
+<a class="jxr_linenumber" name="L1428" href="#L1428">1428</a>             { <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong> },
+<a class="jxr_linenumber" name="L1429" href="#L1429">1429</a>             { FOO_UNCAP + <span class="jxr_string">"\n\r"</span>, FOO_UNCAP + <span class="jxr_string">"\n"</span>}
+<a class="jxr_linenumber" name="L1430" href="#L1430">1430</a>         };
+<a class="jxr_linenumber" name="L1431" href="#L1431">1431</a>         <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> String[] chompCase : chompCases) {
+<a class="jxr_linenumber" name="L1432" href="#L1432">1432</a>             <strong class="jxr_keyword">final</strong> String original = chompCase[0];
+<a class="jxr_linenumber" name="L1433" href="#L1433">1433</a>             <strong class="jxr_keyword">final</strong> String expectedResult = chompCase[1];
+<a class="jxr_linenumber" name="L1434" href="#L1434">1434</a>             assertEquals(<span class="jxr_string">"chomp(String) failed"</span>,
+<a class="jxr_linenumber" name="L1435" href="#L1435">1435</a>                     expectedResult, StringUtils.chomp(original));
+<a class="jxr_linenumber" name="L1436" href="#L1436">1436</a>         }
+<a class="jxr_linenumber" name="L1437" href="#L1437">1437</a> 
 <a class="jxr_linenumber" name="L1438" href="#L1438">1438</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
-<a class="jxr_linenumber" name="L1439" href="#L1439">1439</a>                 <span class="jxr_string">"foobar"</span>, StringUtils.chomp(<span class="jxr_string">"foobar"</span>, <strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L1439" href="#L1439">1439</a>                 <span class="jxr_string">"foo"</span>, StringUtils.chomp(<span class="jxr_string">"foobar"</span>, <span class="jxr_string">"bar"</span>));
 <a class="jxr_linenumber" name="L1440" href="#L1440">1440</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
-<a class="jxr_linenumber" name="L1441" href="#L1441">1441</a>                 <span class="jxr_string">""</span>, StringUtils.chomp(<span class="jxr_string">""</span>, <span class="jxr_string">"foo"</span>));
+<a class="jxr_linenumber" name="L1441" href="#L1441">1441</a>                 <span class="jxr_string">"foobar"</span>, StringUtils.chomp(<span class="jxr_string">"foobar"</span>, <span class="jxr_string">"baz"</span>));
 <a class="jxr_linenumber" name="L1442" href="#L1442">1442</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
-<a class="jxr_linenumber" name="L1443" href="#L1443">1443</a>                 <span class="jxr_string">""</span>, StringUtils.chomp(<span class="jxr_string">""</span>, <strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L1443" href="#L1443">1443</a>                 <span class="jxr_string">"foo"</span>, StringUtils.chomp(<span class="jxr_string">"foo"</span>, <span class="jxr_string">"foooo"</span>));
 <a class="jxr_linenumber" name="L1444" href="#L1444">1444</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
-<a class="jxr_linenumber" name="L1445" href="#L1445">1445</a>                 <span class="jxr_string">""</span>, StringUtils.chomp(<span class="jxr_string">""</span>, <span class="jxr_string">""</span>));
+<a class="jxr_linenumber" name="L1445" href="#L1445">1445</a>                 <span class="jxr_string">"foobar"</span>, StringUtils.chomp(<span class="jxr_string">"foobar"</span>, <span class="jxr_string">""</span>));
 <a class="jxr_linenumber" name="L1446" href="#L1446">1446</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
-<a class="jxr_linenumber" name="L1447" href="#L1447">1447</a>                 <strong class="jxr_keyword">null</strong>, StringUtils.chomp(<strong class="jxr_keyword">null</strong>, <span class="jxr_string">"foo"</span>));
+<a class="jxr_linenumber" name="L1447" href="#L1447">1447</a>                 <span class="jxr_string">"foobar"</span>, StringUtils.chomp(<span class="jxr_string">"foobar"</span>, <strong class="jxr_keyword">null</strong>));
 <a class="jxr_linenumber" name="L1448" href="#L1448">1448</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
-<a class="jxr_linenumber" name="L1449" href="#L1449">1449</a>                 <strong class="jxr_keyword">null</strong>, StringUtils.chomp(<strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L1449" href="#L1449">1449</a>                 <span class="jxr_string">""</span>, StringUtils.chomp(<span class="jxr_string">""</span>, <span class="jxr_string">"foo"</span>));
 <a class="jxr_linenumber" name="L1450" href="#L1450">1450</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
-<a class="jxr_linenumber" name="L1451" href="#L1451">1451</a>                 <strong class="jxr_keyword">null</strong>, StringUtils.chomp(<strong class="jxr_keyword">null</strong>, <span class="jxr_string">""</span>));
+<a class="jxr_linenumber" name="L1451" href="#L1451">1451</a>                 <span class="jxr_string">""</span>, StringUtils.chomp(<span class="jxr_string">""</span>, <strong class="jxr_keyword">null</strong>));
 <a class="jxr_linenumber" name="L1452" href="#L1452">1452</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
-<a class="jxr_linenumber" name="L1453" href="#L1453">1453</a>                 <span class="jxr_string">""</span>, StringUtils.chomp(<span class="jxr_string">"foo"</span>, <span class="jxr_string">"foo"</span>));
+<a class="jxr_linenumber" name="L1453" href="#L1453">1453</a>                 <span class="jxr_string">""</span>, StringUtils.chomp(<span class="jxr_string">""</span>, <span class="jxr_string">""</span>));
 <a class="jxr_linenumber" name="L1454" href="#L1454">1454</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
-<a class="jxr_linenumber" name="L1455" href="#L1455">1455</a>                 <span class="jxr_string">" "</span>, StringUtils.chomp(<span class="jxr_string">" foo"</span>, <span class="jxr_string">"foo"</span>));
+<a class="jxr_linenumber" name="L1455" href="#L1455">1455</a>                 <strong class="jxr_keyword">null</strong>, StringUtils.chomp(<strong class="jxr_keyword">null</strong>, <span class="jxr_string">"foo"</span>));
 <a class="jxr_linenumber" name="L1456" href="#L1456">1456</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
-<a class="jxr_linenumber" name="L1457" href="#L1457">1457</a>                 <span class="jxr_string">"foo "</span>, StringUtils.chomp(<span class="jxr_string">"foo "</span>, <span class="jxr_string">"foo"</span>));
-<a class="jxr_linenumber" name="L1458" href="#L1458">1458</a>     }
-<a class="jxr_linenumber" name="L1459" href="#L1459">1459</a> 
-<a class="jxr_linenumber" name="L1460" href="#L1460">1460</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="L1461" href="#L1461">1461</a>     @Test
-<a class="jxr_linenumber" name="L1462" href="#L1462">1462</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRightPad_StringInt() {
-<a class="jxr_linenumber" name="L1463" href="#L1463">1463</a>         assertNull(StringUtils.rightPad(<strong class="jxr_keyword">null</strong>, 5));
-<a class="jxr_linenumber" name="L1464" href="#L1464">1464</a>         assertEquals(<span class="jxr_string">"     "</span>, StringUtils.rightPad(<span class="jxr_string">""</span>, 5));
-<a class="jxr_linenumber" name="L1465" href="#L1465">1465</a>         assertEquals(<span class="jxr_string">"abc  "</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 5));
-<a class="jxr_linenumber" name="L1466" href="#L1466">1466</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 2));
-<a class="jxr_linenumber" name="L1467" href="#L1467">1467</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, -1));
-<a class="jxr_linenumber" name="L1468" href="#L1468">1468</a>     }
-<a class="jxr_linenumber" name="L1469" href="#L1469">1469</a> 
-<a class="jxr_linenumber" name="L1470" href="#L1470">1470</a>     @Test
-<a class="jxr_linenumber" name="L1471" href="#L1471">1471</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRightPad_StringIntChar() {
-<a class="jxr_linenumber" name="L1472" href="#L1472">1472</a>         assertNull(StringUtils.rightPad(<strong class="jxr_keyword">null</strong>, 5, ' '));
-<a class="jxr_linenumber" name="L1473" href="#L1473">1473</a>         assertEquals(<span class="jxr_string">"     "</span>, StringUtils.rightPad(<span class="jxr_string">""</span>, 5, ' '));
-<a class="jxr_linenumber" name="L1474" href="#L1474">1474</a>         assertEquals(<span class="jxr_string">"abc  "</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 5, ' '));
-<a class="jxr_linenumber" name="L1475" href="#L1475">1475</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 2, ' '));
-<a class="jxr_linenumber" name="L1476" href="#L1476">1476</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, -1, ' '));
-<a class="jxr_linenumber" name="L1477" href="#L1477">1477</a>         assertEquals(<span class="jxr_string">"abcxx"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 5, 'x'));
-<a class="jxr_linenumber" name="L1478" href="#L1478">1478</a>         <strong class="jxr_keyword">final</strong> String str = StringUtils.rightPad(<span class="jxr_string">"aaa"</span>, 10000, 'a');  <em class="jxr_comment">// bigger than pad length</em>
-<a class="jxr_linenumber" name="L1479" href="#L1479">1479</a>         assertEquals(10000, str.length());
-<a class="jxr_linenumber" name="L1480" href="#L1480">1480</a>         assertTrue(StringUtils.containsOnly(str, <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">char</strong>[] {'a'}));
-<a class="jxr_linenumber" name="L1481" href="#L1481">1481</a>     }
-<a class="jxr_linenumber" name="L1482" href="#L1482">1482</a> 
-<a class="jxr_linenumber" name="L1483" href="#L1483">1483</a>     @Test
-<a class="jxr_linenumber" name="L1484" href="#L1484">1484</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRightPad_StringIntString() {
-<a class="jxr_linenumber" name="L1485" href="#L1485">1485</a>         assertNull(StringUtils.rightPad(<strong class="jxr_keyword">null</strong>, 5, <span class="jxr_string">"-+"</span>));
-<a class="jxr_linenumber" name="L1486" href="#L1486">1486</a>         assertEquals(<span class="jxr_string">"     "</span>, StringUtils.rightPad(<span class="jxr_string">""</span>, 5, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1487" href="#L1487">1487</a>         assertNull(StringUtils.rightPad(<strong class="jxr_keyword">null</strong>, 8, <strong class="jxr_keyword">null</strong>));
-<a class="jxr_linenumber" name="L1488" href="#L1488">1488</a>         assertEquals(<span class="jxr_string">"abc-+-+"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 7, <span class="jxr_string">"-+"</span>));
-<a class="jxr_linenumber" name="L1489" href="#L1489">1489</a>         assertEquals(<span class="jxr_string">"abc-+~"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 6, <span class="jxr_string">"-+~"</span>));
-<a class="jxr_linenumber" name="L1490" href="#L1490">1490</a>         assertEquals(<span class="jxr_string">"abc-+"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 5, <span class="jxr_string">"-+~"</span>));
-<a class="jxr_linenumber" name="L1491" href="#L1491">1491</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 2, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1492" href="#L1492">1492</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, -1, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1493" href="#L1493">1493</a>         assertEquals(<span class="jxr_string">"abc  "</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 5, <strong class="jxr_keyword">null</strong>));
-<a class="jxr_linenumber" name="L1494" href="#L1494">1494</a>         assertEquals(<span class="jxr_string">"abc  "</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 5, <span class="jxr_string">""</span>));
-<a class="jxr_linenumber" name="L1495" href="#L1495">1495</a>     }
-<a class="jxr_linenumber" name="L1496" href="#L1496">1496</a>         
-<a class="jxr_linenumber" name="L1497" href="#L1497">1497</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="L1498" href="#L1498">1498</a>     @Test
-<a class="jxr_linenumber" name="L1499" href="#L1499">1499</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLeftPad_StringInt() {
-<a class="jxr_linenumber" name="L1500" href="#L1500">1500</a>         assertNull(StringUtils.leftPad(<strong class="jxr_keyword">null</strong>, 5));
-<a class="jxr_linenumber" name="L1501" href="#L1501">1501</a>         assertEquals(<span class="jxr_string">"     "</span>, StringUtils.leftPad(<span class="jxr_string">""</span>, 5));
-<a class="jxr_linenumber" name="L1502" href="#L1502">1502</a>         assertEquals(<span class="jxr_string">"  abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 5));
-<a class="jxr_linenumber" name="L1503" href="#L1503">1503</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 2));
-<a class="jxr_linenumber" name="L1504" href="#L1504">1504</a>     }
-<a class="jxr_linenumber" name="L1505" href="#L1505">1505</a>         
+<a class="jxr_linenumber" name="L1457" href="#L1457">1457</a>                 <strong class="jxr_keyword">null</strong>, StringUtils.chomp(<strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L1458" href="#L1458">1458</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
+<a class="jxr_linenumber" name="L1459" href="#L1459">1459</a>                 <strong class="jxr_keyword">null</strong>, StringUtils.chomp(<strong class="jxr_keyword">null</strong>, <span class="jxr_string">""</span>));
+<a class="jxr_linenumber" name="L1460" href="#L1460">1460</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
+<a class="jxr_linenumber" name="L1461" href="#L1461">1461</a>                 <span class="jxr_string">""</span>, StringUtils.chomp(<span class="jxr_string">"foo"</span>, <span class="jxr_string">"foo"</span>));
+<a class="jxr_linenumber" name="L1462" href="#L1462">1462</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
+<a class="jxr_linenumber" name="L1463" href="#L1463">1463</a>                 <span class="jxr_string">" "</span>, StringUtils.chomp(<span class="jxr_string">" foo"</span>, <span class="jxr_string">"foo"</span>));
+<a class="jxr_linenumber" name="L1464" href="#L1464">1464</a>         assertEquals(<span class="jxr_string">"chomp(String, String) failed"</span>,
+<a class="jxr_linenumber" name="L1465" href="#L1465">1465</a>                 <span class="jxr_string">"foo "</span>, StringUtils.chomp(<span class="jxr_string">"foo "</span>, <span class="jxr_string">"foo"</span>));
+<a class="jxr_linenumber" name="L1466" href="#L1466">1466</a>     }
+<a class="jxr_linenumber" name="L1467" href="#L1467">1467</a> 
+<a class="jxr_linenumber" name="L1468" href="#L1468">1468</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="L1469" href="#L1469">1469</a>     @Test
+<a class="jxr_linenumber" name="L1470" href="#L1470">1470</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRightPad_StringInt() {
+<a class="jxr_linenumber" name="L1471" href="#L1471">1471</a>         assertNull(StringUtils.rightPad(<strong class="jxr_keyword">null</strong>, 5));
+<a class="jxr_linenumber" name="L1472" href="#L1472">1472</a>         assertEquals(<span class="jxr_string">"     "</span>, StringUtils.rightPad(<span class="jxr_string">""</span>, 5));
+<a class="jxr_linenumber" name="L1473" href="#L1473">1473</a>         assertEquals(<span class="jxr_string">"abc  "</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 5));
+<a class="jxr_linenumber" name="L1474" href="#L1474">1474</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 2));
+<a class="jxr_linenumber" name="L1475" href="#L1475">1475</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, -1));
+<a class="jxr_linenumber" name="L1476" href="#L1476">1476</a>     }
+<a class="jxr_linenumber" name="L1477" href="#L1477">1477</a> 
+<a class="jxr_linenumber" name="L1478" href="#L1478">1478</a>     @Test
+<a class="jxr_linenumber" name="L1479" href="#L1479">1479</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRightPad_StringIntChar() {
+<a class="jxr_linenumber" name="L1480" href="#L1480">1480</a>         assertNull(StringUtils.rightPad(<strong class="jxr_keyword">null</strong>, 5, ' '));
+<a class="jxr_linenumber" name="L1481" href="#L1481">1481</a>         assertEquals(<span class="jxr_string">"     "</span>, StringUtils.rightPad(<span class="jxr_string">""</span>, 5, ' '));
+<a class="jxr_linenumber" name="L1482" href="#L1482">1482</a>         assertEquals(<span class="jxr_string">"abc  "</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 5, ' '));
+<a class="jxr_linenumber" name="L1483" href="#L1483">1483</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 2, ' '));
+<a class="jxr_linenumber" name="L1484" href="#L1484">1484</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, -1, ' '));
+<a class="jxr_linenumber" name="L1485" href="#L1485">1485</a>         assertEquals(<span class="jxr_string">"abcxx"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 5, 'x'));
+<a class="jxr_linenumber" name="L1486" href="#L1486">1486</a>         <strong class="jxr_keyword">final</strong> String str = StringUtils.rightPad(<span class="jxr_string">"aaa"</span>, 10000, 'a');  <em class="jxr_comment">// bigger than pad length</em>
+<a class="jxr_linenumber" name="L1487" href="#L1487">1487</a>         assertEquals(10000, str.length());
+<a class="jxr_linenumber" name="L1488" href="#L1488">1488</a>         assertTrue(StringUtils.containsOnly(str, <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">char</strong>[] {'a'}));
+<a class="jxr_linenumber" name="L1489" href="#L1489">1489</a>     }
+<a class="jxr_linenumber" name="L1490" href="#L1490">1490</a> 
+<a class="jxr_linenumber" name="L1491" href="#L1491">1491</a>     @Test
+<a class="jxr_linenumber" name="L1492" href="#L1492">1492</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRightPad_StringIntString() {
+<a class="jxr_linenumber" name="L1493" href="#L1493">1493</a>         assertNull(StringUtils.rightPad(<strong class="jxr_keyword">null</strong>, 5, <span class="jxr_string">"-+"</span>));
+<a class="jxr_linenumber" name="L1494" href="#L1494">1494</a>         assertEquals(<span class="jxr_string">"     "</span>, StringUtils.rightPad(<span class="jxr_string">""</span>, 5, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1495" href="#L1495">1495</a>         assertNull(StringUtils.rightPad(<strong class="jxr_keyword">null</strong>, 8, <strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L1496" href="#L1496">1496</a>         assertEquals(<span class="jxr_string">"abc-+-+"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 7, <span class="jxr_string">"-+"</span>));
+<a class="jxr_linenumber" name="L1497" href="#L1497">1497</a>         assertEquals(<span class="jxr_string">"abc-+~"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 6, <span class="jxr_string">"-+~"</span>));
+<a class="jxr_linenumber" name="L1498" href="#L1498">1498</a>         assertEquals(<span class="jxr_string">"abc-+"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 5, <span class="jxr_string">"-+~"</span>));
+<a class="jxr_linenumber" name="L1499" href="#L1499">1499</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 2, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1500" href="#L1500">1500</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, -1, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1501" href="#L1501">1501</a>         assertEquals(<span class="jxr_string">"abc  "</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 5, <strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L1502" href="#L1502">1502</a>         assertEquals(<span class="jxr_string">"abc  "</span>, StringUtils.rightPad(<span class="jxr_string">"abc"</span>, 5, <span class="jxr_string">""</span>));
+<a class="jxr_linenumber" name="L1503" href="#L1503">1503</a>     }
+<a class="jxr_linenumber" name="L1504" href="#L1504">1504</a>         
+<a class="jxr_linenumber" name="L1505" href="#L1505">1505</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
 <a class="jxr_linenumber" name="L1506" href="#L1506">1506</a>     @Test
-<a class="jxr_linenumber" name="L1507" href="#L1507">1507</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLeftPad_StringIntChar() {
-<a class="jxr_linenumber" name="L1508" href="#L1508">1508</a>         assertNull(StringUtils.leftPad(<strong class="jxr_keyword">null</strong>, 5, ' '));
-<a class="jxr_linenumber" name="L1509" href="#L1509">1509</a>         assertEquals(<span class="jxr_string">"     "</span>, StringUtils.leftPad(<span class="jxr_string">""</span>, 5, ' '));
-<a class="jxr_linenumber" name="L1510" href="#L1510">1510</a>         assertEquals(<span class="jxr_string">"  abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 5, ' '));
-<a class="jxr_linenumber" name="L1511" href="#L1511">1511</a>         assertEquals(<span class="jxr_string">"xxabc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 5, 'x'));
-<a class="jxr_linenumber" name="L1512" href="#L1512">1512</a>         assertEquals(<span class="jxr_string">"\uffff\uffffabc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 5, '\uffff'));
-<a class="jxr_linenumber" name="L1513" href="#L1513">1513</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 2, ' '));
-<a class="jxr_linenumber" name="L1514" href="#L1514">1514</a>         <strong class="jxr_keyword">final</strong> String str = StringUtils.leftPad(<span class="jxr_string">"aaa"</span>, 10000, 'a');  <em class="jxr_comment">// bigger than pad length</em>
-<a class="jxr_linenumber" name="L1515" href="#L1515">1515</a>         assertEquals(10000, str.length());
-<a class="jxr_linenumber" name="L1516" href="#L1516">1516</a>         assertTrue(StringUtils.containsOnly(str, <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">char</strong>[] {'a'}));
-<a class="jxr_linenumber" name="L1517" href="#L1517">1517</a>     }
-<a class="jxr_linenumber" name="L1518" href="#L1518">1518</a>         
-<a class="jxr_linenumber" name="L1519" href="#L1519">1519</a>     @Test
-<a class="jxr_linenumber" name="L1520" href="#L1520">1520</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLeftPad_StringIntString() {
-<a class="jxr_linenumber" name="L1521" href="#L1521">1521</a>         assertNull(StringUtils.leftPad(<strong class="jxr_keyword">null</strong>, 5, <span class="jxr_string">"-+"</span>));
-<a class="jxr_linenumber" name="L1522" href="#L1522">1522</a>         assertNull(StringUtils.leftPad(<strong class="jxr_keyword">null</strong>, 5, <strong class="jxr_keyword">null</strong>));
-<a class="jxr_linenumber" name="L1523" href="#L1523">1523</a>         assertEquals(<span class="jxr_string">"     "</span>, StringUtils.leftPad(<span class="jxr_string">""</span>, 5, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1524" href="#L1524">1524</a>         assertEquals(<span class="jxr_string">"-+-+abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 7, <span class="jxr_string">"-+"</span>));
-<a class="jxr_linenumber" name="L1525" href="#L1525">1525</a>         assertEquals(<span class="jxr_string">"-+~abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 6, <span class="jxr_string">"-+~"</span>));
-<a class="jxr_linenumber" name="L1526" href="#L1526">1526</a>         assertEquals(<span class="jxr_string">"-+abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 5, <span class="jxr_string">"-+~"</span>));
-<a class="jxr_linenumber" name="L1527" href="#L1527">1527</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 2, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1528" href="#L1528">1528</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, -1, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1529" href="#L1529">1529</a>         assertEquals(<span class="jxr_string">"  abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 5, <strong class="jxr_keyword">null</strong>));
-<a class="jxr_linenumber" name="L1530" href="#L1530">1530</a>         assertEquals(<span class="jxr_string">"  abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 5, <span class="jxr_string">""</span>));
-<a class="jxr_linenumber" name="L1531" href="#L1531">1531</a>     }
-<a class="jxr_linenumber" name="L1532" href="#L1532">1532</a> 
-<a class="jxr_linenumber" name="L1533" href="#L1533">1533</a>     @Test
-<a class="jxr_linenumber" name="L1534" href="#L1534">1534</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLengthString() {
-<a class="jxr_linenumber" name="L1535" href="#L1535">1535</a>         assertEquals(0, StringUtils.length(<strong class="jxr_keyword">null</strong>));
-<a class="jxr_linenumber" name="L1536" href="#L1536">1536</a>         assertEquals(0, StringUtils.length(<span class="jxr_string">""</span>));
-<a class="jxr_linenumber" name="L1537" href="#L1537">1537</a>         assertEquals(0, StringUtils.length(StringUtils.EMPTY));
-<a class="jxr_linenumber" name="L1538" href="#L1538">1538</a>         assertEquals(1, StringUtils.length(<span class="jxr_string">"A"</span>));
-<a class="jxr_linenumber" name="L1539" href="#L1539">1539</a>         assertEquals(1, StringUtils.length(<span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1540" href="#L1540">1540</a>         assertEquals(8, StringUtils.length(<span class="jxr_string">"ABCDEFGH"</span>));
-<a class="jxr_linenumber" name="L1541" href="#L1541">1541</a>     }
-<a class="jxr_linenumber" name="L1542" href="#L1542">1542</a> 
-<a class="jxr_linenumber" name="L1543" href="#L1543">1543</a>     @Test
-<a class="jxr_linenumber" name="L1544" href="#L1544">1544</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLengthStringBuffer() {
-<a class="jxr_linenumber" name="L1545" href="#L1545">1545</a>         assertEquals(0, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuffer(<span class="jxr_string">""</span>)));
-<a class="jxr_linenumber" name="L1546" href="#L1546">1546</a>         assertEquals(0, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuffer(StringUtils.EMPTY)));
-<a class="jxr_linenumber" name="L1547" href="#L1547">1547</a>         assertEquals(1, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuffer(<span class="jxr_string">"A"</span>)));
-<a class="jxr_linenumber" name="L1548" href="#L1548">1548</a>         assertEquals(1, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuffer(<span class="jxr_string">" "</span>)));
-<a class="jxr_linenumber" name="L1549" href="#L1549">1549</a>         assertEquals(8, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuffer(<span class="jxr_string">"ABCDEFGH"</span>)));
-<a class="jxr_linenumber" name="L1550" href="#L1550">1550</a>     }
-<a class="jxr_linenumber" name="L1551" href="#L1551">1551</a> 
-<a class="jxr_linenumber" name="L1552" href="#L1552">1552</a>     @Test
-<a class="jxr_linenumber" name="L1553" href="#L1553">1553</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLengthStringBuilder() {
-<a class="jxr_linenumber" name="L1554" href="#L1554">1554</a>         assertEquals(0, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuilder(<span class="jxr_string">""</span>)));
-<a class="jxr_linenumber" name="L1555" href="#L1555">1555</a>         assertEquals(0, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuilder(StringUtils.EMPTY)));
-<a class="jxr_linenumber" name="L1556" href="#L1556">1556</a>         assertEquals(1, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuilder(<span class="jxr_string">"A"</span>)));
-<a class="jxr_linenumber" name="L1557" href="#L1557">1557</a>         assertEquals(1, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuilder(<span class="jxr_string">" "</span>)));
-<a class="jxr_linenumber" name="L1558" href="#L1558">1558</a>         assertEquals(8, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuilder(<span class="jxr_string">"ABCDEFGH"</span>)));
-<a class="jxr_linenumber" name="L1559" href="#L1559">1559</a>     }
-<a class="jxr_linenumber" name="L1560" href="#L1560">1560</a>     
-<a class="jxr_linenumber" name="L1561" href="#L1561">1561</a>     @Test
-<a class="jxr_linenumber" name="L1562" href="#L1562">1562</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLength_CharBuffer() {
-<a class="jxr_linenumber" name="L1563" href="#L1563">1563</a>         assertEquals(0, StringUtils.length(CharBuffer.wrap(<span class="jxr_string">""</span>)));
-<a class="jxr_linenumber" name="L1564" href="#L1564">1564</a>         assertEquals(1, StringUtils.length(CharBuffer.wrap(<span class="jxr_string">"A"</span>)));
-<a class="jxr_linenumber" name="L1565" href="#L1565">1565</a>         assertEquals(1, StringUtils.length(CharBuffer.wrap(<span class="jxr_string">" "</span>)));
-<a class="jxr_linenumber" name="L1566" href="#L1566">1566</a>         assertEquals(8, StringUtils.length(CharBuffer.wrap(<span class="jxr_string">"ABCDEFGH"</span>)));
+<a class="jxr_linenumber" name="L1507" href="#L1507">1507</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLeftPad_StringInt() {
+<a class="jxr_linenumber" name="L1508" href="#L1508">1508</a>         assertNull(StringUtils.leftPad(<strong class="jxr_keyword">null</strong>, 5));
+<a class="jxr_linenumber" name="L1509" href="#L1509">1509</a>         assertEquals(<span class="jxr_string">"     "</span>, StringUtils.leftPad(<span class="jxr_string">""</span>, 5));
+<a class="jxr_linenumber" name="L1510" href="#L1510">1510</a>         assertEquals(<span class="jxr_string">"  abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 5));
+<a class="jxr_linenumber" name="L1511" href="#L1511">1511</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 2));
+<a class="jxr_linenumber" name="L1512" href="#L1512">1512</a>     }
+<a class="jxr_linenumber" name="L1513" href="#L1513">1513</a>         
+<a class="jxr_linenumber" name="L1514" href="#L1514">1514</a>     @Test
+<a class="jxr_linenumber" name="L1515" href="#L1515">1515</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLeftPad_StringIntChar() {
+<a class="jxr_linenumber" name="L1516" href="#L1516">1516</a>         assertNull(StringUtils.leftPad(<strong class="jxr_keyword">null</strong>, 5, ' '));
+<a class="jxr_linenumber" name="L1517" href="#L1517">1517</a>         assertEquals(<span class="jxr_string">"     "</span>, StringUtils.leftPad(<span class="jxr_string">""</span>, 5, ' '));
+<a class="jxr_linenumber" name="L1518" href="#L1518">1518</a>         assertEquals(<span class="jxr_string">"  abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 5, ' '));
+<a class="jxr_linenumber" name="L1519" href="#L1519">1519</a>         assertEquals(<span class="jxr_string">"xxabc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 5, 'x'));
+<a class="jxr_linenumber" name="L1520" href="#L1520">1520</a>         assertEquals(<span class="jxr_string">"\uffff\uffffabc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 5, '\uffff'));
+<a class="jxr_linenumber" name="L1521" href="#L1521">1521</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 2, ' '));
+<a class="jxr_linenumber" name="L1522" href="#L1522">1522</a>         <strong class="jxr_keyword">final</strong> String str = StringUtils.leftPad(<span class="jxr_string">"aaa"</span>, 10000, 'a');  <em class="jxr_comment">// bigger than pad length</em>
+<a class="jxr_linenumber" name="L1523" href="#L1523">1523</a>         assertEquals(10000, str.length());
+<a class="jxr_linenumber" name="L1524" href="#L1524">1524</a>         assertTrue(StringUtils.containsOnly(str, <strong class="jxr_keyword">new</strong> <strong class="jxr_keyword">char</strong>[] {'a'}));
+<a class="jxr_linenumber" name="L1525" href="#L1525">1525</a>     }
+<a class="jxr_linenumber" name="L1526" href="#L1526">1526</a>         
+<a class="jxr_linenumber" name="L1527" href="#L1527">1527</a>     @Test
+<a class="jxr_linenumber" name="L1528" href="#L1528">1528</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLeftPad_StringIntString() {
+<a class="jxr_linenumber" name="L1529" href="#L1529">1529</a>         assertNull(StringUtils.leftPad(<strong class="jxr_keyword">null</strong>, 5, <span class="jxr_string">"-+"</span>));
+<a class="jxr_linenumber" name="L1530" href="#L1530">1530</a>         assertNull(StringUtils.leftPad(<strong class="jxr_keyword">null</strong>, 5, <strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L1531" href="#L1531">1531</a>         assertEquals(<span class="jxr_string">"     "</span>, StringUtils.leftPad(<span class="jxr_string">""</span>, 5, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1532" href="#L1532">1532</a>         assertEquals(<span class="jxr_string">"-+-+abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 7, <span class="jxr_string">"-+"</span>));
+<a class="jxr_linenumber" name="L1533" href="#L1533">1533</a>         assertEquals(<span class="jxr_string">"-+~abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 6, <span class="jxr_string">"-+~"</span>));
+<a class="jxr_linenumber" name="L1534" href="#L1534">1534</a>         assertEquals(<span class="jxr_string">"-+abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 5, <span class="jxr_string">"-+~"</span>));
+<a class="jxr_linenumber" name="L1535" href="#L1535">1535</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 2, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1536" href="#L1536">1536</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, -1, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1537" href="#L1537">1537</a>         assertEquals(<span class="jxr_string">"  abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 5, <strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L1538" href="#L1538">1538</a>         assertEquals(<span class="jxr_string">"  abc"</span>, StringUtils.leftPad(<span class="jxr_string">"abc"</span>, 5, <span class="jxr_string">""</span>));
+<a class="jxr_linenumber" name="L1539" href="#L1539">1539</a>     }
+<a class="jxr_linenumber" name="L1540" href="#L1540">1540</a> 
+<a class="jxr_linenumber" name="L1541" href="#L1541">1541</a>     @Test
+<a class="jxr_linenumber" name="L1542" href="#L1542">1542</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLengthString() {
+<a class="jxr_linenumber" name="L1543" href="#L1543">1543</a>         assertEquals(0, StringUtils.length(<strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L1544" href="#L1544">1544</a>         assertEquals(0, StringUtils.length(<span class="jxr_string">""</span>));
+<a class="jxr_linenumber" name="L1545" href="#L1545">1545</a>         assertEquals(0, StringUtils.length(StringUtils.EMPTY));
+<a class="jxr_linenumber" name="L1546" href="#L1546">1546</a>         assertEquals(1, StringUtils.length(<span class="jxr_string">"A"</span>));
+<a class="jxr_linenumber" name="L1547" href="#L1547">1547</a>         assertEquals(1, StringUtils.length(<span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1548" href="#L1548">1548</a>         assertEquals(8, StringUtils.length(<span class="jxr_string">"ABCDEFGH"</span>));
+<a class="jxr_linenumber" name="L1549" href="#L1549">1549</a>     }
+<a class="jxr_linenumber" name="L1550" href="#L1550">1550</a> 
+<a class="jxr_linenumber" name="L1551" href="#L1551">1551</a>     @Test
+<a class="jxr_linenumber" name="L1552" href="#L1552">1552</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLengthStringBuffer() {
+<a class="jxr_linenumber" name="L1553" href="#L1553">1553</a>         assertEquals(0, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuffer(<span class="jxr_string">""</span>)));
+<a class="jxr_linenumber" name="L1554" href="#L1554">1554</a>         assertEquals(0, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuffer(StringUtils.EMPTY)));
+<a class="jxr_linenumber" name="L1555" href="#L1555">1555</a>         assertEquals(1, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuffer(<span class="jxr_string">"A"</span>)));
+<a class="jxr_linenumber" name="L1556" href="#L1556">1556</a>         assertEquals(1, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuffer(<span class="jxr_string">" "</span>)));
+<a class="jxr_linenumber" name="L1557" href="#L1557">1557</a>         assertEquals(8, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuffer(<span class="jxr_string">"ABCDEFGH"</span>)));
+<a class="jxr_linenumber" name="L1558" href="#L1558">1558</a>     }
+<a class="jxr_linenumber" name="L1559" href="#L1559">1559</a> 
+<a class="jxr_linenumber" name="L1560" href="#L1560">1560</a>     @Test
+<a class="jxr_linenumber" name="L1561" href="#L1561">1561</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLengthStringBuilder() {
+<a class="jxr_linenumber" name="L1562" href="#L1562">1562</a>         assertEquals(0, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuilder(<span class="jxr_string">""</span>)));
+<a class="jxr_linenumber" name="L1563" href="#L1563">1563</a>         assertEquals(0, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuilder(StringUtils.EMPTY)));
+<a class="jxr_linenumber" name="L1564" href="#L1564">1564</a>         assertEquals(1, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuilder(<span class="jxr_string">"A"</span>)));
+<a class="jxr_linenumber" name="L1565" href="#L1565">1565</a>         assertEquals(1, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuilder(<span class="jxr_string">" "</span>)));
+<a class="jxr_linenumber" name="L1566" href="#L1566">1566</a>         assertEquals(8, StringUtils.length(<strong class="jxr_keyword">new</strong> StringBuilder(<span class="jxr_string">"ABCDEFGH"</span>)));
 <a class="jxr_linenumber" name="L1567" href="#L1567">1567</a>     }
-<a class="jxr_linenumber" name="L1568" href="#L1568">1568</a> 
-<a class="jxr_linenumber" name="L1569" href="#L1569">1569</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="L1570" href="#L1570">1570</a>     @Test
-<a class="jxr_linenumber" name="L1571" href="#L1571">1571</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCenter_StringInt() {
-<a class="jxr_linenumber" name="L1572" href="#L1572">1572</a>         assertNull(StringUtils.center(<strong class="jxr_keyword">null</strong>, -1));
-<a class="jxr_linenumber" name="L1573" href="#L1573">1573</a>         assertNull(StringUtils.center(<strong class="jxr_keyword">null</strong>, 4));
-<a class="jxr_linenumber" name="L1574" href="#L1574">1574</a>         assertEquals(<span class="jxr_string">"    "</span>, StringUtils.center(<span class="jxr_string">""</span>, 4));
-<a class="jxr_linenumber" name="L1575" href="#L1575">1575</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 0));
-<a class="jxr_linenumber" name="L1576" href="#L1576">1576</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, -1));
-<a class="jxr_linenumber" name="L1577" href="#L1577">1577</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 1));
-<a class="jxr_linenumber" name="L1578" href="#L1578">1578</a>         assertEquals(<span class="jxr_string">"    "</span>, StringUtils.center(<span class="jxr_string">""</span>, 4));
-<a class="jxr_linenumber" name="L1579" href="#L1579">1579</a>         assertEquals(<span class="jxr_string">" ab "</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 4));
-<a class="jxr_linenumber" name="L1580" href="#L1580">1580</a>         assertEquals(<span class="jxr_string">"abcd"</span>, StringUtils.center(<span class="jxr_string">"abcd"</span>, 2));
-<a class="jxr_linenumber" name="L1581" href="#L1581">1581</a>         assertEquals(<span class="jxr_string">" a  "</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 4));
-<a class="jxr_linenumber" name="L1582" href="#L1582">1582</a>         assertEquals(<span class="jxr_string">"  a  "</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 5));
-<a class="jxr_linenumber" name="L1583" href="#L1583">1583</a>     }
-<a class="jxr_linenumber" name="L1584" href="#L1584">1584</a>     
-<a class="jxr_linenumber" name="L1585" href="#L1585">1585</a>     @Test
-<a class="jxr_linenumber" name="L1586" href="#L1586">1586</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCenter_StringIntChar() {
-<a class="jxr_linenumber" name="L1587" href="#L1587">1587</a>         assertNull(StringUtils.center(<strong class="jxr_keyword">null</strong>, -1, ' '));
-<a class="jxr_linenumber" name="L1588" href="#L1588">1588</a>         assertNull(StringUtils.center(<strong class="jxr_keyword">null</strong>, 4, ' '));
-<a class="jxr_linenumber" name="L1589" href="#L1589">1589</a>         assertEquals(<span class="jxr_string">"    "</span>, StringUtils.center(<span class="jxr_string">""</span>, 4, ' '));
-<a class="jxr_linenumber" name="L1590" href="#L1590">1590</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 0, ' '));
-<a class="jxr_linenumber" name="L1591" href="#L1591">1591</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, -1, ' '));
-<a class="jxr_linenumber" name="L1592" href="#L1592">1592</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 1, ' '));
-<a class="jxr_linenumber" name="L1593" href="#L1593">1593</a>         assertEquals(<span class="jxr_string">"    "</span>, StringUtils.center(<span class="jxr_string">""</span>, 4, ' '));
-<a class="jxr_linenumber" name="L1594" href="#L1594">1594</a>         assertEquals(<span class="jxr_string">" ab "</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 4, ' '));
-<a class="jxr_linenumber" name="L1595" href="#L1595">1595</a>         assertEquals(<span class="jxr_string">"abcd"</span>, StringUtils.center(<span class="jxr_string">"abcd"</span>, 2, ' '));
-<a class="jxr_linenumber" name="L1596" href="#L1596">1596</a>         assertEquals(<span class="jxr_string">" a  "</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 4, ' '));
-<a class="jxr_linenumber" name="L1597" href="#L1597">1597</a>         assertEquals(<span class="jxr_string">"  a  "</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 5, ' '));
-<a class="jxr_linenumber" name="L1598" href="#L1598">1598</a>         assertEquals(<span class="jxr_string">"xxaxx"</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 5, 'x'));
-<a class="jxr_linenumber" name="L1599" href="#L1599">1599</a>     }
-<a class="jxr_linenumber" name="L1600" href="#L1600">1600</a>     
-<a class="jxr_linenumber" name="L1601" href="#L1601">1601</a>     @Test
-<a class="jxr_linenumber" name="L1602" href="#L1602">1602</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCenter_StringIntString() {
-<a class="jxr_linenumber" name="L1603" href="#L1603">1603</a>         assertNull(StringUtils.center(<strong class="jxr_keyword">null</strong>, 4, <strong class="jxr_keyword">null</strong>));
-<a class="jxr_linenumber" name="L1604" href="#L1604">1604</a>         assertNull(StringUtils.center(<strong class="jxr_keyword">null</strong>, -1, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1605" href="#L1605">1605</a>         assertNull(StringUtils.center(<strong class="jxr_keyword">null</strong>, 4, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1606" href="#L1606">1606</a>         assertEquals(<span class="jxr_string">"    "</span>, StringUtils.center(<span class="jxr_string">""</span>, 4, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1607" href="#L1607">1607</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 0, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1608" href="#L1608">1608</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, -1, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1609" href="#L1609">1609</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 1, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1610" href="#L1610">1610</a>         assertEquals(<span class="jxr_string">"    "</span>, StringUtils.center(<span class="jxr_string">""</span>, 4, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1611" href="#L1611">1611</a>         assertEquals(<span class="jxr_string">" ab "</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 4, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1612" href="#L1612">1612</a>         assertEquals(<span class="jxr_string">"abcd"</span>, StringUtils.center(<span class="jxr_string">"abcd"</span>, 2, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1613" href="#L1613">1613</a>         assertEquals(<span class="jxr_string">" a  "</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 4, <span class="jxr_string">" "</span>));
-<a class="jxr_linenumber" name="L1614" href="#L1614">1614</a>         assertEquals(<span class="jxr_string">"yayz"</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 4, <span class="jxr_string">"yz"</span>));
-<a class="jxr_linenumber" name="L1615" href="#L1615">1615</a>         assertEquals(<span class="jxr_string">"yzyayzy"</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 7, <span class="jxr_string">"yz"</span>));
-<a class="jxr_linenumber" name="L1616" href="#L1616">1616</a>         assertEquals(<span class="jxr_string">"  abc  "</span>, StringUtils.center(<span class="jxr_string">"abc"</span>, 7, <strong class="jxr_keyword">null</strong>));
-<a class="jxr_linenumber" name="L1617" href="#L1617">1617</a>         assertEquals(<span class="jxr_string">"  abc  "</span>, StringUtils.center(<span class="jxr_string">"abc"</span>, 7, <span class="jxr_string">""</span>));
-<a class="jxr_linenumber" name="L1618" href="#L1618">1618</a>     }
-<a class="jxr_linenumber" name="L1619" href="#L1619">1619</a> 
-<a class="jxr_linenumber" name="L1620" href="#L1620">1620</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="L1621" href="#L1621">1621</a>     @Test
-<a class="jxr_linenumber" name="L1622" href="#L1622">1622</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testReverse_String() {
-<a class="jxr_linenumber" name="L1623" href="#L1623">1623</a>         assertNull(StringUtils.reverse(<strong class="jxr_keyword">null</strong>) );
-<a class="jxr_linenumber" name="L1624" href="#L1624">1624</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.reverse(<span class="jxr_string">""</span>) );
-<a class="jxr_linenumber" name="L1625" href="#L1625">1625</a>         assertEquals(<span class="jxr_string">"sdrawkcab"</span>, StringUtils.reverse(<span class="jxr_string">"backwards"</span>) );
+<a class="jxr_linenumber" name="L1568" href="#L1568">1568</a>     
+<a class="jxr_linenumber" name="L1569" href="#L1569">1569</a>     @Test
+<a class="jxr_linenumber" name="L1570" href="#L1570">1570</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testLength_CharBuffer() {
+<a class="jxr_linenumber" name="L1571" href="#L1571">1571</a>         assertEquals(0, StringUtils.length(CharBuffer.wrap(<span class="jxr_string">""</span>)));
+<a class="jxr_linenumber" name="L1572" href="#L1572">1572</a>         assertEquals(1, StringUtils.length(CharBuffer.wrap(<span class="jxr_string">"A"</span>)));
+<a class="jxr_linenumber" name="L1573" href="#L1573">1573</a>         assertEquals(1, StringUtils.length(CharBuffer.wrap(<span class="jxr_string">" "</span>)));
+<a class="jxr_linenumber" name="L1574" href="#L1574">1574</a>         assertEquals(8, StringUtils.length(CharBuffer.wrap(<span class="jxr_string">"ABCDEFGH"</span>)));
+<a class="jxr_linenumber" name="L1575" href="#L1575">1575</a>     }
+<a class="jxr_linenumber" name="L1576" href="#L1576">1576</a> 
+<a class="jxr_linenumber" name="L1577" href="#L1577">1577</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="L1578" href="#L1578">1578</a>     @Test
+<a class="jxr_linenumber" name="L1579" href="#L1579">1579</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCenter_StringInt() {
+<a class="jxr_linenumber" name="L1580" href="#L1580">1580</a>         assertNull(StringUtils.center(<strong class="jxr_keyword">null</strong>, -1));
+<a class="jxr_linenumber" name="L1581" href="#L1581">1581</a>         assertNull(StringUtils.center(<strong class="jxr_keyword">null</strong>, 4));
+<a class="jxr_linenumber" name="L1582" href="#L1582">1582</a>         assertEquals(<span class="jxr_string">"    "</span>, StringUtils.center(<span class="jxr_string">""</span>, 4));
+<a class="jxr_linenumber" name="L1583" href="#L1583">1583</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 0));
+<a class="jxr_linenumber" name="L1584" href="#L1584">1584</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, -1));
+<a class="jxr_linenumber" name="L1585" href="#L1585">1585</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 1));
+<a class="jxr_linenumber" name="L1586" href="#L1586">1586</a>         assertEquals(<span class="jxr_string">"    "</span>, StringUtils.center(<span class="jxr_string">""</span>, 4));
+<a class="jxr_linenumber" name="L1587" href="#L1587">1587</a>         assertEquals(<span class="jxr_string">" ab "</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 4));
+<a class="jxr_linenumber" name="L1588" href="#L1588">1588</a>         assertEquals(<span class="jxr_string">"abcd"</span>, StringUtils.center(<span class="jxr_string">"abcd"</span>, 2));
+<a class="jxr_linenumber" name="L1589" href="#L1589">1589</a>         assertEquals(<span class="jxr_string">" a  "</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 4));
+<a class="jxr_linenumber" name="L1590" href="#L1590">1590</a>         assertEquals(<span class="jxr_string">"  a  "</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 5));
+<a class="jxr_linenumber" name="L1591" href="#L1591">1591</a>     }
+<a class="jxr_linenumber" name="L1592" href="#L1592">1592</a>     
+<a class="jxr_linenumber" name="L1593" href="#L1593">1593</a>     @Test
+<a class="jxr_linenumber" name="L1594" href="#L1594">1594</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCenter_StringIntChar() {
+<a class="jxr_linenumber" name="L1595" href="#L1595">1595</a>         assertNull(StringUtils.center(<strong class="jxr_keyword">null</strong>, -1, ' '));
+<a class="jxr_linenumber" name="L1596" href="#L1596">1596</a>         assertNull(StringUtils.center(<strong class="jxr_keyword">null</strong>, 4, ' '));
+<a class="jxr_linenumber" name="L1597" href="#L1597">1597</a>         assertEquals(<span class="jxr_string">"    "</span>, StringUtils.center(<span class="jxr_string">""</span>, 4, ' '));
+<a class="jxr_linenumber" name="L1598" href="#L1598">1598</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 0, ' '));
+<a class="jxr_linenumber" name="L1599" href="#L1599">1599</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, -1, ' '));
+<a class="jxr_linenumber" name="L1600" href="#L1600">1600</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 1, ' '));
+<a class="jxr_linenumber" name="L1601" href="#L1601">1601</a>         assertEquals(<span class="jxr_string">"    "</span>, StringUtils.center(<span class="jxr_string">""</span>, 4, ' '));
+<a class="jxr_linenumber" name="L1602" href="#L1602">1602</a>         assertEquals(<span class="jxr_string">" ab "</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 4, ' '));
+<a class="jxr_linenumber" name="L1603" href="#L1603">1603</a>         assertEquals(<span class="jxr_string">"abcd"</span>, StringUtils.center(<span class="jxr_string">"abcd"</span>, 2, ' '));
+<a class="jxr_linenumber" name="L1604" href="#L1604">1604</a>         assertEquals(<span class="jxr_string">" a  "</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 4, ' '));
+<a class="jxr_linenumber" name="L1605" href="#L1605">1605</a>         assertEquals(<span class="jxr_string">"  a  "</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 5, ' '));
+<a class="jxr_linenumber" name="L1606" href="#L1606">1606</a>         assertEquals(<span class="jxr_string">"xxaxx"</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 5, 'x'));
+<a class="jxr_linenumber" name="L1607" href="#L1607">1607</a>     }
+<a class="jxr_linenumber" name="L1608" href="#L1608">1608</a>     
+<a class="jxr_linenumber" name="L1609" href="#L1609">1609</a>     @Test
+<a class="jxr_linenumber" name="L1610" href="#L1610">1610</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testCenter_StringIntString() {
+<a class="jxr_linenumber" name="L1611" href="#L1611">1611</a>         assertNull(StringUtils.center(<strong class="jxr_keyword">null</strong>, 4, <strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L1612" href="#L1612">1612</a>         assertNull(StringUtils.center(<strong class="jxr_keyword">null</strong>, -1, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1613" href="#L1613">1613</a>         assertNull(StringUtils.center(<strong class="jxr_keyword">null</strong>, 4, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1614" href="#L1614">1614</a>         assertEquals(<span class="jxr_string">"    "</span>, StringUtils.center(<span class="jxr_string">""</span>, 4, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1615" href="#L1615">1615</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 0, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1616" href="#L1616">1616</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, -1, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1617" href="#L1617">1617</a>         assertEquals(<span class="jxr_string">"ab"</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 1, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1618" href="#L1618">1618</a>         assertEquals(<span class="jxr_string">"    "</span>, StringUtils.center(<span class="jxr_string">""</span>, 4, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1619" href="#L1619">1619</a>         assertEquals(<span class="jxr_string">" ab "</span>, StringUtils.center(<span class="jxr_string">"ab"</span>, 4, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1620" href="#L1620">1620</a>         assertEquals(<span class="jxr_string">"abcd"</span>, StringUtils.center(<span class="jxr_string">"abcd"</span>, 2, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1621" href="#L1621">1621</a>         assertEquals(<span class="jxr_string">" a  "</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 4, <span class="jxr_string">" "</span>));
+<a class="jxr_linenumber" name="L1622" href="#L1622">1622</a>         assertEquals(<span class="jxr_string">"yayz"</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 4, <span class="jxr_string">"yz"</span>));
+<a class="jxr_linenumber" name="L1623" href="#L1623">1623</a>         assertEquals(<span class="jxr_string">"yzyayzy"</span>, StringUtils.center(<span class="jxr_string">"a"</span>, 7, <span class="jxr_string">"yz"</span>));
+<a class="jxr_linenumber" name="L1624" href="#L1624">1624</a>         assertEquals(<span class="jxr_string">"  abc  "</span>, StringUtils.center(<span class="jxr_string">"abc"</span>, 7, <strong class="jxr_keyword">null</strong>));
+<a class="jxr_linenumber" name="L1625" href="#L1625">1625</a>         assertEquals(<span class="jxr_string">"  abc  "</span>, StringUtils.center(<span class="jxr_string">"abc"</span>, 7, <span class="jxr_string">""</span>));
 <a class="jxr_linenumber" name="L1626" href="#L1626">1626</a>     }
-<a class="jxr_linenumber" name="L1627" href="#L1627">1627</a>         
-<a class="jxr_linenumber" name="L1628" href="#L1628">1628</a>     @Test
-<a class="jxr_linenumber" name="L1629" href="#L1629">1629</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testReverseDelimited_StringChar() {
-<a class="jxr_linenumber" name="L1630" href="#L1630">1630</a>         assertNull(StringUtils.reverseDelimited(<strong class="jxr_keyword">null</strong>, '.') );
-<a class="jxr_linenumber" name="L1631" href="#L1631">1631</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.reverseDelimited(<span class="jxr_string">""</span>, '.') );
-<a class="jxr_linenumber" name="L1632" href="#L1632">1632</a>         assertEquals(<span class="jxr_string">"c.b.a"</span>, StringUtils.reverseDelimited(<span class="jxr_string">"a.b.c"</span>, '.') );
-<a class="jxr_linenumber" name="L1633" href="#L1633">1633</a>         assertEquals(<span class="jxr_string">"a b c"</span>, StringUtils.reverseDelimited(<span class="jxr_string">"a b c"</span>, '.') );
-<a class="jxr_linenumber" name="L1634" href="#L1634">1634</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.reverseDelimited(<span class="jxr_string">""</span>, '.') );
-<a class="jxr_linenumber" name="L1635" href="#L1635">1635</a>     }
-<a class="jxr_linenumber" name="L1636" href="#L1636">1636</a> 
-<a class="jxr_linenumber" name="L1637" href="#L1637">1637</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
-<a class="jxr_linenumber" name="L1638" href="#L1638">1638</a>     @Test
-<a class="jxr_linenumber" name="L1639" href="#L1639">1639</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testDefault_String() {
-<a class="jxr_linenumber" name="L1640" href="#L1640">1640</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.defaultString(<strong class="jxr_keyword">null</strong>));
-<a class="jxr_linenumber" name="L1641" href="#L1641">1641</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.defaultString(<span class="jxr_string">""</span>));
-<a class="jxr_linenumber" name="L1642" href="#L1642">1642</a>         assertEquals(<span class="jxr_string">"abc"</span>, StringUtils.defaultString(<span class="jxr_string">"abc"</span>));
-<a class="jxr_linenumber" name="L1643" href="#L1643">1643</a>     }
-<a class="jxr_linenumber" name="L1644" href="#L1644">1644</a> 
+<a class="jxr_linenumber" name="L1627" href="#L1627">1627</a> 
+<a class="jxr_linenumber" name="L1628" href="#L1628">1628</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>
+<a class="jxr_linenumber" name="L1629" href="#L1629">1629</a>     @Test
+<a class="jxr_linenumber" name="L1630" href="#L1630">1630</a>     <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testRotate_StringInt() {
+<a class="jxr_linenumber" name="L1631" href="#L1631">1631</a>         assertEquals(<strong class="jxr_keyword">null</strong>, StringUtils.rotate(<strong class="jxr_keyword">null</strong>, 1));
+<a class="jxr_linenumber" name="L1632" href="#L1632">1632</a>         assertEquals(<span class="jxr_string">""</span>, StringUtils.rotate(<span class="jxr_string">""</span>, 1));
+<a class="jxr_linenumber" name="L1633" href="#L1633">1633</a>         assertEquals(<span class="jxr_string">"abcdefg"</span>, StringUtils.rotate(<span class="jxr_string">"abcdefg"</span>, 0));
+<a class="jxr_linenumber" name="L1634" href="#L1634">1634</a>         assertEquals(<span class="jxr_string">"fgabcde"</span>, StringUtils.rotate(<span class="jxr_string">"abcdefg"</span>, 2));
+<a class="jxr_linenumber" name="L1635" href="#L1635">1635</a>         assertEquals(<span class="jxr_string">"cdefgab"</span>, StringUtils.rotate(<span class="jxr_string">"abcdefg"</span>, -2));
+<a class="jxr_linenumber" name="L1636" href="#L1636">1636</a>         assertEquals(<span class="jxr_string">"abcdefg"</span>, StringUtils.rotate(<span class="jxr_string">"abcdefg"</span>, 7));
+<a class="jxr_linenumber" name="L1637" href="#L1637">1637</a>         assertEquals(<span class="jxr_string">"abcdefg"</span>, StringUtils.rotate(<span class="jxr_string">"abcdefg"</span>, -7));
+<a class="jxr_linenumber" name="L1638" href="#L1638">1638</a>         assertEquals(<span class="jxr_string">"fgabcde"</span>, StringUtils.rotate(<span class="jxr_string">"abcdefg"</span>, 9));
+<a class="jxr_linenumber" name="L1639" href="#L1639">1639</a>         assertEquals(<span class="jxr_string">"cdefgab"</span>, StringUtils.rotate(<span class="jxr_string">"abcdefg"</span>, -9));
+<a class="jxr_linenumber" name="L1640" href="#L1640">1640</a>         assertEquals(<span class="jxr_string">"efgabcd"</span>, StringUtils.rotate(<span class="jxr_string">"abcdefg"</span>, 17));
+<a class="jxr_linenumber" name="L1641" href="#L1641">1641</a>         assertEquals(<span class="jxr_string">"defgabc"</span>, StringUtils.rotate(<span class="jxr_string">"abcdefg"</span>, -17));
+<a class="jxr_linenumber" name="L1642" href="#L1642">1642</a>     }
+<a class="jxr_linenumber" name="L1643" href="#L1643">1643</a> 
+<a class="jxr_linenumber" name="L1644" href="#L1644">1644</a>     <em class="jxr_comment">//-----------------------------------------------------------------------</em>

[... 1773 lines stripped ...]


Mime
View raw message