Author: ningjiang
Date: Mon Aug 10 14:53:44 2009
New Revision: 802816
URL: http://svn.apache.org/viewvc?rev=802816&view=rev
Log:
Finally fixed the test error of CxfRawMessageRouterTest, I should go to sleep
now
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=802816&r1=802815&r2=802816&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:53:44 2009
@@ -48,8 +48,8 @@
Map context =
(Map)result.assertExchangeReceived(0).getIn().getHeaders().get("ResponseContext");
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").toString().startsWith("[text/xml;
charset="));
+ assertEquals("Should get the response code ",
context.get("org.apache.cxf.message.Message.RESPONSE_CODE"), 200);
+ assertTrue("Should get the content type",
result.assertExchangeReceived(0).getIn().getHeaders().get("content-type").toString().startsWith("text/xml;
charset="));
}
@Test