You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2017/02/27 18:09:36 UTC

svn commit: r1784605 - /uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/util/XMLSerializerTest.java

Author: schor
Date: Mon Feb 27 18:09:35 2017
New Revision: 1784605

URL: http://svn.apache.org/viewvc?rev=1784605&view=rev
Log:
[UIMA-5338] fix test case for invalid xml char finding to not try to output that bad char, use just the hex representation

Modified:
    uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/util/XMLSerializerTest.java

Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/util/XMLSerializerTest.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/util/XMLSerializerTest.java?rev=1784605&r1=1784604&r2=1784605&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/util/XMLSerializerTest.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/util/XMLSerializerTest.java Mon Feb 27 18:09:35 2017
@@ -86,7 +86,7 @@ public class XMLSerializerTest extends T
       ch.characters(data, 0, 4);
     } catch (SAXParseException e) {
       String msg = e.getMessage();
-      String expected = "Trying to serialize non-XML 1.0 character: " + (char)5 + ", 0x5 at offset 2";
+      String expected = "Trying to serialize non-XML 1.0 character: " + "0x5 at offset 2";
       assertEquals(msg.substring(0, expected.length()), expected);
       eh = true;
     }  
@@ -126,7 +126,7 @@ public class XMLSerializerTest extends T
     } catch (SAXParseException e) {
       String msg = e.getMessage();
       System.out.println(msg);
-      String expected = "Trying to serialize non-XML 1.1 character: " + (char)0 + ", 0x0 at offset 2";
+      String expected = "Trying to serialize non-XML 1.1 character: " + "0x0 at offset 2";
       assertEquals(msg.substring(0, expected.length()), expected);
       eh = true;
     }