From bb904728253b34b954cad3d1cc16734c5c9d9850 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sat, 14 Mar 2009 21:57:10 +0000 Subject: [PATCH] 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 --- .../lang/StringUtilsSubstringTest.java | 21 ------------------- .../lang/StringUtilsTrimEmptyTest.java | 10 --------- 2 files changed, 31 deletions(-) diff --git a/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java b/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java index 42ff1e30d..d9decb430 100644 --- a/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java +++ b/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java @@ -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("bar", "", "") ); - } - } diff --git a/src/test/org/apache/commons/lang/StringUtilsTrimEmptyTest.java b/src/test/org/apache/commons/lang/StringUtilsTrimEmptyTest.java index da86440e1..c3eb0830b 100644 --- a/src/test/org/apache/commons/lang/StringUtilsTrimEmptyTest.java +++ b/src/test/org/apache/commons/lang/StringUtilsTrimEmptyTest.java @@ -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 + " "));