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:
parent
fd0deef560
commit
bb90472825
|
@ -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>") );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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 + " "));
|
||||
|
|
Loading…
Reference in New Issue