You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2013/10/07 09:16:55 UTC
[2/8] git commit: Fixed test on CI servers
Fixed test on CI servers
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f33e3fb7
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f33e3fb7
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f33e3fb7
Branch: refs/heads/master
Commit: f33e3fb7e7d365417dc6567e67292afd7c58239a
Parents: 1524452
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Oct 7 08:59:45 2013 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Oct 7 08:59:45 2013 +0200
----------------------------------------------------------------------
.../java/org/apache/camel/converter/jaxp/StaxConverterTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/f33e3fb7/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 eba7b59..5fe411b 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
@@ -75,8 +75,8 @@ public class StaxConverterTest extends ContextTestSupport {
String result = new String(output.toByteArray(), UTF_8.name());
- assertEquals(TEST_XML_WITH_XML_HEADER, result);
-
+ boolean equals = TEST_XML_WITH_XML_HEADER.equals(result) || TEST_XML_WITH_XML_HEADER_ISO_8859_1.equals(result);
+ assertTrue("Should match header", equals);
}
public void testEncodingXmlStreamReader() throws Exception {