1 package test.net.sourceforge.pmd.util;
2
3 import junit.framework.TestCase;
4 import net.sourceforge.pmd.util.StringUtil;
5
6 public class StringUtilTest extends TestCase {
7
8 public void testReplaceWithOneChar() {
9 assertEquals("faa", StringUtil.replaceString("foo", 'o', "a"));
10 }
11
12 public void testReplaceWithMultipleChars() {
13 assertEquals("faaaa", StringUtil.replaceString("foo", 'o', "aa"));
14 }
15
16 }
This page was automatically generated by Maven