commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1148167 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java
Date Tue, 19 Jul 2011 05:10:04 GMT
Author: bayard
Date: Tue Jul 19 05:10:03 2011
New Revision: 1148167

URL: http://svn.apache.org/viewvc?rev=1148167&view=rev
Log:
Fixing test to use the right escaper; numeric entities and not unicode. LANG-728

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java?rev=1148167&r1=1148166&r2=1148167&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringEscapeUtilsTest.java
Tue Jul 19 05:10:03 2011
@@ -31,7 +31,7 @@ import org.apache.commons.io.IOUtils;
 import org.junit.Test;
 
 import org.apache.commons.lang3.text.translate.CharSequenceTranslator;
-import org.apache.commons.lang3.text.translate.UnicodeEscaper;
+import org.apache.commons.lang3.text.translate.NumericEntityEscaper;
 
 /**
  * Unit tests for {@link StringEscapeUtils}.
@@ -338,9 +338,9 @@ public class StringEscapeUtilsTest {
     @Test
     public void testEscapeXmlSupplementaryCharacters() {
         CharSequenceTranslator escapeXml = 
-            StringEscapeUtils.ESCAPE_XML.with( UnicodeEscaper.between(0x7f, Integer.MAX_VALUE)
);
+            StringEscapeUtils.ESCAPE_XML.with( NumericEntityEscaper.between(0x7f, Integer.MAX_VALUE)
);
 
-        assertEquals("Supplementary character must be represented using a single escape",
"\u233B4",
+        assertEquals("Supplementary character must be represented using a single escape",
"𣎴",
                 escapeXml.translate("\uD84C\uDFB4"));
     }
     



Mime
View raw message