Author: ningjiang
Date: Sat May 15 03:57:39 2010
New Revision: 944554

URL: http://svn.apache.org/viewvc?rev=944554&view=rev
Log:
Try to fix the unit test error on the other platform

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=944554&r1=944553&r2=944554&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
 Sat May 15 03:57:39 2010
@@ -389,14 +389,15 @@ public class XmlConverterTest extends Co
         CamelContext context = new DefaultCamelContext();        
         Exchange exchange =  new DefaultExchange(context);
         // shows how to set the OutputOptions from camelContext
-        context.getProperties().put(XmlConverter.OUTPUT_PROPERTIES_PREFIX + 
OutputKeys.ENCODING, "US_ASCII");
+        context.getProperties().put(XmlConverter.OUTPUT_PROPERTIES_PREFIX + 
OutputKeys.ENCODING, "UTF-8");
+        context.getProperties().put(XmlConverter.OUTPUT_PROPERTIES_PREFIX + 
OutputKeys.STANDALONE, "no");
         XmlConverter conv = new XmlConverter();
 
         SAXSource source = conv.toSAXSource("<foo>bar</foo>", exchange);
         DOMSource out = conv.toDOMSource(source);
         assertNotSame(source, out);
 
-        assertEquals("<?xml version=\"1.0\" 
encoding=\"US_ASCII\"?><foo>bar</foo>", conv.toString(out, exchange));
+        assertEquals("<?xml version=\"1.0\" encoding=\"UTF-8\" 
standalone=\"no\"?><foo>bar</foo>", conv.toString(out, exchange));
     }
 
 }


Reply via email to