commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r1056837 - /commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/StringUtilsTest.java
Date Sat, 08 Jan 2011 23:48:16 GMT
Author: niallp
Date: Sat Jan  8 23:48:16 2011
New Revision: 1056837

URL: http://svn.apache.org/viewvc?rev=1056837&view=rev
Log:
Port LANG-623 to LANG 2.x Branch - Test for StringUtils replaceChars() icelandic characters

Modified:
    commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/StringUtilsTest.java

Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/StringUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/StringUtilsTest.java?rev=1056837&r1=1056836&r2=1056837&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/StringUtilsTest.java
(original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/StringUtilsTest.java
Sat Jan  8 23:48:16 2011
@@ -954,6 +954,11 @@ public class StringUtilsTest extends Tes
         assertEquals("test", StringUtils.deleteWhitespace("\u000Bt  \t\n\u0009e\rs\n\n  
\tt"));
     }
 
+    public void testLang623() {
+        assertEquals("t", StringUtils.replaceChars("\u00DE", '\u00DE', 't'));
+        assertEquals("t", StringUtils.replaceChars("\u00FE", '\u00FE', 't'));
+    }
+
     public void testReplace_StringStringString() {
         assertEquals(null, StringUtils.replace(null, null, null));
         assertEquals(null, StringUtils.replace(null, null, "any"));



Mime
View raw message