camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r802808 - /camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfRawMessageRouterTest.java
Date Mon, 10 Aug 2009 14:34:40 GMT
Author: ningjiang
Date: Mon Aug 10 14:34:39 2009
New Revision: 802808

URL: http://svn.apache.org/viewvc?rev=802808&view=rev
Log:
Fixed the unit test error , when the box's default charset is not the UTF-8

Modified:
    camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfRawMessageRouterTest.java

Modified: camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfRawMessageRouterTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfRawMessageRouterTest.java?rev=802808&r1=802807&r2=802808&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfRawMessageRouterTest.java
(original)
+++ camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfRawMessageRouterTest.java
Mon Aug 10 14:34:39 2009
@@ -49,7 +49,7 @@
         Map protocalHeaders = (Map) context.get("org.apache.cxf.message.Message.PROTOCOL_HEADERS");
         assertTrue("Should get the content type", protocalHeaders.get("content-type").toString().startsWith("[text/xml;
charset="));
         assertEquals("Should get the response code ", context.get("org.apache.cxf.message.Message.RESPONSE_CODE"),
200);        
-        assertEquals("Should get the content type", result.assertExchangeReceived(0).getIn().getHeaders().get("content-type"),
"text/xml; charset=utf-8");        
+        assertEquals("Should get the content type", result.assertExchangeReceived(0).getIn().getHeaders().get("content-type").toString().startsWith("[text/xml;
charset="));        
     }
     
     @Test



Mime
View raw message