commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r754539 - in /commons/proper/lang/trunk/src/test/org/apache/commons/lang: StringUtilsSubstringTest.java StringUtilsTrimEmptyTest.java
Date Sat, 14 Mar 2009 21:57:10 GMT
Author: sebb
Date: Sat Mar 14 21:57:10 2009
New Revision: 754539

URL: http://svn.apache.org/viewvc?rev=754539&view=rev
Log:
Remove tests of removed deprecated methods

Modified:
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTrimEmptyTest.java

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java?rev=754539&r1=754538&r2=754539&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsSubstringTest.java
Sat Mar 14 21:57:10 2009
@@ -333,25 +333,4 @@
         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>") );
-    }
-
 }

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTrimEmptyTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTrimEmptyTest.java?rev=754539&r1=754538&r2=754539&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTrimEmptyTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTrimEmptyTest.java
Sat Mar 14 21:57:10 2009
@@ -89,16 +89,6 @@
     }
 
     //-----------------------------------------------------------------------
-    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 + "  "));



Mime
View raw message