svn commit: r1765265 - /cocoon/branches/BRANCH_2_1_X/src/blocks/serializers/test/org/apache/cocoon/components/serializers/encoding/XMLEncoderTestCase.java

[email protected]
Newsgroups gmane.text.xml.cocoon.cvs
Message-ID <[email protected]>
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')));
     }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.