camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r771529 - /camel/branches/camel-1.x/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfRawMessageRouterTest.java
Date Tue, 05 May 2009 03:14:10 GMT
Author: ningjiang
Date: Tue May  5 03:14:09 2009
New Revision: 771529

URL: http://svn.apache.org/viewvc?rev=771529&view=rev
Log:
Add how to get the content-type from PROTOCOL_HEADERS in camel-cxf

Modified:
    camel/branches/camel-1.x/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfRawMessageRouterTest.java

Modified: camel/branches/camel-1.x/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfRawMessageRouterTest.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfRawMessageRouterTest.java?rev=771529&r1=771528&r2=771529&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfRawMessageRouterTest.java
(original)
+++ camel/branches/camel-1.x/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfRawMessageRouterTest.java
Tue May  5 03:14:09 2009
@@ -40,6 +40,8 @@
         client.echo("hello world");        
         Map context = (Map)result.assertExchangeReceived(0).getIn().getHeaders().get("ResponseContext");

         assertNotNull("Expect to get the protocal header ", context.get("org.apache.cxf.message.Message.PROTOCOL_HEADERS"));
+        Map protocalHeaders = (Map) context.get("org.apache.cxf.message.Message.PROTOCOL_HEADERS");
+        assertEquals("Should get the content type", protocalHeaders.get("content-type").toString(),
"[text/xml; charset=utf-8]");
         assertEquals("Should get the response code ", context.get("org.apache.cxf.message.Message.RESPONSE_CODE"),
200);
     }
 }



Mime
View raw message