Repository: camel
Updated Branches:
  refs/heads/master 349b2fe20 -> de56e0bdd


normalize the quotation mark in StaxConverter's xml comparison test


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/db80b933
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/db80b933
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/db80b933

Branch: refs/heads/master
Commit: db80b933e751d7fff49f9a9c97f55395c56ca4af
Parents: 349b2fe
Author: Akitoshi Yoshida <a...@apache.org>
Authored: Tue May 27 18:13:17 2014 +0200
Committer: Akitoshi Yoshida <a...@apache.org>
Committed: Tue May 27 18:25:57 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/converter/jaxp/StaxConverterTest.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/db80b933/camel-core/src/test/java/org/apache/camel/converter/jaxp/StaxConverterTest.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/test/java/org/apache/camel/converter/jaxp/StaxConverterTest.java
 
b/camel-core/src/test/java/org/apache/camel/converter/jaxp/StaxConverterTest.java
index 7cd070d..d6d37e0 100644
--- 
a/camel-core/src/test/java/org/apache/camel/converter/jaxp/StaxConverterTest.java
+++ 
b/camel-core/src/test/java/org/apache/camel/converter/jaxp/StaxConverterTest.java
@@ -74,6 +74,10 @@ public class StaxConverterTest extends ContextTestSupport {
         assertNotNull(output);
 
         String result = new String(output.toByteArray(), UTF_8.name());
+        // normalize the auotation mark
+        if (result.indexOf('\'') > 0) {
+            result = result.replace('\'', '"');
+        }
         boolean equals = TEST_XML_WITH_XML_HEADER.equals(result) || 
TEST_XML_WITH_XML_HEADER_ISO_8859_1.equals(result);
         assertTrue("Should match header", equals);
     }

Reply via email to