Remove tests of removed deprecated methods

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754539 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-03-14 21:57:10 +00:00
parent fd0deef560
commit bb90472825
2 changed files with 0 additions and 31 deletions

View File

@ -333,25 +333,4 @@ public class StringUtilsSubstringTest extends TestCase {
assertEquals(4,
StringUtils.countMatches("oooooooooooo", "ooo"));
}
public void testDeprecatedGetNestedString_StringString() {
assertEquals(null, StringUtils.getNestedString(null, "tag"));
assertEquals("", StringUtils.getNestedString("", ""));
assertEquals(null, StringUtils.getNestedString("", "abc"));
assertEquals("", StringUtils.getNestedString(" ", " "));
assertEquals(null, StringUtils.getNestedString("abc", null));
assertEquals("", StringUtils.getNestedString("abc", ""));
assertEquals(null, StringUtils.getNestedString("abc", "a"));
assertEquals("bc", StringUtils.getNestedString("abca", "a"));
assertEquals("bc", StringUtils.getNestedString("abcabca", "a"));
assertEquals("bar", StringUtils.getNestedString("\nbar\n", "\n"));
}
public void testDeprecatedGetNestedString_StringStringString() {
assertEquals(null, StringUtils.getNestedString(null, "", ""));
assertEquals("", StringUtils.getNestedString("", "", ""));
assertEquals("", StringUtils.getNestedString(" ", " ", " "));
assertEquals("bar", StringUtils.getNestedString("<foo>bar</foo>", "<foo>", "</foo>") );
}
}

View File

@ -89,16 +89,6 @@ public class StringUtilsTrimEmptyTest extends TestCase {
}
//-----------------------------------------------------------------------
public void testDeprecatedClean() {
assertEquals(FOO, StringUtils.clean(FOO + " "));
assertEquals(FOO, StringUtils.clean(" " + FOO + " "));
assertEquals(FOO, StringUtils.clean(" " + FOO));
assertEquals(FOO, StringUtils.clean(FOO + ""));
assertEquals("", StringUtils.clean(" \t\r\n\b "));
assertEquals("", StringUtils.clean(""));
assertEquals("", StringUtils.clean(null));
}
public void testTrim() {
assertEquals(FOO, StringUtils.trim(FOO + " "));
assertEquals(FOO, StringUtils.trim(" " + FOO + " "));