You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2009/06/20 11:44:23 UTC
svn commit: r786777 -
/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfRawMessageRouterTest.java
Author: ningjiang
Date: Sat Jun 20 09:44:23 2009
New Revision: 786777
URL: http://svn.apache.org/viewvc?rev=786777&view=rev
Log:
Fixed a test error with latest CXF trunk code
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=786777&r1=786776&r2=786777&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 Sat Jun 20 09:44:23 2009
@@ -65,9 +65,9 @@
});
assertNotNull("We should get the Content-Type here", MessageHelper.getContentType(exchange.getOut()));
- assertEquals("Get wrong content type", "text/xml; charset=utf-8", MessageHelper.getContentType(exchange.getOut()));
+ assertTrue("Get wrong content type", MessageHelper.getContentType(exchange.getOut()).startsWith("text/xml"));
assertNull("We should not get the content-type here", exchange.getOut().getHeader("content-type"));
- String response = exchange.getOut().getBody(String.class);
+ String response = exchange.getOut().getBody(String.class);
assertNotNull("Response should not be null", response);
assertTrue("We should get right return result", response.indexOf("echo hello world") > 0);
}