cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject svn commit: r1765265 - /cocoon/branches/BRANCH_2_1_X/src/blocks/serializers/test/org/apache/cocoon/components/serializers/encoding/XMLEncoderTestCase.java
Date Mon, 17 Oct 2016 12:53:59 GMT
Author: ilgrosso
Date: Mon Oct 17 12:53:59 2016
New Revision: 1765265

URL: http://svn.apache.org/viewvc?rev=1765265&view=rev
Log:
[COCOON-2352] Applying further changes to better deal with HTML encoding

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/serializers/test/org/apache/cocoon/components/serializers/encoding/XMLEncoderTestCase.java

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/serializers/test/org/apache/cocoon/components/serializers/encoding/XMLEncoderTestCase.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/blocks/serializers/test/org/apache/cocoon/components/serializers/encoding/XMLEncoderTestCase.java?rev=1765265&r1=1765264&r2=1765265&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/serializers/test/org/apache/cocoon/components/serializers/encoding/XMLEncoderTestCase.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/serializers/test/org/apache/cocoon/components/serializers/encoding/XMLEncoderTestCase.java
Mon Oct 17 12:53:59 2016
@@ -37,8 +37,9 @@ public class XMLEncoderTestCase extends
      * Test COCOON-2352: XMLEncoder doesn't support Unicode surrogate pairs.
      */
     public void testEncodingSurrogatePairs() {
+        char[] expectedValue = encoder.encode((char) 127808);
+
         assertTrue(encoder.encode('\uD83C').length == 0);
-        
-        assertTrue(Arrays.equals(new char[] {(char) 127808}, encoder.encode('\uDF40')));
+        assertTrue(Arrays.equals(expectedValue, encoder.encode('\uDF40')));
     }
 }



Mime
View raw message