camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmuel...@apache.org
Subject svn commit: r1299992 - /camel/trunk/camel-core/src/test/java/org/apache/camel/converter/jaxp/XmlConverterTest.java
Date Tue, 13 Mar 2012 07:37:41 GMT
Author: cmueller
Date: Tue Mar 13 07:37:41 2012
New Revision: 1299992

URL: http://svn.apache.org/viewvc?rev=1299992&view=rev
Log:
CAMEL-4955: Camel should run in a Java 7 environment - updated a test which fail in Java 7
because of an issue in OpenJDK

Modified:
    camel/trunk/camel-core/src/test/java/org/apache/camel/converter/jaxp/XmlConverterTest.java

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/converter/jaxp/XmlConverterTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/converter/jaxp/XmlConverterTest.java?rev=1299992&r1=1299991&r2=1299992&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/converter/jaxp/XmlConverterTest.java
(original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/converter/jaxp/XmlConverterTest.java
Tue Mar 13 07:37:41 2012
@@ -144,10 +144,12 @@ public class XmlConverterTest extends Co
 
         assertEquals("<foo>bar</foo>", conv.toString(out, null));
     }
+    
     public void testToDomSourceByStAXSource() throws Exception {
         XmlConverter conv = new XmlConverter();
 
-        StAXSource source = conv.toStAXSource("<foo>bar</foo>", null);
+        // because of https://bugs.openjdk.java.net/show_bug.cgi?id=100228, we have to set
the XML version explicitly
+        StAXSource source = conv.toStAXSource("<?xml version=\"1.0\" encoding=\"UTF-8\"?><foo>bar</foo>",
null);
         DOMSource out = conv.toDOMSource(source);
         assertNotSame(source, out);
 



Mime
View raw message