git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@226862 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2005-08-01 19:40:49 +00:00
parent 159999da0c
commit 23845c1751
1 changed files with 6 additions and 0 deletions

View File

@ -360,6 +360,9 @@ public class StrBuilderTest extends TestCase {
}
}
/**
* Tests {@link StrBuilder#replace(char, char)}.
*/
public void testReplaceCharChar() {
StrBuilder sb = new StrBuilder("abc");
sb.replace('a', 'd');
@ -374,6 +377,9 @@ public class StrBuilderTest extends TestCase {
assertEquals("ddbbcc", sb.toString());
}
/**
* Tests {@link StrBuilder#replace(String, String)}.
*/
public void testReplaceStringString() {
StrBuilder sb = new StrBuilder("abc");
sb.replace("a", "d");