commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r883363 [32/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/builder/class-use/ apidocs/org/apache/co...
Date Sat, 19 Oct 2013 17:17:59 GMT
Modified: websites/production/commons/content/proper/commons-lang/testapidocs/src-html/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.html
==============================================================================
--- websites/production/commons/content/proper/commons-lang/testapidocs/src-html/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.html (original)
+++ websites/production/commons/content/proper/commons-lang/testapidocs/src-html/org/apache/commons/lang3/text/StrBuilderAppendInsertTest.html Sat Oct 19 17:17:55 2013
@@ -34,7 +34,7 @@
 <FONT color="green">031</FONT>    /**<a name="line.31"></a>
 <FONT color="green">032</FONT>     * Unit tests for {@link org.apache.commons.lang3.text.StrBuilder}.<a name="line.32"></a>
 <FONT color="green">033</FONT>     *<a name="line.33"></a>
-<FONT color="green">034</FONT>     * @version $Id: StrBuilderAppendInsertTest.java 1507797 2013-07-28 13:16:36Z britter $<a name="line.34"></a>
+<FONT color="green">034</FONT>     * @version $Id: StrBuilderAppendInsertTest.java 1533541 2013-10-18 16:33:52Z sebb $<a name="line.34"></a>
 <FONT color="green">035</FONT>     */<a name="line.35"></a>
 <FONT color="green">036</FONT>    public class StrBuilderAppendInsertTest {<a name="line.36"></a>
 <FONT color="green">037</FONT>    <a name="line.37"></a>
@@ -551,1043 +551,1065 @@
 <FONT color="green">548</FONT>        public void testAppendln_FormattedString() {<a name="line.548"></a>
 <FONT color="green">549</FONT>            final int[] count = new int[2];<a name="line.549"></a>
 <FONT color="green">550</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.550"></a>
-<FONT color="green">551</FONT>                @Override<a name="line.551"></a>
-<FONT color="green">552</FONT>                public StrBuilder append(final String str) {<a name="line.552"></a>
-<FONT color="green">553</FONT>                    count[0]++;<a name="line.553"></a>
-<FONT color="green">554</FONT>                    return super.append(str);<a name="line.554"></a>
-<FONT color="green">555</FONT>                }<a name="line.555"></a>
-<FONT color="green">556</FONT>                @Override<a name="line.556"></a>
-<FONT color="green">557</FONT>                public StrBuilder appendNewLine() {<a name="line.557"></a>
-<FONT color="green">558</FONT>                    count[1]++;<a name="line.558"></a>
-<FONT color="green">559</FONT>                    return super.appendNewLine();<a name="line.559"></a>
-<FONT color="green">560</FONT>                }<a name="line.560"></a>
-<FONT color="green">561</FONT>            };<a name="line.561"></a>
-<FONT color="green">562</FONT>            sb.appendln("Hello %s", "Alice");<a name="line.562"></a>
-<FONT color="green">563</FONT>            assertEquals("Hello Alice" + SEP, sb.toString());<a name="line.563"></a>
-<FONT color="green">564</FONT>            assertEquals(2, count[0]);  // appendNewLine() calls append(String)<a name="line.564"></a>
-<FONT color="green">565</FONT>            assertEquals(1, count[1]);<a name="line.565"></a>
-<FONT color="green">566</FONT>        }<a name="line.566"></a>
-<FONT color="green">567</FONT>    <a name="line.567"></a>
-<FONT color="green">568</FONT>        //-----------------------------------------------------------------------<a name="line.568"></a>
-<FONT color="green">569</FONT>        @Test<a name="line.569"></a>
-<FONT color="green">570</FONT>        public void testAppendln_Object() {<a name="line.570"></a>
-<FONT color="green">571</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.571"></a>
-<FONT color="green">572</FONT>            sb.appendln((Object) null);<a name="line.572"></a>
-<FONT color="green">573</FONT>            assertEquals("" + SEP, sb.toString());<a name="line.573"></a>
-<FONT color="green">574</FONT>    <a name="line.574"></a>
-<FONT color="green">575</FONT>            sb.appendln(FOO);<a name="line.575"></a>
-<FONT color="green">576</FONT>            assertEquals(SEP + "foo" + SEP, sb.toString());<a name="line.576"></a>
-<FONT color="green">577</FONT>    <a name="line.577"></a>
-<FONT color="green">578</FONT>            sb.appendln(Integer.valueOf(6));<a name="line.578"></a>
-<FONT color="green">579</FONT>            assertEquals(SEP + "foo" + SEP + "6" + SEP, sb.toString());<a name="line.579"></a>
-<FONT color="green">580</FONT>        }<a name="line.580"></a>
-<FONT color="green">581</FONT>    <a name="line.581"></a>
-<FONT color="green">582</FONT>        //-----------------------------------------------------------------------<a name="line.582"></a>
-<FONT color="green">583</FONT>        @Test<a name="line.583"></a>
-<FONT color="green">584</FONT>        public void testAppendln_String() {<a name="line.584"></a>
-<FONT color="green">585</FONT>            final int[] count = new int[2];<a name="line.585"></a>
-<FONT color="green">586</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.586"></a>
-<FONT color="green">587</FONT>                @Override<a name="line.587"></a>
-<FONT color="green">588</FONT>                public StrBuilder append(final String str) {<a name="line.588"></a>
-<FONT color="green">589</FONT>                    count[0]++;<a name="line.589"></a>
-<FONT color="green">590</FONT>                    return super.append(str);<a name="line.590"></a>
-<FONT color="green">591</FONT>                }<a name="line.591"></a>
-<FONT color="green">592</FONT>                @Override<a name="line.592"></a>
-<FONT color="green">593</FONT>                public StrBuilder appendNewLine() {<a name="line.593"></a>
-<FONT color="green">594</FONT>                    count[1]++;<a name="line.594"></a>
-<FONT color="green">595</FONT>                    return super.appendNewLine();<a name="line.595"></a>
-<FONT color="green">596</FONT>                }<a name="line.596"></a>
-<FONT color="green">597</FONT>            };<a name="line.597"></a>
-<FONT color="green">598</FONT>            sb.appendln("foo");<a name="line.598"></a>
-<FONT color="green">599</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.599"></a>
-<FONT color="green">600</FONT>            assertEquals(2, count[0]);  // appendNewLine() calls append(String)<a name="line.600"></a>
-<FONT color="green">601</FONT>            assertEquals(1, count[1]);<a name="line.601"></a>
-<FONT color="green">602</FONT>        }<a name="line.602"></a>
-<FONT color="green">603</FONT>    <a name="line.603"></a>
-<FONT color="green">604</FONT>        //-----------------------------------------------------------------------<a name="line.604"></a>
-<FONT color="green">605</FONT>        @Test<a name="line.605"></a>
-<FONT color="green">606</FONT>        public void testAppendln_String_int_int() {<a name="line.606"></a>
-<FONT color="green">607</FONT>            final int[] count = new int[2];<a name="line.607"></a>
-<FONT color="green">608</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.608"></a>
-<FONT color="green">609</FONT>                @Override<a name="line.609"></a>
-<FONT color="green">610</FONT>                public StrBuilder append(final String str, final int startIndex, final int length) {<a name="line.610"></a>
-<FONT color="green">611</FONT>                    count[0]++;<a name="line.611"></a>
-<FONT color="green">612</FONT>                    return super.append(str, startIndex, length);<a name="line.612"></a>
-<FONT color="green">613</FONT>                }<a name="line.613"></a>
-<FONT color="green">614</FONT>                @Override<a name="line.614"></a>
-<FONT color="green">615</FONT>                public StrBuilder appendNewLine() {<a name="line.615"></a>
-<FONT color="green">616</FONT>                    count[1]++;<a name="line.616"></a>
-<FONT color="green">617</FONT>                    return super.appendNewLine();<a name="line.617"></a>
-<FONT color="green">618</FONT>                }<a name="line.618"></a>
-<FONT color="green">619</FONT>            };<a name="line.619"></a>
-<FONT color="green">620</FONT>            sb.appendln("foo", 0, 3);<a name="line.620"></a>
-<FONT color="green">621</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.621"></a>
-<FONT color="green">622</FONT>            assertEquals(1, count[0]);<a name="line.622"></a>
-<FONT color="green">623</FONT>            assertEquals(1, count[1]);<a name="line.623"></a>
-<FONT color="green">624</FONT>        }<a name="line.624"></a>
-<FONT color="green">625</FONT>    <a name="line.625"></a>
-<FONT color="green">626</FONT>        //-----------------------------------------------------------------------<a name="line.626"></a>
-<FONT color="green">627</FONT>        @Test<a name="line.627"></a>
-<FONT color="green">628</FONT>        public void testAppendln_StringBuffer() {<a name="line.628"></a>
-<FONT color="green">629</FONT>            final int[] count = new int[2];<a name="line.629"></a>
-<FONT color="green">630</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.630"></a>
-<FONT color="green">631</FONT>                @Override<a name="line.631"></a>
-<FONT color="green">632</FONT>                public StrBuilder append(final StringBuffer str) {<a name="line.632"></a>
-<FONT color="green">633</FONT>                    count[0]++;<a name="line.633"></a>
-<FONT color="green">634</FONT>                    return super.append(str);<a name="line.634"></a>
-<FONT color="green">635</FONT>                }<a name="line.635"></a>
-<FONT color="green">636</FONT>                @Override<a name="line.636"></a>
-<FONT color="green">637</FONT>                public StrBuilder appendNewLine() {<a name="line.637"></a>
-<FONT color="green">638</FONT>                    count[1]++;<a name="line.638"></a>
-<FONT color="green">639</FONT>                    return super.appendNewLine();<a name="line.639"></a>
-<FONT color="green">640</FONT>                }<a name="line.640"></a>
-<FONT color="green">641</FONT>            };<a name="line.641"></a>
-<FONT color="green">642</FONT>            sb.appendln(new StringBuffer("foo"));<a name="line.642"></a>
-<FONT color="green">643</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.643"></a>
-<FONT color="green">644</FONT>            assertEquals(1, count[0]);<a name="line.644"></a>
-<FONT color="green">645</FONT>            assertEquals(1, count[1]);<a name="line.645"></a>
-<FONT color="green">646</FONT>        }<a name="line.646"></a>
-<FONT color="green">647</FONT>    <a name="line.647"></a>
-<FONT color="green">648</FONT>        //-----------------------------------------------------------------------<a name="line.648"></a>
-<FONT color="green">649</FONT>        @Test<a name="line.649"></a>
-<FONT color="green">650</FONT>        public void testAppendln_StringBuilder() {<a name="line.650"></a>
-<FONT color="green">651</FONT>            final int[] count = new int[2];<a name="line.651"></a>
-<FONT color="green">652</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.652"></a>
-<FONT color="green">653</FONT>                @Override<a name="line.653"></a>
-<FONT color="green">654</FONT>                public StrBuilder append(final StringBuilder str) {<a name="line.654"></a>
-<FONT color="green">655</FONT>                    count[0]++;<a name="line.655"></a>
-<FONT color="green">656</FONT>                    return super.append(str);<a name="line.656"></a>
-<FONT color="green">657</FONT>                }<a name="line.657"></a>
-<FONT color="green">658</FONT>                @Override<a name="line.658"></a>
-<FONT color="green">659</FONT>                public StrBuilder appendNewLine() {<a name="line.659"></a>
-<FONT color="green">660</FONT>                    count[1]++;<a name="line.660"></a>
-<FONT color="green">661</FONT>                    return super.appendNewLine();<a name="line.661"></a>
-<FONT color="green">662</FONT>                }<a name="line.662"></a>
-<FONT color="green">663</FONT>            };<a name="line.663"></a>
-<FONT color="green">664</FONT>            sb.appendln(new StringBuilder("foo"));<a name="line.664"></a>
-<FONT color="green">665</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.665"></a>
-<FONT color="green">666</FONT>            assertEquals(1, count[0]);<a name="line.666"></a>
-<FONT color="green">667</FONT>            assertEquals(1, count[1]);<a name="line.667"></a>
-<FONT color="green">668</FONT>        }<a name="line.668"></a>
-<FONT color="green">669</FONT>    <a name="line.669"></a>
-<FONT color="green">670</FONT>        //-----------------------------------------------------------------------<a name="line.670"></a>
-<FONT color="green">671</FONT>        @Test<a name="line.671"></a>
-<FONT color="green">672</FONT>        public void testAppendln_StringBuffer_int_int() {<a name="line.672"></a>
-<FONT color="green">673</FONT>            final int[] count = new int[2];<a name="line.673"></a>
-<FONT color="green">674</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.674"></a>
-<FONT color="green">675</FONT>                @Override<a name="line.675"></a>
-<FONT color="green">676</FONT>                public StrBuilder append(final StringBuffer str, final int startIndex, final int length) {<a name="line.676"></a>
-<FONT color="green">677</FONT>                    count[0]++;<a name="line.677"></a>
-<FONT color="green">678</FONT>                    return super.append(str, startIndex, length);<a name="line.678"></a>
-<FONT color="green">679</FONT>                }<a name="line.679"></a>
-<FONT color="green">680</FONT>                @Override<a name="line.680"></a>
-<FONT color="green">681</FONT>                public StrBuilder appendNewLine() {<a name="line.681"></a>
-<FONT color="green">682</FONT>                    count[1]++;<a name="line.682"></a>
-<FONT color="green">683</FONT>                    return super.appendNewLine();<a name="line.683"></a>
-<FONT color="green">684</FONT>                }<a name="line.684"></a>
-<FONT color="green">685</FONT>            };<a name="line.685"></a>
-<FONT color="green">686</FONT>            sb.appendln(new StringBuffer("foo"), 0, 3);<a name="line.686"></a>
-<FONT color="green">687</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.687"></a>
-<FONT color="green">688</FONT>            assertEquals(1, count[0]);<a name="line.688"></a>
-<FONT color="green">689</FONT>            assertEquals(1, count[1]);<a name="line.689"></a>
-<FONT color="green">690</FONT>        }<a name="line.690"></a>
-<FONT color="green">691</FONT>    <a name="line.691"></a>
-<FONT color="green">692</FONT>        //-----------------------------------------------------------------------<a name="line.692"></a>
-<FONT color="green">693</FONT>        @Test<a name="line.693"></a>
-<FONT color="green">694</FONT>        public void testAppendln_StringBuilder_int_int() {<a name="line.694"></a>
-<FONT color="green">695</FONT>            final int[] count = new int[2];<a name="line.695"></a>
-<FONT color="green">696</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.696"></a>
-<FONT color="green">697</FONT>                @Override<a name="line.697"></a>
-<FONT color="green">698</FONT>                public StrBuilder append(final StringBuilder str, final int startIndex, final int length) {<a name="line.698"></a>
-<FONT color="green">699</FONT>                    count[0]++;<a name="line.699"></a>
-<FONT color="green">700</FONT>                    return super.append(str, startIndex, length);<a name="line.700"></a>
-<FONT color="green">701</FONT>                }<a name="line.701"></a>
-<FONT color="green">702</FONT>                @Override<a name="line.702"></a>
-<FONT color="green">703</FONT>                public StrBuilder appendNewLine() {<a name="line.703"></a>
-<FONT color="green">704</FONT>                    count[1]++;<a name="line.704"></a>
-<FONT color="green">705</FONT>                    return super.appendNewLine();<a name="line.705"></a>
-<FONT color="green">706</FONT>                }<a name="line.706"></a>
-<FONT color="green">707</FONT>            };<a name="line.707"></a>
-<FONT color="green">708</FONT>            sb.appendln(new StringBuilder("foo"), 0, 3);<a name="line.708"></a>
-<FONT color="green">709</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.709"></a>
-<FONT color="green">710</FONT>            assertEquals(1, count[0]);<a name="line.710"></a>
-<FONT color="green">711</FONT>            assertEquals(1, count[1]);<a name="line.711"></a>
-<FONT color="green">712</FONT>        }<a name="line.712"></a>
-<FONT color="green">713</FONT>    <a name="line.713"></a>
-<FONT color="green">714</FONT>        //-----------------------------------------------------------------------<a name="line.714"></a>
-<FONT color="green">715</FONT>        @Test<a name="line.715"></a>
-<FONT color="green">716</FONT>        public void testAppendln_StrBuilder() {<a name="line.716"></a>
-<FONT color="green">717</FONT>            final int[] count = new int[2];<a name="line.717"></a>
-<FONT color="green">718</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.718"></a>
-<FONT color="green">719</FONT>                @Override<a name="line.719"></a>
-<FONT color="green">720</FONT>                public StrBuilder append(final StrBuilder str) {<a name="line.720"></a>
-<FONT color="green">721</FONT>                    count[0]++;<a name="line.721"></a>
-<FONT color="green">722</FONT>                    return super.append(str);<a name="line.722"></a>
-<FONT color="green">723</FONT>                }<a name="line.723"></a>
-<FONT color="green">724</FONT>                @Override<a name="line.724"></a>
-<FONT color="green">725</FONT>                public StrBuilder appendNewLine() {<a name="line.725"></a>
-<FONT color="green">726</FONT>                    count[1]++;<a name="line.726"></a>
-<FONT color="green">727</FONT>                    return super.appendNewLine();<a name="line.727"></a>
-<FONT color="green">728</FONT>                }<a name="line.728"></a>
-<FONT color="green">729</FONT>            };<a name="line.729"></a>
-<FONT color="green">730</FONT>            sb.appendln(new StrBuilder("foo"));<a name="line.730"></a>
-<FONT color="green">731</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.731"></a>
-<FONT color="green">732</FONT>            assertEquals(1, count[0]);<a name="line.732"></a>
-<FONT color="green">733</FONT>            assertEquals(1, count[1]);<a name="line.733"></a>
-<FONT color="green">734</FONT>        }<a name="line.734"></a>
-<FONT color="green">735</FONT>    <a name="line.735"></a>
-<FONT color="green">736</FONT>        //-----------------------------------------------------------------------<a name="line.736"></a>
-<FONT color="green">737</FONT>        @Test<a name="line.737"></a>
-<FONT color="green">738</FONT>        public void testAppendln_StrBuilder_int_int() {<a name="line.738"></a>
-<FONT color="green">739</FONT>            final int[] count = new int[2];<a name="line.739"></a>
-<FONT color="green">740</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.740"></a>
-<FONT color="green">741</FONT>                @Override<a name="line.741"></a>
-<FONT color="green">742</FONT>                public StrBuilder append(final StrBuilder str, final int startIndex, final int length) {<a name="line.742"></a>
-<FONT color="green">743</FONT>                    count[0]++;<a name="line.743"></a>
-<FONT color="green">744</FONT>                    return super.append(str, startIndex, length);<a name="line.744"></a>
-<FONT color="green">745</FONT>                }<a name="line.745"></a>
-<FONT color="green">746</FONT>                @Override<a name="line.746"></a>
-<FONT color="green">747</FONT>                public StrBuilder appendNewLine() {<a name="line.747"></a>
-<FONT color="green">748</FONT>                    count[1]++;<a name="line.748"></a>
-<FONT color="green">749</FONT>                    return super.appendNewLine();<a name="line.749"></a>
-<FONT color="green">750</FONT>                }<a name="line.750"></a>
-<FONT color="green">751</FONT>            };<a name="line.751"></a>
-<FONT color="green">752</FONT>            sb.appendln(new StrBuilder("foo"), 0, 3);<a name="line.752"></a>
-<FONT color="green">753</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.753"></a>
-<FONT color="green">754</FONT>            assertEquals(1, count[0]);<a name="line.754"></a>
-<FONT color="green">755</FONT>            assertEquals(1, count[1]);<a name="line.755"></a>
-<FONT color="green">756</FONT>        }<a name="line.756"></a>
-<FONT color="green">757</FONT>    <a name="line.757"></a>
-<FONT color="green">758</FONT>        //-----------------------------------------------------------------------<a name="line.758"></a>
-<FONT color="green">759</FONT>        @Test<a name="line.759"></a>
-<FONT color="green">760</FONT>        public void testAppendln_CharArray() {<a name="line.760"></a>
-<FONT color="green">761</FONT>            final int[] count = new int[2];<a name="line.761"></a>
-<FONT color="green">762</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.762"></a>
-<FONT color="green">763</FONT>                @Override<a name="line.763"></a>
-<FONT color="green">764</FONT>                public StrBuilder append(final char[] str) {<a name="line.764"></a>
-<FONT color="green">765</FONT>                    count[0]++;<a name="line.765"></a>
-<FONT color="green">766</FONT>                    return super.append(str);<a name="line.766"></a>
-<FONT color="green">767</FONT>                }<a name="line.767"></a>
-<FONT color="green">768</FONT>                @Override<a name="line.768"></a>
-<FONT color="green">769</FONT>                public StrBuilder appendNewLine() {<a name="line.769"></a>
-<FONT color="green">770</FONT>                    count[1]++;<a name="line.770"></a>
-<FONT color="green">771</FONT>                    return super.appendNewLine();<a name="line.771"></a>
-<FONT color="green">772</FONT>                }<a name="line.772"></a>
-<FONT color="green">773</FONT>            };<a name="line.773"></a>
-<FONT color="green">774</FONT>            sb.appendln("foo".toCharArray());<a name="line.774"></a>
-<FONT color="green">775</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.775"></a>
-<FONT color="green">776</FONT>            assertEquals(1, count[0]);<a name="line.776"></a>
-<FONT color="green">777</FONT>            assertEquals(1, count[1]);<a name="line.777"></a>
-<FONT color="green">778</FONT>        }<a name="line.778"></a>
-<FONT color="green">779</FONT>    <a name="line.779"></a>
-<FONT color="green">780</FONT>        //-----------------------------------------------------------------------<a name="line.780"></a>
-<FONT color="green">781</FONT>        @Test<a name="line.781"></a>
-<FONT color="green">782</FONT>        public void testAppendln_CharArray_int_int() {<a name="line.782"></a>
-<FONT color="green">783</FONT>            final int[] count = new int[2];<a name="line.783"></a>
-<FONT color="green">784</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.784"></a>
-<FONT color="green">785</FONT>                @Override<a name="line.785"></a>
-<FONT color="green">786</FONT>                public StrBuilder append(final char[] str, final int startIndex, final int length) {<a name="line.786"></a>
-<FONT color="green">787</FONT>                    count[0]++;<a name="line.787"></a>
-<FONT color="green">788</FONT>                    return super.append(str, startIndex, length);<a name="line.788"></a>
-<FONT color="green">789</FONT>                }<a name="line.789"></a>
-<FONT color="green">790</FONT>                @Override<a name="line.790"></a>
-<FONT color="green">791</FONT>                public StrBuilder appendNewLine() {<a name="line.791"></a>
-<FONT color="green">792</FONT>                    count[1]++;<a name="line.792"></a>
-<FONT color="green">793</FONT>                    return super.appendNewLine();<a name="line.793"></a>
-<FONT color="green">794</FONT>                }<a name="line.794"></a>
-<FONT color="green">795</FONT>            };<a name="line.795"></a>
-<FONT color="green">796</FONT>            sb.appendln("foo".toCharArray(), 0, 3);<a name="line.796"></a>
-<FONT color="green">797</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.797"></a>
-<FONT color="green">798</FONT>            assertEquals(1, count[0]);<a name="line.798"></a>
-<FONT color="green">799</FONT>            assertEquals(1, count[1]);<a name="line.799"></a>
-<FONT color="green">800</FONT>        }<a name="line.800"></a>
-<FONT color="green">801</FONT>    <a name="line.801"></a>
-<FONT color="green">802</FONT>        //-----------------------------------------------------------------------<a name="line.802"></a>
-<FONT color="green">803</FONT>        @Test<a name="line.803"></a>
-<FONT color="green">804</FONT>        public void testAppendln_Boolean() {<a name="line.804"></a>
-<FONT color="green">805</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.805"></a>
-<FONT color="green">806</FONT>            sb.appendln(true);<a name="line.806"></a>
-<FONT color="green">807</FONT>            assertEquals("true" + SEP, sb.toString());<a name="line.807"></a>
-<FONT color="green">808</FONT>            <a name="line.808"></a>
-<FONT color="green">809</FONT>            sb.clear();<a name="line.809"></a>
-<FONT color="green">810</FONT>            sb.appendln(false);<a name="line.810"></a>
-<FONT color="green">811</FONT>            assertEquals("false" + SEP, sb.toString());<a name="line.811"></a>
-<FONT color="green">812</FONT>        }<a name="line.812"></a>
-<FONT color="green">813</FONT>    <a name="line.813"></a>
-<FONT color="green">814</FONT>        //-----------------------------------------------------------------------<a name="line.814"></a>
-<FONT color="green">815</FONT>        @Test<a name="line.815"></a>
-<FONT color="green">816</FONT>        public void testAppendln_PrimitiveNumber() {<a name="line.816"></a>
-<FONT color="green">817</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.817"></a>
-<FONT color="green">818</FONT>            sb.appendln(0);<a name="line.818"></a>
-<FONT color="green">819</FONT>            assertEquals("0" + SEP, sb.toString());<a name="line.819"></a>
-<FONT color="green">820</FONT>            <a name="line.820"></a>
-<FONT color="green">821</FONT>            sb.clear();<a name="line.821"></a>
-<FONT color="green">822</FONT>            sb.appendln(1L);<a name="line.822"></a>
-<FONT color="green">823</FONT>            assertEquals("1" + SEP, sb.toString());<a name="line.823"></a>
-<FONT color="green">824</FONT>            <a name="line.824"></a>
-<FONT color="green">825</FONT>            sb.clear();<a name="line.825"></a>
-<FONT color="green">826</FONT>            sb.appendln(2.3f);<a name="line.826"></a>
-<FONT color="green">827</FONT>            assertEquals("2.3" + SEP, sb.toString());<a name="line.827"></a>
-<FONT color="green">828</FONT>            <a name="line.828"></a>
-<FONT color="green">829</FONT>            sb.clear();<a name="line.829"></a>
-<FONT color="green">830</FONT>            sb.appendln(4.5d);<a name="line.830"></a>
-<FONT color="green">831</FONT>            assertEquals("4.5" + SEP, sb.toString());<a name="line.831"></a>
-<FONT color="green">832</FONT>        }<a name="line.832"></a>
-<FONT color="green">833</FONT>    <a name="line.833"></a>
-<FONT color="green">834</FONT>        //-----------------------------------------------------------------------<a name="line.834"></a>
-<FONT color="green">835</FONT>        @Test<a name="line.835"></a>
-<FONT color="green">836</FONT>        public void testAppendPadding() {<a name="line.836"></a>
-<FONT color="green">837</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.837"></a>
-<FONT color="green">838</FONT>            sb.append("foo");<a name="line.838"></a>
-<FONT color="green">839</FONT>            assertEquals("foo", sb.toString());<a name="line.839"></a>
-<FONT color="green">840</FONT>    <a name="line.840"></a>
-<FONT color="green">841</FONT>            sb.appendPadding(-1, '-');<a name="line.841"></a>
-<FONT color="green">842</FONT>            assertEquals("foo", sb.toString());<a name="line.842"></a>
-<FONT color="green">843</FONT>    <a name="line.843"></a>
-<FONT color="green">844</FONT>            sb.appendPadding(0, '-');<a name="line.844"></a>
-<FONT color="green">845</FONT>            assertEquals("foo", sb.toString());<a name="line.845"></a>
-<FONT color="green">846</FONT>    <a name="line.846"></a>
-<FONT color="green">847</FONT>            sb.appendPadding(1, '-');<a name="line.847"></a>
-<FONT color="green">848</FONT>            assertEquals("foo-", sb.toString());<a name="line.848"></a>
-<FONT color="green">849</FONT>    <a name="line.849"></a>
-<FONT color="green">850</FONT>            sb.appendPadding(16, '-');<a name="line.850"></a>
-<FONT color="green">851</FONT>            assertEquals(20, sb.length());<a name="line.851"></a>
-<FONT color="green">852</FONT>            //            12345678901234567890<a name="line.852"></a>
-<FONT color="green">853</FONT>            assertEquals("foo-----------------", sb.toString());<a name="line.853"></a>
+<FONT color="green">551</FONT>                            private static final long serialVersionUID = 1L;<a name="line.551"></a>
+<FONT color="green">552</FONT>    <a name="line.552"></a>
+<FONT color="green">553</FONT>                @Override<a name="line.553"></a>
+<FONT color="green">554</FONT>                public StrBuilder append(final String str) {<a name="line.554"></a>
+<FONT color="green">555</FONT>                    count[0]++;<a name="line.555"></a>
+<FONT color="green">556</FONT>                    return super.append(str);<a name="line.556"></a>
+<FONT color="green">557</FONT>                }<a name="line.557"></a>
+<FONT color="green">558</FONT>                @Override<a name="line.558"></a>
+<FONT color="green">559</FONT>                public StrBuilder appendNewLine() {<a name="line.559"></a>
+<FONT color="green">560</FONT>                    count[1]++;<a name="line.560"></a>
+<FONT color="green">561</FONT>                    return super.appendNewLine();<a name="line.561"></a>
+<FONT color="green">562</FONT>                }<a name="line.562"></a>
+<FONT color="green">563</FONT>            };<a name="line.563"></a>
+<FONT color="green">564</FONT>            sb.appendln("Hello %s", "Alice");<a name="line.564"></a>
+<FONT color="green">565</FONT>            assertEquals("Hello Alice" + SEP, sb.toString());<a name="line.565"></a>
+<FONT color="green">566</FONT>            assertEquals(2, count[0]);  // appendNewLine() calls append(String)<a name="line.566"></a>
+<FONT color="green">567</FONT>            assertEquals(1, count[1]);<a name="line.567"></a>
+<FONT color="green">568</FONT>        }<a name="line.568"></a>
+<FONT color="green">569</FONT>    <a name="line.569"></a>
+<FONT color="green">570</FONT>        //-----------------------------------------------------------------------<a name="line.570"></a>
+<FONT color="green">571</FONT>        @Test<a name="line.571"></a>
+<FONT color="green">572</FONT>        public void testAppendln_Object() {<a name="line.572"></a>
+<FONT color="green">573</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.573"></a>
+<FONT color="green">574</FONT>            sb.appendln((Object) null);<a name="line.574"></a>
+<FONT color="green">575</FONT>            assertEquals("" + SEP, sb.toString());<a name="line.575"></a>
+<FONT color="green">576</FONT>    <a name="line.576"></a>
+<FONT color="green">577</FONT>            sb.appendln(FOO);<a name="line.577"></a>
+<FONT color="green">578</FONT>            assertEquals(SEP + "foo" + SEP, sb.toString());<a name="line.578"></a>
+<FONT color="green">579</FONT>    <a name="line.579"></a>
+<FONT color="green">580</FONT>            sb.appendln(Integer.valueOf(6));<a name="line.580"></a>
+<FONT color="green">581</FONT>            assertEquals(SEP + "foo" + SEP + "6" + SEP, sb.toString());<a name="line.581"></a>
+<FONT color="green">582</FONT>        }<a name="line.582"></a>
+<FONT color="green">583</FONT>    <a name="line.583"></a>
+<FONT color="green">584</FONT>        //-----------------------------------------------------------------------<a name="line.584"></a>
+<FONT color="green">585</FONT>        @Test<a name="line.585"></a>
+<FONT color="green">586</FONT>        public void testAppendln_String() {<a name="line.586"></a>
+<FONT color="green">587</FONT>            final int[] count = new int[2];<a name="line.587"></a>
+<FONT color="green">588</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.588"></a>
+<FONT color="green">589</FONT>                            private static final long serialVersionUID = 1L;<a name="line.589"></a>
+<FONT color="green">590</FONT>    <a name="line.590"></a>
+<FONT color="green">591</FONT>                @Override<a name="line.591"></a>
+<FONT color="green">592</FONT>                public StrBuilder append(final String str) {<a name="line.592"></a>
+<FONT color="green">593</FONT>                    count[0]++;<a name="line.593"></a>
+<FONT color="green">594</FONT>                    return super.append(str);<a name="line.594"></a>
+<FONT color="green">595</FONT>                }<a name="line.595"></a>
+<FONT color="green">596</FONT>                @Override<a name="line.596"></a>
+<FONT color="green">597</FONT>                public StrBuilder appendNewLine() {<a name="line.597"></a>
+<FONT color="green">598</FONT>                    count[1]++;<a name="line.598"></a>
+<FONT color="green">599</FONT>                    return super.appendNewLine();<a name="line.599"></a>
+<FONT color="green">600</FONT>                }<a name="line.600"></a>
+<FONT color="green">601</FONT>            };<a name="line.601"></a>
+<FONT color="green">602</FONT>            sb.appendln("foo");<a name="line.602"></a>
+<FONT color="green">603</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.603"></a>
+<FONT color="green">604</FONT>            assertEquals(2, count[0]);  // appendNewLine() calls append(String)<a name="line.604"></a>
+<FONT color="green">605</FONT>            assertEquals(1, count[1]);<a name="line.605"></a>
+<FONT color="green">606</FONT>        }<a name="line.606"></a>
+<FONT color="green">607</FONT>    <a name="line.607"></a>
+<FONT color="green">608</FONT>        //-----------------------------------------------------------------------<a name="line.608"></a>
+<FONT color="green">609</FONT>        @Test<a name="line.609"></a>
+<FONT color="green">610</FONT>        public void testAppendln_String_int_int() {<a name="line.610"></a>
+<FONT color="green">611</FONT>            final int[] count = new int[2];<a name="line.611"></a>
+<FONT color="green">612</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.612"></a>
+<FONT color="green">613</FONT>                            private static final long serialVersionUID = 1L;<a name="line.613"></a>
+<FONT color="green">614</FONT>    <a name="line.614"></a>
+<FONT color="green">615</FONT>                @Override<a name="line.615"></a>
+<FONT color="green">616</FONT>                public StrBuilder append(final String str, final int startIndex, final int length) {<a name="line.616"></a>
+<FONT color="green">617</FONT>                    count[0]++;<a name="line.617"></a>
+<FONT color="green">618</FONT>                    return super.append(str, startIndex, length);<a name="line.618"></a>
+<FONT color="green">619</FONT>                }<a name="line.619"></a>
+<FONT color="green">620</FONT>                @Override<a name="line.620"></a>
+<FONT color="green">621</FONT>                public StrBuilder appendNewLine() {<a name="line.621"></a>
+<FONT color="green">622</FONT>                    count[1]++;<a name="line.622"></a>
+<FONT color="green">623</FONT>                    return super.appendNewLine();<a name="line.623"></a>
+<FONT color="green">624</FONT>                }<a name="line.624"></a>
+<FONT color="green">625</FONT>            };<a name="line.625"></a>
+<FONT color="green">626</FONT>            sb.appendln("foo", 0, 3);<a name="line.626"></a>
+<FONT color="green">627</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.627"></a>
+<FONT color="green">628</FONT>            assertEquals(1, count[0]);<a name="line.628"></a>
+<FONT color="green">629</FONT>            assertEquals(1, count[1]);<a name="line.629"></a>
+<FONT color="green">630</FONT>        }<a name="line.630"></a>
+<FONT color="green">631</FONT>    <a name="line.631"></a>
+<FONT color="green">632</FONT>        //-----------------------------------------------------------------------<a name="line.632"></a>
+<FONT color="green">633</FONT>        @Test<a name="line.633"></a>
+<FONT color="green">634</FONT>        public void testAppendln_StringBuffer() {<a name="line.634"></a>
+<FONT color="green">635</FONT>            final int[] count = new int[2];<a name="line.635"></a>
+<FONT color="green">636</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.636"></a>
+<FONT color="green">637</FONT>                            private static final long serialVersionUID = 1L;<a name="line.637"></a>
+<FONT color="green">638</FONT>    <a name="line.638"></a>
+<FONT color="green">639</FONT>                @Override<a name="line.639"></a>
+<FONT color="green">640</FONT>                public StrBuilder append(final StringBuffer str) {<a name="line.640"></a>
+<FONT color="green">641</FONT>                    count[0]++;<a name="line.641"></a>
+<FONT color="green">642</FONT>                    return super.append(str);<a name="line.642"></a>
+<FONT color="green">643</FONT>                }<a name="line.643"></a>
+<FONT color="green">644</FONT>                @Override<a name="line.644"></a>
+<FONT color="green">645</FONT>                public StrBuilder appendNewLine() {<a name="line.645"></a>
+<FONT color="green">646</FONT>                    count[1]++;<a name="line.646"></a>
+<FONT color="green">647</FONT>                    return super.appendNewLine();<a name="line.647"></a>
+<FONT color="green">648</FONT>                }<a name="line.648"></a>
+<FONT color="green">649</FONT>            };<a name="line.649"></a>
+<FONT color="green">650</FONT>            sb.appendln(new StringBuffer("foo"));<a name="line.650"></a>
+<FONT color="green">651</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.651"></a>
+<FONT color="green">652</FONT>            assertEquals(1, count[0]);<a name="line.652"></a>
+<FONT color="green">653</FONT>            assertEquals(1, count[1]);<a name="line.653"></a>
+<FONT color="green">654</FONT>        }<a name="line.654"></a>
+<FONT color="green">655</FONT>    <a name="line.655"></a>
+<FONT color="green">656</FONT>        //-----------------------------------------------------------------------<a name="line.656"></a>
+<FONT color="green">657</FONT>        @Test<a name="line.657"></a>
+<FONT color="green">658</FONT>        public void testAppendln_StringBuilder() {<a name="line.658"></a>
+<FONT color="green">659</FONT>            final int[] count = new int[2];<a name="line.659"></a>
+<FONT color="green">660</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.660"></a>
+<FONT color="green">661</FONT>                            private static final long serialVersionUID = 1L;<a name="line.661"></a>
+<FONT color="green">662</FONT>    <a name="line.662"></a>
+<FONT color="green">663</FONT>                @Override<a name="line.663"></a>
+<FONT color="green">664</FONT>                public StrBuilder append(final StringBuilder str) {<a name="line.664"></a>
+<FONT color="green">665</FONT>                    count[0]++;<a name="line.665"></a>
+<FONT color="green">666</FONT>                    return super.append(str);<a name="line.666"></a>
+<FONT color="green">667</FONT>                }<a name="line.667"></a>
+<FONT color="green">668</FONT>                @Override<a name="line.668"></a>
+<FONT color="green">669</FONT>                public StrBuilder appendNewLine() {<a name="line.669"></a>
+<FONT color="green">670</FONT>                    count[1]++;<a name="line.670"></a>
+<FONT color="green">671</FONT>                    return super.appendNewLine();<a name="line.671"></a>
+<FONT color="green">672</FONT>                }<a name="line.672"></a>
+<FONT color="green">673</FONT>            };<a name="line.673"></a>
+<FONT color="green">674</FONT>            sb.appendln(new StringBuilder("foo"));<a name="line.674"></a>
+<FONT color="green">675</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.675"></a>
+<FONT color="green">676</FONT>            assertEquals(1, count[0]);<a name="line.676"></a>
+<FONT color="green">677</FONT>            assertEquals(1, count[1]);<a name="line.677"></a>
+<FONT color="green">678</FONT>        }<a name="line.678"></a>
+<FONT color="green">679</FONT>    <a name="line.679"></a>
+<FONT color="green">680</FONT>        //-----------------------------------------------------------------------<a name="line.680"></a>
+<FONT color="green">681</FONT>        @Test<a name="line.681"></a>
+<FONT color="green">682</FONT>        public void testAppendln_StringBuffer_int_int() {<a name="line.682"></a>
+<FONT color="green">683</FONT>            final int[] count = new int[2];<a name="line.683"></a>
+<FONT color="green">684</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.684"></a>
+<FONT color="green">685</FONT>                            private static final long serialVersionUID = 1L;<a name="line.685"></a>
+<FONT color="green">686</FONT>    <a name="line.686"></a>
+<FONT color="green">687</FONT>                @Override<a name="line.687"></a>
+<FONT color="green">688</FONT>                public StrBuilder append(final StringBuffer str, final int startIndex, final int length) {<a name="line.688"></a>
+<FONT color="green">689</FONT>                    count[0]++;<a name="line.689"></a>
+<FONT color="green">690</FONT>                    return super.append(str, startIndex, length);<a name="line.690"></a>
+<FONT color="green">691</FONT>                }<a name="line.691"></a>
+<FONT color="green">692</FONT>                @Override<a name="line.692"></a>
+<FONT color="green">693</FONT>                public StrBuilder appendNewLine() {<a name="line.693"></a>
+<FONT color="green">694</FONT>                    count[1]++;<a name="line.694"></a>
+<FONT color="green">695</FONT>                    return super.appendNewLine();<a name="line.695"></a>
+<FONT color="green">696</FONT>                }<a name="line.696"></a>
+<FONT color="green">697</FONT>            };<a name="line.697"></a>
+<FONT color="green">698</FONT>            sb.appendln(new StringBuffer("foo"), 0, 3);<a name="line.698"></a>
+<FONT color="green">699</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.699"></a>
+<FONT color="green">700</FONT>            assertEquals(1, count[0]);<a name="line.700"></a>
+<FONT color="green">701</FONT>            assertEquals(1, count[1]);<a name="line.701"></a>
+<FONT color="green">702</FONT>        }<a name="line.702"></a>
+<FONT color="green">703</FONT>    <a name="line.703"></a>
+<FONT color="green">704</FONT>        //-----------------------------------------------------------------------<a name="line.704"></a>
+<FONT color="green">705</FONT>        @Test<a name="line.705"></a>
+<FONT color="green">706</FONT>        public void testAppendln_StringBuilder_int_int() {<a name="line.706"></a>
+<FONT color="green">707</FONT>            final int[] count = new int[2];<a name="line.707"></a>
+<FONT color="green">708</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.708"></a>
+<FONT color="green">709</FONT>                            private static final long serialVersionUID = 1L;<a name="line.709"></a>
+<FONT color="green">710</FONT>    <a name="line.710"></a>
+<FONT color="green">711</FONT>                @Override<a name="line.711"></a>
+<FONT color="green">712</FONT>                public StrBuilder append(final StringBuilder str, final int startIndex, final int length) {<a name="line.712"></a>
+<FONT color="green">713</FONT>                    count[0]++;<a name="line.713"></a>
+<FONT color="green">714</FONT>                    return super.append(str, startIndex, length);<a name="line.714"></a>
+<FONT color="green">715</FONT>                }<a name="line.715"></a>
+<FONT color="green">716</FONT>                @Override<a name="line.716"></a>
+<FONT color="green">717</FONT>                public StrBuilder appendNewLine() {<a name="line.717"></a>
+<FONT color="green">718</FONT>                    count[1]++;<a name="line.718"></a>
+<FONT color="green">719</FONT>                    return super.appendNewLine();<a name="line.719"></a>
+<FONT color="green">720</FONT>                }<a name="line.720"></a>
+<FONT color="green">721</FONT>            };<a name="line.721"></a>
+<FONT color="green">722</FONT>            sb.appendln(new StringBuilder("foo"), 0, 3);<a name="line.722"></a>
+<FONT color="green">723</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.723"></a>
+<FONT color="green">724</FONT>            assertEquals(1, count[0]);<a name="line.724"></a>
+<FONT color="green">725</FONT>            assertEquals(1, count[1]);<a name="line.725"></a>
+<FONT color="green">726</FONT>        }<a name="line.726"></a>
+<FONT color="green">727</FONT>    <a name="line.727"></a>
+<FONT color="green">728</FONT>        //-----------------------------------------------------------------------<a name="line.728"></a>
+<FONT color="green">729</FONT>        @Test<a name="line.729"></a>
+<FONT color="green">730</FONT>        public void testAppendln_StrBuilder() {<a name="line.730"></a>
+<FONT color="green">731</FONT>            final int[] count = new int[2];<a name="line.731"></a>
+<FONT color="green">732</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.732"></a>
+<FONT color="green">733</FONT>                            private static final long serialVersionUID = 1L;<a name="line.733"></a>
+<FONT color="green">734</FONT>    <a name="line.734"></a>
+<FONT color="green">735</FONT>                @Override<a name="line.735"></a>
+<FONT color="green">736</FONT>                public StrBuilder append(final StrBuilder str) {<a name="line.736"></a>
+<FONT color="green">737</FONT>                    count[0]++;<a name="line.737"></a>
+<FONT color="green">738</FONT>                    return super.append(str);<a name="line.738"></a>
+<FONT color="green">739</FONT>                }<a name="line.739"></a>
+<FONT color="green">740</FONT>                @Override<a name="line.740"></a>
+<FONT color="green">741</FONT>                public StrBuilder appendNewLine() {<a name="line.741"></a>
+<FONT color="green">742</FONT>                    count[1]++;<a name="line.742"></a>
+<FONT color="green">743</FONT>                    return super.appendNewLine();<a name="line.743"></a>
+<FONT color="green">744</FONT>                }<a name="line.744"></a>
+<FONT color="green">745</FONT>            };<a name="line.745"></a>
+<FONT color="green">746</FONT>            sb.appendln(new StrBuilder("foo"));<a name="line.746"></a>
+<FONT color="green">747</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.747"></a>
+<FONT color="green">748</FONT>            assertEquals(1, count[0]);<a name="line.748"></a>
+<FONT color="green">749</FONT>            assertEquals(1, count[1]);<a name="line.749"></a>
+<FONT color="green">750</FONT>        }<a name="line.750"></a>
+<FONT color="green">751</FONT>    <a name="line.751"></a>
+<FONT color="green">752</FONT>        //-----------------------------------------------------------------------<a name="line.752"></a>
+<FONT color="green">753</FONT>        @Test<a name="line.753"></a>
+<FONT color="green">754</FONT>        public void testAppendln_StrBuilder_int_int() {<a name="line.754"></a>
+<FONT color="green">755</FONT>            final int[] count = new int[2];<a name="line.755"></a>
+<FONT color="green">756</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.756"></a>
+<FONT color="green">757</FONT>                            private static final long serialVersionUID = 1L;<a name="line.757"></a>
+<FONT color="green">758</FONT>    <a name="line.758"></a>
+<FONT color="green">759</FONT>                @Override<a name="line.759"></a>
+<FONT color="green">760</FONT>                public StrBuilder append(final StrBuilder str, final int startIndex, final int length) {<a name="line.760"></a>
+<FONT color="green">761</FONT>                    count[0]++;<a name="line.761"></a>
+<FONT color="green">762</FONT>                    return super.append(str, startIndex, length);<a name="line.762"></a>
+<FONT color="green">763</FONT>                }<a name="line.763"></a>
+<FONT color="green">764</FONT>                @Override<a name="line.764"></a>
+<FONT color="green">765</FONT>                public StrBuilder appendNewLine() {<a name="line.765"></a>
+<FONT color="green">766</FONT>                    count[1]++;<a name="line.766"></a>
+<FONT color="green">767</FONT>                    return super.appendNewLine();<a name="line.767"></a>
+<FONT color="green">768</FONT>                }<a name="line.768"></a>
+<FONT color="green">769</FONT>            };<a name="line.769"></a>
+<FONT color="green">770</FONT>            sb.appendln(new StrBuilder("foo"), 0, 3);<a name="line.770"></a>
+<FONT color="green">771</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.771"></a>
+<FONT color="green">772</FONT>            assertEquals(1, count[0]);<a name="line.772"></a>
+<FONT color="green">773</FONT>            assertEquals(1, count[1]);<a name="line.773"></a>
+<FONT color="green">774</FONT>        }<a name="line.774"></a>
+<FONT color="green">775</FONT>    <a name="line.775"></a>
+<FONT color="green">776</FONT>        //-----------------------------------------------------------------------<a name="line.776"></a>
+<FONT color="green">777</FONT>        @Test<a name="line.777"></a>
+<FONT color="green">778</FONT>        public void testAppendln_CharArray() {<a name="line.778"></a>
+<FONT color="green">779</FONT>            final int[] count = new int[2];<a name="line.779"></a>
+<FONT color="green">780</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.780"></a>
+<FONT color="green">781</FONT>                            private static final long serialVersionUID = 1L;<a name="line.781"></a>
+<FONT color="green">782</FONT>    <a name="line.782"></a>
+<FONT color="green">783</FONT>                @Override<a name="line.783"></a>
+<FONT color="green">784</FONT>                public StrBuilder append(final char[] str) {<a name="line.784"></a>
+<FONT color="green">785</FONT>                    count[0]++;<a name="line.785"></a>
+<FONT color="green">786</FONT>                    return super.append(str);<a name="line.786"></a>
+<FONT color="green">787</FONT>                }<a name="line.787"></a>
+<FONT color="green">788</FONT>                @Override<a name="line.788"></a>
+<FONT color="green">789</FONT>                public StrBuilder appendNewLine() {<a name="line.789"></a>
+<FONT color="green">790</FONT>                    count[1]++;<a name="line.790"></a>
+<FONT color="green">791</FONT>                    return super.appendNewLine();<a name="line.791"></a>
+<FONT color="green">792</FONT>                }<a name="line.792"></a>
+<FONT color="green">793</FONT>            };<a name="line.793"></a>
+<FONT color="green">794</FONT>            sb.appendln("foo".toCharArray());<a name="line.794"></a>
+<FONT color="green">795</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.795"></a>
+<FONT color="green">796</FONT>            assertEquals(1, count[0]);<a name="line.796"></a>
+<FONT color="green">797</FONT>            assertEquals(1, count[1]);<a name="line.797"></a>
+<FONT color="green">798</FONT>        }<a name="line.798"></a>
+<FONT color="green">799</FONT>    <a name="line.799"></a>
+<FONT color="green">800</FONT>        //-----------------------------------------------------------------------<a name="line.800"></a>
+<FONT color="green">801</FONT>        @Test<a name="line.801"></a>
+<FONT color="green">802</FONT>        public void testAppendln_CharArray_int_int() {<a name="line.802"></a>
+<FONT color="green">803</FONT>            final int[] count = new int[2];<a name="line.803"></a>
+<FONT color="green">804</FONT>            final StrBuilder sb = new StrBuilder() {<a name="line.804"></a>
+<FONT color="green">805</FONT>                            private static final long serialVersionUID = 1L;<a name="line.805"></a>
+<FONT color="green">806</FONT>    <a name="line.806"></a>
+<FONT color="green">807</FONT>                @Override<a name="line.807"></a>
+<FONT color="green">808</FONT>                public StrBuilder append(final char[] str, final int startIndex, final int length) {<a name="line.808"></a>
+<FONT color="green">809</FONT>                    count[0]++;<a name="line.809"></a>
+<FONT color="green">810</FONT>                    return super.append(str, startIndex, length);<a name="line.810"></a>
+<FONT color="green">811</FONT>                }<a name="line.811"></a>
+<FONT color="green">812</FONT>                @Override<a name="line.812"></a>
+<FONT color="green">813</FONT>                public StrBuilder appendNewLine() {<a name="line.813"></a>
+<FONT color="green">814</FONT>                    count[1]++;<a name="line.814"></a>
+<FONT color="green">815</FONT>                    return super.appendNewLine();<a name="line.815"></a>
+<FONT color="green">816</FONT>                }<a name="line.816"></a>
+<FONT color="green">817</FONT>            };<a name="line.817"></a>
+<FONT color="green">818</FONT>            sb.appendln("foo".toCharArray(), 0, 3);<a name="line.818"></a>
+<FONT color="green">819</FONT>            assertEquals("foo" + SEP, sb.toString());<a name="line.819"></a>
+<FONT color="green">820</FONT>            assertEquals(1, count[0]);<a name="line.820"></a>
+<FONT color="green">821</FONT>            assertEquals(1, count[1]);<a name="line.821"></a>
+<FONT color="green">822</FONT>        }<a name="line.822"></a>
+<FONT color="green">823</FONT>    <a name="line.823"></a>
+<FONT color="green">824</FONT>        //-----------------------------------------------------------------------<a name="line.824"></a>
+<FONT color="green">825</FONT>        @Test<a name="line.825"></a>
+<FONT color="green">826</FONT>        public void testAppendln_Boolean() {<a name="line.826"></a>
+<FONT color="green">827</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.827"></a>
+<FONT color="green">828</FONT>            sb.appendln(true);<a name="line.828"></a>
+<FONT color="green">829</FONT>            assertEquals("true" + SEP, sb.toString());<a name="line.829"></a>
+<FONT color="green">830</FONT>            <a name="line.830"></a>
+<FONT color="green">831</FONT>            sb.clear();<a name="line.831"></a>
+<FONT color="green">832</FONT>            sb.appendln(false);<a name="line.832"></a>
+<FONT color="green">833</FONT>            assertEquals("false" + SEP, sb.toString());<a name="line.833"></a>
+<FONT color="green">834</FONT>        }<a name="line.834"></a>
+<FONT color="green">835</FONT>    <a name="line.835"></a>
+<FONT color="green">836</FONT>        //-----------------------------------------------------------------------<a name="line.836"></a>
+<FONT color="green">837</FONT>        @Test<a name="line.837"></a>
+<FONT color="green">838</FONT>        public void testAppendln_PrimitiveNumber() {<a name="line.838"></a>
+<FONT color="green">839</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.839"></a>
+<FONT color="green">840</FONT>            sb.appendln(0);<a name="line.840"></a>
+<FONT color="green">841</FONT>            assertEquals("0" + SEP, sb.toString());<a name="line.841"></a>
+<FONT color="green">842</FONT>            <a name="line.842"></a>
+<FONT color="green">843</FONT>            sb.clear();<a name="line.843"></a>
+<FONT color="green">844</FONT>            sb.appendln(1L);<a name="line.844"></a>
+<FONT color="green">845</FONT>            assertEquals("1" + SEP, sb.toString());<a name="line.845"></a>
+<FONT color="green">846</FONT>            <a name="line.846"></a>
+<FONT color="green">847</FONT>            sb.clear();<a name="line.847"></a>
+<FONT color="green">848</FONT>            sb.appendln(2.3f);<a name="line.848"></a>
+<FONT color="green">849</FONT>            assertEquals("2.3" + SEP, sb.toString());<a name="line.849"></a>
+<FONT color="green">850</FONT>            <a name="line.850"></a>
+<FONT color="green">851</FONT>            sb.clear();<a name="line.851"></a>
+<FONT color="green">852</FONT>            sb.appendln(4.5d);<a name="line.852"></a>
+<FONT color="green">853</FONT>            assertEquals("4.5" + SEP, sb.toString());<a name="line.853"></a>
 <FONT color="green">854</FONT>        }<a name="line.854"></a>
 <FONT color="green">855</FONT>    <a name="line.855"></a>
 <FONT color="green">856</FONT>        //-----------------------------------------------------------------------<a name="line.856"></a>
 <FONT color="green">857</FONT>        @Test<a name="line.857"></a>
-<FONT color="green">858</FONT>        public void testAppendFixedWidthPadLeft() {<a name="line.858"></a>
+<FONT color="green">858</FONT>        public void testAppendPadding() {<a name="line.858"></a>
 <FONT color="green">859</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.859"></a>
-<FONT color="green">860</FONT>            sb.appendFixedWidthPadLeft("foo", -1, '-');<a name="line.860"></a>
-<FONT color="green">861</FONT>            assertEquals("", sb.toString());<a name="line.861"></a>
+<FONT color="green">860</FONT>            sb.append("foo");<a name="line.860"></a>
+<FONT color="green">861</FONT>            assertEquals("foo", sb.toString());<a name="line.861"></a>
 <FONT color="green">862</FONT>    <a name="line.862"></a>
-<FONT color="green">863</FONT>            sb.clear();<a name="line.863"></a>
-<FONT color="green">864</FONT>            sb.appendFixedWidthPadLeft("foo", 0, '-');<a name="line.864"></a>
-<FONT color="green">865</FONT>            assertEquals("", sb.toString());<a name="line.865"></a>
-<FONT color="green">866</FONT>    <a name="line.866"></a>
-<FONT color="green">867</FONT>            sb.clear();<a name="line.867"></a>
-<FONT color="green">868</FONT>            sb.appendFixedWidthPadLeft("foo", 1, '-');<a name="line.868"></a>
-<FONT color="green">869</FONT>            assertEquals("o", sb.toString());<a name="line.869"></a>
-<FONT color="green">870</FONT>    <a name="line.870"></a>
-<FONT color="green">871</FONT>            sb.clear();<a name="line.871"></a>
-<FONT color="green">872</FONT>            sb.appendFixedWidthPadLeft("foo", 2, '-');<a name="line.872"></a>
-<FONT color="green">873</FONT>            assertEquals("oo", sb.toString());<a name="line.873"></a>
-<FONT color="green">874</FONT>    <a name="line.874"></a>
-<FONT color="green">875</FONT>            sb.clear();<a name="line.875"></a>
-<FONT color="green">876</FONT>            sb.appendFixedWidthPadLeft("foo", 3, '-');<a name="line.876"></a>
-<FONT color="green">877</FONT>            assertEquals("foo", sb.toString());<a name="line.877"></a>
-<FONT color="green">878</FONT>    <a name="line.878"></a>
-<FONT color="green">879</FONT>            sb.clear();<a name="line.879"></a>
-<FONT color="green">880</FONT>            sb.appendFixedWidthPadLeft("foo", 4, '-');<a name="line.880"></a>
-<FONT color="green">881</FONT>            assertEquals("-foo", sb.toString());<a name="line.881"></a>
-<FONT color="green">882</FONT>    <a name="line.882"></a>
-<FONT color="green">883</FONT>            sb.clear();<a name="line.883"></a>
-<FONT color="green">884</FONT>            sb.appendFixedWidthPadLeft("foo", 10, '-');<a name="line.884"></a>
-<FONT color="green">885</FONT>            assertEquals(10, sb.length());<a name="line.885"></a>
-<FONT color="green">886</FONT>            //            1234567890<a name="line.886"></a>
-<FONT color="green">887</FONT>            assertEquals("-------foo", sb.toString());<a name="line.887"></a>
+<FONT color="green">863</FONT>            sb.appendPadding(-1, '-');<a name="line.863"></a>
+<FONT color="green">864</FONT>            assertEquals("foo", sb.toString());<a name="line.864"></a>
+<FONT color="green">865</FONT>    <a name="line.865"></a>
+<FONT color="green">866</FONT>            sb.appendPadding(0, '-');<a name="line.866"></a>
+<FONT color="green">867</FONT>            assertEquals("foo", sb.toString());<a name="line.867"></a>
+<FONT color="green">868</FONT>    <a name="line.868"></a>
+<FONT color="green">869</FONT>            sb.appendPadding(1, '-');<a name="line.869"></a>
+<FONT color="green">870</FONT>            assertEquals("foo-", sb.toString());<a name="line.870"></a>
+<FONT color="green">871</FONT>    <a name="line.871"></a>
+<FONT color="green">872</FONT>            sb.appendPadding(16, '-');<a name="line.872"></a>
+<FONT color="green">873</FONT>            assertEquals(20, sb.length());<a name="line.873"></a>
+<FONT color="green">874</FONT>            //            12345678901234567890<a name="line.874"></a>
+<FONT color="green">875</FONT>            assertEquals("foo-----------------", sb.toString());<a name="line.875"></a>
+<FONT color="green">876</FONT>        }<a name="line.876"></a>
+<FONT color="green">877</FONT>    <a name="line.877"></a>
+<FONT color="green">878</FONT>        //-----------------------------------------------------------------------<a name="line.878"></a>
+<FONT color="green">879</FONT>        @Test<a name="line.879"></a>
+<FONT color="green">880</FONT>        public void testAppendFixedWidthPadLeft() {<a name="line.880"></a>
+<FONT color="green">881</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.881"></a>
+<FONT color="green">882</FONT>            sb.appendFixedWidthPadLeft("foo", -1, '-');<a name="line.882"></a>
+<FONT color="green">883</FONT>            assertEquals("", sb.toString());<a name="line.883"></a>
+<FONT color="green">884</FONT>    <a name="line.884"></a>
+<FONT color="green">885</FONT>            sb.clear();<a name="line.885"></a>
+<FONT color="green">886</FONT>            sb.appendFixedWidthPadLeft("foo", 0, '-');<a name="line.886"></a>
+<FONT color="green">887</FONT>            assertEquals("", sb.toString());<a name="line.887"></a>
 <FONT color="green">888</FONT>    <a name="line.888"></a>
 <FONT color="green">889</FONT>            sb.clear();<a name="line.889"></a>
-<FONT color="green">890</FONT>            sb.setNullText("null");<a name="line.890"></a>
-<FONT color="green">891</FONT>            sb.appendFixedWidthPadLeft(null, 5, '-');<a name="line.891"></a>
-<FONT color="green">892</FONT>            assertEquals("-null", sb.toString());<a name="line.892"></a>
-<FONT color="green">893</FONT>        }<a name="line.893"></a>
-<FONT color="green">894</FONT>    <a name="line.894"></a>
-<FONT color="green">895</FONT>        //-----------------------------------------------------------------------<a name="line.895"></a>
-<FONT color="green">896</FONT>        @Test<a name="line.896"></a>
-<FONT color="green">897</FONT>        public void testAppendFixedWidthPadLeft_int() {<a name="line.897"></a>
-<FONT color="green">898</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.898"></a>
-<FONT color="green">899</FONT>            sb.appendFixedWidthPadLeft(123, -1, '-');<a name="line.899"></a>
-<FONT color="green">900</FONT>            assertEquals("", sb.toString());<a name="line.900"></a>
-<FONT color="green">901</FONT>    <a name="line.901"></a>
-<FONT color="green">902</FONT>            sb.clear();<a name="line.902"></a>
-<FONT color="green">903</FONT>            sb.appendFixedWidthPadLeft(123, 0, '-');<a name="line.903"></a>
-<FONT color="green">904</FONT>            assertEquals("", sb.toString());<a name="line.904"></a>
-<FONT color="green">905</FONT>    <a name="line.905"></a>
-<FONT color="green">906</FONT>            sb.clear();<a name="line.906"></a>
-<FONT color="green">907</FONT>            sb.appendFixedWidthPadLeft(123, 1, '-');<a name="line.907"></a>
-<FONT color="green">908</FONT>            assertEquals("3", sb.toString());<a name="line.908"></a>
-<FONT color="green">909</FONT>    <a name="line.909"></a>
-<FONT color="green">910</FONT>            sb.clear();<a name="line.910"></a>
-<FONT color="green">911</FONT>            sb.appendFixedWidthPadLeft(123, 2, '-');<a name="line.911"></a>
-<FONT color="green">912</FONT>            assertEquals("23", sb.toString());<a name="line.912"></a>
-<FONT color="green">913</FONT>    <a name="line.913"></a>
-<FONT color="green">914</FONT>            sb.clear();<a name="line.914"></a>
-<FONT color="green">915</FONT>            sb.appendFixedWidthPadLeft(123, 3, '-');<a name="line.915"></a>
-<FONT color="green">916</FONT>            assertEquals("123", sb.toString());<a name="line.916"></a>
-<FONT color="green">917</FONT>    <a name="line.917"></a>
-<FONT color="green">918</FONT>            sb.clear();<a name="line.918"></a>
-<FONT color="green">919</FONT>            sb.appendFixedWidthPadLeft(123, 4, '-');<a name="line.919"></a>
-<FONT color="green">920</FONT>            assertEquals("-123", sb.toString());<a name="line.920"></a>
-<FONT color="green">921</FONT>    <a name="line.921"></a>
-<FONT color="green">922</FONT>            sb.clear();<a name="line.922"></a>
-<FONT color="green">923</FONT>            sb.appendFixedWidthPadLeft(123, 10, '-');<a name="line.923"></a>
-<FONT color="green">924</FONT>            assertEquals(10, sb.length());<a name="line.924"></a>
-<FONT color="green">925</FONT>            //            1234567890<a name="line.925"></a>
-<FONT color="green">926</FONT>            assertEquals("-------123", sb.toString());<a name="line.926"></a>
-<FONT color="green">927</FONT>        }<a name="line.927"></a>
-<FONT color="green">928</FONT>    <a name="line.928"></a>
-<FONT color="green">929</FONT>        //-----------------------------------------------------------------------<a name="line.929"></a>
-<FONT color="green">930</FONT>        @Test<a name="line.930"></a>
-<FONT color="green">931</FONT>        public void testAppendFixedWidthPadRight() {<a name="line.931"></a>
-<FONT color="green">932</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.932"></a>
-<FONT color="green">933</FONT>            sb.appendFixedWidthPadRight("foo", -1, '-');<a name="line.933"></a>
-<FONT color="green">934</FONT>            assertEquals("", sb.toString());<a name="line.934"></a>
+<FONT color="green">890</FONT>            sb.appendFixedWidthPadLeft("foo", 1, '-');<a name="line.890"></a>
+<FONT color="green">891</FONT>            assertEquals("o", sb.toString());<a name="line.891"></a>
+<FONT color="green">892</FONT>    <a name="line.892"></a>
+<FONT color="green">893</FONT>            sb.clear();<a name="line.893"></a>
+<FONT color="green">894</FONT>            sb.appendFixedWidthPadLeft("foo", 2, '-');<a name="line.894"></a>
+<FONT color="green">895</FONT>            assertEquals("oo", sb.toString());<a name="line.895"></a>
+<FONT color="green">896</FONT>    <a name="line.896"></a>
+<FONT color="green">897</FONT>            sb.clear();<a name="line.897"></a>
+<FONT color="green">898</FONT>            sb.appendFixedWidthPadLeft("foo", 3, '-');<a name="line.898"></a>
+<FONT color="green">899</FONT>            assertEquals("foo", sb.toString());<a name="line.899"></a>
+<FONT color="green">900</FONT>    <a name="line.900"></a>
+<FONT color="green">901</FONT>            sb.clear();<a name="line.901"></a>
+<FONT color="green">902</FONT>            sb.appendFixedWidthPadLeft("foo", 4, '-');<a name="line.902"></a>
+<FONT color="green">903</FONT>            assertEquals("-foo", sb.toString());<a name="line.903"></a>
+<FONT color="green">904</FONT>    <a name="line.904"></a>
+<FONT color="green">905</FONT>            sb.clear();<a name="line.905"></a>
+<FONT color="green">906</FONT>            sb.appendFixedWidthPadLeft("foo", 10, '-');<a name="line.906"></a>
+<FONT color="green">907</FONT>            assertEquals(10, sb.length());<a name="line.907"></a>
+<FONT color="green">908</FONT>            //            1234567890<a name="line.908"></a>
+<FONT color="green">909</FONT>            assertEquals("-------foo", sb.toString());<a name="line.909"></a>
+<FONT color="green">910</FONT>    <a name="line.910"></a>
+<FONT color="green">911</FONT>            sb.clear();<a name="line.911"></a>
+<FONT color="green">912</FONT>            sb.setNullText("null");<a name="line.912"></a>
+<FONT color="green">913</FONT>            sb.appendFixedWidthPadLeft(null, 5, '-');<a name="line.913"></a>
+<FONT color="green">914</FONT>            assertEquals("-null", sb.toString());<a name="line.914"></a>
+<FONT color="green">915</FONT>        }<a name="line.915"></a>
+<FONT color="green">916</FONT>    <a name="line.916"></a>
+<FONT color="green">917</FONT>        //-----------------------------------------------------------------------<a name="line.917"></a>
+<FONT color="green">918</FONT>        @Test<a name="line.918"></a>
+<FONT color="green">919</FONT>        public void testAppendFixedWidthPadLeft_int() {<a name="line.919"></a>
+<FONT color="green">920</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.920"></a>
+<FONT color="green">921</FONT>            sb.appendFixedWidthPadLeft(123, -1, '-');<a name="line.921"></a>
+<FONT color="green">922</FONT>            assertEquals("", sb.toString());<a name="line.922"></a>
+<FONT color="green">923</FONT>    <a name="line.923"></a>
+<FONT color="green">924</FONT>            sb.clear();<a name="line.924"></a>
+<FONT color="green">925</FONT>            sb.appendFixedWidthPadLeft(123, 0, '-');<a name="line.925"></a>
+<FONT color="green">926</FONT>            assertEquals("", sb.toString());<a name="line.926"></a>
+<FONT color="green">927</FONT>    <a name="line.927"></a>
+<FONT color="green">928</FONT>            sb.clear();<a name="line.928"></a>
+<FONT color="green">929</FONT>            sb.appendFixedWidthPadLeft(123, 1, '-');<a name="line.929"></a>
+<FONT color="green">930</FONT>            assertEquals("3", sb.toString());<a name="line.930"></a>
+<FONT color="green">931</FONT>    <a name="line.931"></a>
+<FONT color="green">932</FONT>            sb.clear();<a name="line.932"></a>
+<FONT color="green">933</FONT>            sb.appendFixedWidthPadLeft(123, 2, '-');<a name="line.933"></a>
+<FONT color="green">934</FONT>            assertEquals("23", sb.toString());<a name="line.934"></a>
 <FONT color="green">935</FONT>    <a name="line.935"></a>
 <FONT color="green">936</FONT>            sb.clear();<a name="line.936"></a>
-<FONT color="green">937</FONT>            sb.appendFixedWidthPadRight("foo", 0, '-');<a name="line.937"></a>
-<FONT color="green">938</FONT>            assertEquals("", sb.toString());<a name="line.938"></a>
+<FONT color="green">937</FONT>            sb.appendFixedWidthPadLeft(123, 3, '-');<a name="line.937"></a>
+<FONT color="green">938</FONT>            assertEquals("123", sb.toString());<a name="line.938"></a>
 <FONT color="green">939</FONT>    <a name="line.939"></a>
 <FONT color="green">940</FONT>            sb.clear();<a name="line.940"></a>
-<FONT color="green">941</FONT>            sb.appendFixedWidthPadRight("foo", 1, '-');<a name="line.941"></a>
-<FONT color="green">942</FONT>            assertEquals("f", sb.toString());<a name="line.942"></a>
+<FONT color="green">941</FONT>            sb.appendFixedWidthPadLeft(123, 4, '-');<a name="line.941"></a>
+<FONT color="green">942</FONT>            assertEquals("-123", sb.toString());<a name="line.942"></a>
 <FONT color="green">943</FONT>    <a name="line.943"></a>
 <FONT color="green">944</FONT>            sb.clear();<a name="line.944"></a>
-<FONT color="green">945</FONT>            sb.appendFixedWidthPadRight("foo", 2, '-');<a name="line.945"></a>
-<FONT color="green">946</FONT>            assertEquals("fo", sb.toString());<a name="line.946"></a>
-<FONT color="green">947</FONT>    <a name="line.947"></a>
-<FONT color="green">948</FONT>            sb.clear();<a name="line.948"></a>
-<FONT color="green">949</FONT>            sb.appendFixedWidthPadRight("foo", 3, '-');<a name="line.949"></a>
-<FONT color="green">950</FONT>            assertEquals("foo", sb.toString());<a name="line.950"></a>
-<FONT color="green">951</FONT>    <a name="line.951"></a>
-<FONT color="green">952</FONT>            sb.clear();<a name="line.952"></a>
-<FONT color="green">953</FONT>            sb.appendFixedWidthPadRight("foo", 4, '-');<a name="line.953"></a>
-<FONT color="green">954</FONT>            assertEquals("foo-", sb.toString());<a name="line.954"></a>
-<FONT color="green">955</FONT>    <a name="line.955"></a>
-<FONT color="green">956</FONT>            sb.clear();<a name="line.956"></a>
-<FONT color="green">957</FONT>            sb.appendFixedWidthPadRight("foo", 10, '-');<a name="line.957"></a>
-<FONT color="green">958</FONT>            assertEquals(10, sb.length());<a name="line.958"></a>
-<FONT color="green">959</FONT>            //            1234567890<a name="line.959"></a>
-<FONT color="green">960</FONT>            assertEquals("foo-------", sb.toString());<a name="line.960"></a>
+<FONT color="green">945</FONT>            sb.appendFixedWidthPadLeft(123, 10, '-');<a name="line.945"></a>
+<FONT color="green">946</FONT>            assertEquals(10, sb.length());<a name="line.946"></a>
+<FONT color="green">947</FONT>            //            1234567890<a name="line.947"></a>
+<FONT color="green">948</FONT>            assertEquals("-------123", sb.toString());<a name="line.948"></a>
+<FONT color="green">949</FONT>        }<a name="line.949"></a>
+<FONT color="green">950</FONT>    <a name="line.950"></a>
+<FONT color="green">951</FONT>        //-----------------------------------------------------------------------<a name="line.951"></a>
+<FONT color="green">952</FONT>        @Test<a name="line.952"></a>
+<FONT color="green">953</FONT>        public void testAppendFixedWidthPadRight() {<a name="line.953"></a>
+<FONT color="green">954</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.954"></a>
+<FONT color="green">955</FONT>            sb.appendFixedWidthPadRight("foo", -1, '-');<a name="line.955"></a>
+<FONT color="green">956</FONT>            assertEquals("", sb.toString());<a name="line.956"></a>
+<FONT color="green">957</FONT>    <a name="line.957"></a>
+<FONT color="green">958</FONT>            sb.clear();<a name="line.958"></a>
+<FONT color="green">959</FONT>            sb.appendFixedWidthPadRight("foo", 0, '-');<a name="line.959"></a>
+<FONT color="green">960</FONT>            assertEquals("", sb.toString());<a name="line.960"></a>
 <FONT color="green">961</FONT>    <a name="line.961"></a>
 <FONT color="green">962</FONT>            sb.clear();<a name="line.962"></a>
-<FONT color="green">963</FONT>            sb.setNullText("null");<a name="line.963"></a>
-<FONT color="green">964</FONT>            sb.appendFixedWidthPadRight(null, 5, '-');<a name="line.964"></a>
-<FONT color="green">965</FONT>            assertEquals("null-", sb.toString());<a name="line.965"></a>
-<FONT color="green">966</FONT>        }<a name="line.966"></a>
-<FONT color="green">967</FONT>    <a name="line.967"></a>
-<FONT color="green">968</FONT>        // See: http://issues.apache.org/jira/browse/LANG-299<a name="line.968"></a>
-<FONT color="green">969</FONT>        @Test<a name="line.969"></a>
-<FONT color="green">970</FONT>        public void testLang299() {<a name="line.970"></a>
-<FONT color="green">971</FONT>            final StrBuilder sb = new StrBuilder(1);<a name="line.971"></a>
-<FONT color="green">972</FONT>            sb.appendFixedWidthPadRight("foo", 1, '-');<a name="line.972"></a>
-<FONT color="green">973</FONT>            assertEquals("f", sb.toString());<a name="line.973"></a>
-<FONT color="green">974</FONT>        }<a name="line.974"></a>
-<FONT color="green">975</FONT>    <a name="line.975"></a>
-<FONT color="green">976</FONT>        //-----------------------------------------------------------------------<a name="line.976"></a>
-<FONT color="green">977</FONT>        @Test<a name="line.977"></a>
-<FONT color="green">978</FONT>        public void testAppendFixedWidthPadRight_int() {<a name="line.978"></a>
-<FONT color="green">979</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.979"></a>
-<FONT color="green">980</FONT>            sb.appendFixedWidthPadRight(123, -1, '-');<a name="line.980"></a>
-<FONT color="green">981</FONT>            assertEquals("", sb.toString());<a name="line.981"></a>
-<FONT color="green">982</FONT>    <a name="line.982"></a>
-<FONT color="green">983</FONT>            sb.clear();<a name="line.983"></a>
-<FONT color="green">984</FONT>            sb.appendFixedWidthPadRight(123, 0, '-');<a name="line.984"></a>
-<FONT color="green">985</FONT>            assertEquals("", sb.toString());<a name="line.985"></a>
-<FONT color="green">986</FONT>    <a name="line.986"></a>
-<FONT color="green">987</FONT>            sb.clear();<a name="line.987"></a>
-<FONT color="green">988</FONT>            sb.appendFixedWidthPadRight(123, 1, '-');<a name="line.988"></a>
-<FONT color="green">989</FONT>            assertEquals("1", sb.toString());<a name="line.989"></a>
-<FONT color="green">990</FONT>    <a name="line.990"></a>
-<FONT color="green">991</FONT>            sb.clear();<a name="line.991"></a>
-<FONT color="green">992</FONT>            sb.appendFixedWidthPadRight(123, 2, '-');<a name="line.992"></a>
-<FONT color="green">993</FONT>            assertEquals("12", sb.toString());<a name="line.993"></a>
-<FONT color="green">994</FONT>    <a name="line.994"></a>
-<FONT color="green">995</FONT>            sb.clear();<a name="line.995"></a>
-<FONT color="green">996</FONT>            sb.appendFixedWidthPadRight(123, 3, '-');<a name="line.996"></a>
-<FONT color="green">997</FONT>            assertEquals("123", sb.toString());<a name="line.997"></a>
-<FONT color="green">998</FONT>    <a name="line.998"></a>
-<FONT color="green">999</FONT>            sb.clear();<a name="line.999"></a>
-<FONT color="green">1000</FONT>            sb.appendFixedWidthPadRight(123, 4, '-');<a name="line.1000"></a>
-<FONT color="green">1001</FONT>            assertEquals("123-", sb.toString());<a name="line.1001"></a>
-<FONT color="green">1002</FONT>    <a name="line.1002"></a>
-<FONT color="green">1003</FONT>            sb.clear();<a name="line.1003"></a>
-<FONT color="green">1004</FONT>            sb.appendFixedWidthPadRight(123, 10, '-');<a name="line.1004"></a>
-<FONT color="green">1005</FONT>            assertEquals(10, sb.length());<a name="line.1005"></a>
-<FONT color="green">1006</FONT>            //            1234567890<a name="line.1006"></a>
-<FONT color="green">1007</FONT>            assertEquals("123-------", sb.toString());<a name="line.1007"></a>
-<FONT color="green">1008</FONT>        }<a name="line.1008"></a>
-<FONT color="green">1009</FONT>    <a name="line.1009"></a>
-<FONT color="green">1010</FONT>        //-----------------------------------------------------------------------<a name="line.1010"></a>
-<FONT color="green">1011</FONT>        @Test<a name="line.1011"></a>
-<FONT color="green">1012</FONT>        public void testAppend_FormattedString() {<a name="line.1012"></a>
-<FONT color="green">1013</FONT>            StrBuilder sb;<a name="line.1013"></a>
-<FONT color="green">1014</FONT>    <a name="line.1014"></a>
-<FONT color="green">1015</FONT>            sb = new StrBuilder();<a name="line.1015"></a>
-<FONT color="green">1016</FONT>            sb.append("Hi", (Object[]) null);<a name="line.1016"></a>
-<FONT color="green">1017</FONT>            assertEquals("Hi", sb.toString());<a name="line.1017"></a>
-<FONT color="green">1018</FONT>    <a name="line.1018"></a>
-<FONT color="green">1019</FONT>            sb = new StrBuilder();<a name="line.1019"></a>
-<FONT color="green">1020</FONT>            sb.append("Hi", "Alice");<a name="line.1020"></a>
-<FONT color="green">1021</FONT>            assertEquals("Hi", sb.toString());<a name="line.1021"></a>
-<FONT color="green">1022</FONT>    <a name="line.1022"></a>
-<FONT color="green">1023</FONT>            sb = new StrBuilder();<a name="line.1023"></a>
-<FONT color="green">1024</FONT>            sb.append("Hi %s", "Alice");<a name="line.1024"></a>
-<FONT color="green">1025</FONT>            assertEquals("Hi Alice", sb.toString());<a name="line.1025"></a>
-<FONT color="green">1026</FONT>    <a name="line.1026"></a>
-<FONT color="green">1027</FONT>            sb = new StrBuilder();<a name="line.1027"></a>
-<FONT color="green">1028</FONT>            sb.append("Hi %s %,d", "Alice", 5000);<a name="line.1028"></a>
-<FONT color="green">1029</FONT>            // group separator depends on system locale<a name="line.1029"></a>
-<FONT color="green">1030</FONT>            char groupingSeparator = DecimalFormatSymbols.getInstance().getGroupingSeparator();<a name="line.1030"></a>
-<FONT color="green">1031</FONT>            String expected = "Hi Alice 5" + groupingSeparator + "000";<a name="line.1031"></a>
-<FONT color="green">1032</FONT>            assertEquals(expected, sb.toString());<a name="line.1032"></a>
-<FONT color="green">1033</FONT>        }<a name="line.1033"></a>
-<FONT color="green">1034</FONT>    <a name="line.1034"></a>
-<FONT color="green">1035</FONT>        //-----------------------------------------------------------------------<a name="line.1035"></a>
-<FONT color="green">1036</FONT>        @Test<a name="line.1036"></a>
-<FONT color="green">1037</FONT>        public void testAppendAll_Array() {<a name="line.1037"></a>
-<FONT color="green">1038</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.1038"></a>
-<FONT color="green">1039</FONT>            sb.appendAll((Object[]) null);<a name="line.1039"></a>
-<FONT color="green">1040</FONT>            assertEquals("", sb.toString());<a name="line.1040"></a>
-<FONT color="green">1041</FONT>    <a name="line.1041"></a>
-<FONT color="green">1042</FONT>            sb.clear();<a name="line.1042"></a>
-<FONT color="green">1043</FONT>            sb.appendAll(new Object[0]);<a name="line.1043"></a>
-<FONT color="green">1044</FONT>            assertEquals("", sb.toString());<a name="line.1044"></a>
-<FONT color="green">1045</FONT>    <a name="line.1045"></a>
-<FONT color="green">1046</FONT>            sb.clear();<a name="line.1046"></a>
-<FONT color="green">1047</FONT>            sb.appendAll(new Object[]{"foo", "bar", "baz"});<a name="line.1047"></a>
-<FONT color="green">1048</FONT>            assertEquals("foobarbaz", sb.toString());<a name="line.1048"></a>
-<FONT color="green">1049</FONT>    <a name="line.1049"></a>
-<FONT color="green">1050</FONT>            sb.clear();<a name="line.1050"></a>
-<FONT color="green">1051</FONT>            sb.appendAll("foo", "bar", "baz");<a name="line.1051"></a>
-<FONT color="green">1052</FONT>            assertEquals("foobarbaz", sb.toString());<a name="line.1052"></a>
-<FONT color="green">1053</FONT>        }<a name="line.1053"></a>
-<FONT color="green">1054</FONT>    <a name="line.1054"></a>
-<FONT color="green">1055</FONT>        //-----------------------------------------------------------------------<a name="line.1055"></a>
-<FONT color="green">1056</FONT>        @Test<a name="line.1056"></a>
-<FONT color="green">1057</FONT>        public void testAppendAll_Collection() {<a name="line.1057"></a>
-<FONT color="green">1058</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.1058"></a>
-<FONT color="green">1059</FONT>            sb.appendAll((Collection&lt;?&gt;) null);<a name="line.1059"></a>
-<FONT color="green">1060</FONT>            assertEquals("", sb.toString());<a name="line.1060"></a>
-<FONT color="green">1061</FONT>    <a name="line.1061"></a>
-<FONT color="green">1062</FONT>            sb.clear();<a name="line.1062"></a>
-<FONT color="green">1063</FONT>            sb.appendAll(Collections.EMPTY_LIST);<a name="line.1063"></a>
-<FONT color="green">1064</FONT>            assertEquals("", sb.toString());<a name="line.1064"></a>
-<FONT color="green">1065</FONT>    <a name="line.1065"></a>
-<FONT color="green">1066</FONT>            sb.clear();<a name="line.1066"></a>
-<FONT color="green">1067</FONT>            sb.appendAll(Arrays.asList(new Object[]{"foo", "bar", "baz"}));<a name="line.1067"></a>
-<FONT color="green">1068</FONT>            assertEquals("foobarbaz", sb.toString());<a name="line.1068"></a>
-<FONT color="green">1069</FONT>        }<a name="line.1069"></a>
-<FONT color="green">1070</FONT>    <a name="line.1070"></a>
-<FONT color="green">1071</FONT>        //-----------------------------------------------------------------------<a name="line.1071"></a>
-<FONT color="green">1072</FONT>        @Test<a name="line.1072"></a>
-<FONT color="green">1073</FONT>        public void testAppendAll_Iterator() {<a name="line.1073"></a>
-<FONT color="green">1074</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.1074"></a>
-<FONT color="green">1075</FONT>            sb.appendAll((Iterator&lt;?&gt;) null);<a name="line.1075"></a>
-<FONT color="green">1076</FONT>            assertEquals("", sb.toString());<a name="line.1076"></a>
-<FONT color="green">1077</FONT>    <a name="line.1077"></a>
-<FONT color="green">1078</FONT>            sb.clear();<a name="line.1078"></a>
-<FONT color="green">1079</FONT>            sb.appendAll(Collections.EMPTY_LIST.iterator());<a name="line.1079"></a>
-<FONT color="green">1080</FONT>            assertEquals("", sb.toString());<a name="line.1080"></a>
-<FONT color="green">1081</FONT>    <a name="line.1081"></a>
-<FONT color="green">1082</FONT>            sb.clear();<a name="line.1082"></a>
-<FONT color="green">1083</FONT>            sb.appendAll(Arrays.asList(new Object[]{"foo", "bar", "baz"}).iterator());<a name="line.1083"></a>
-<FONT color="green">1084</FONT>            assertEquals("foobarbaz", sb.toString());<a name="line.1084"></a>
-<FONT color="green">1085</FONT>        }<a name="line.1085"></a>
-<FONT color="green">1086</FONT>    <a name="line.1086"></a>
-<FONT color="green">1087</FONT>        //-----------------------------------------------------------------------<a name="line.1087"></a>
-<FONT color="green">1088</FONT>        @Test<a name="line.1088"></a>
-<FONT color="green">1089</FONT>        public void testAppendWithSeparators_Array() {<a name="line.1089"></a>
-<FONT color="green">1090</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.1090"></a>
-<FONT color="green">1091</FONT>            sb.appendWithSeparators((Object[]) null, ",");<a name="line.1091"></a>
-<FONT color="green">1092</FONT>            assertEquals("", sb.toString());<a name="line.1092"></a>
-<FONT color="green">1093</FONT>    <a name="line.1093"></a>
-<FONT color="green">1094</FONT>            sb.clear();<a name="line.1094"></a>
-<FONT color="green">1095</FONT>            sb.appendWithSeparators(new Object[0], ",");<a name="line.1095"></a>
-<FONT color="green">1096</FONT>            assertEquals("", sb.toString());<a name="line.1096"></a>
-<FONT color="green">1097</FONT>    <a name="line.1097"></a>
-<FONT color="green">1098</FONT>            sb.clear();<a name="line.1098"></a>
-<FONT color="green">1099</FONT>            sb.appendWithSeparators(new Object[]{"foo", "bar", "baz"}, ",");<a name="line.1099"></a>
-<FONT color="green">1100</FONT>            assertEquals("foo,bar,baz", sb.toString());<a name="line.1100"></a>
-<FONT color="green">1101</FONT>    <a name="line.1101"></a>
-<FONT color="green">1102</FONT>            sb.clear();<a name="line.1102"></a>
-<FONT color="green">1103</FONT>            sb.appendWithSeparators(new Object[]{"foo", "bar", "baz"}, null);<a name="line.1103"></a>
-<FONT color="green">1104</FONT>            assertEquals("foobarbaz", sb.toString());<a name="line.1104"></a>
-<FONT color="green">1105</FONT>    <a name="line.1105"></a>
-<FONT color="green">1106</FONT>            sb.clear();<a name="line.1106"></a>
-<FONT color="green">1107</FONT>            sb.appendWithSeparators(new Object[]{"foo", null, "baz"}, ",");<a name="line.1107"></a>
-<FONT color="green">1108</FONT>            assertEquals("foo,,baz", sb.toString());<a name="line.1108"></a>
-<FONT color="green">1109</FONT>        }<a name="line.1109"></a>
-<FONT color="green">1110</FONT>    <a name="line.1110"></a>
-<FONT color="green">1111</FONT>        //-----------------------------------------------------------------------<a name="line.1111"></a>
-<FONT color="green">1112</FONT>        @Test<a name="line.1112"></a>
-<FONT color="green">1113</FONT>        public void testAppendWithSeparators_Collection() {<a name="line.1113"></a>
-<FONT color="green">1114</FONT>            final StrBuilder sb = new StrBuilder();<a name="line.1114"></a>
-<FONT color="green">1115</FONT>            sb.appendWithSeparators((Collection&lt;?&gt;) null, ",");<a name="line.1115"></a>
-<FONT color="green">1116</FONT>            assertEquals("", sb.toString());<a name="line.1116"></a>
-<FONT color="green">1117</FONT>    <a name="line.1117"></a>

[... 1117 lines stripped ...]


Mime
View raw message