cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r606111 - /incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/WSAFromJavaTest.java
Date Fri, 21 Dec 2007 06:07:19 GMT
Author: mmao
Date: Thu Dec 20 22:07:19 2007
New Revision: 606111

URL: http://svn.apache.org/viewvc?rev=606111&view=rev
Log:
* Add a test for the jaxws SOAPAction


Modified:
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/WSAFromJavaTest.java

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/WSAFromJavaTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/WSAFromJavaTest.java?rev=606111&r1=606110&r2=606111&view=diff
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/WSAFromJavaTest.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/addr_fromjava/WSAFromJavaTest.java
Thu Dec 20 22:07:19 2007
@@ -21,6 +21,8 @@
 
 import java.io.ByteArrayOutputStream;
 import java.net.URL;
+import java.util.Map;
+import javax.xml.ws.BindingProvider;
 
 import org.apache.cxf.systest.ws.AbstractWSATestBase;
 import org.apache.cxf.systest.ws.addr_fromjava.client.AddNumberImpl;
@@ -50,10 +52,15 @@
 
         AddNumberImpl port = getPort();
 
+        BindingProvider bp = (BindingProvider)port;
+        java.util.Map<String, Object> requestContext = bp.getRequestContext();
+        requestContext.put(BindingProvider.SOAPACTION_URI_PROPERTY, "cxf");
+
         assertEquals(3, port.addNumbers(1, 2));
 
         String expectedOut = "http://cxf.apache.org/input";
         assertTrue(output.toString().indexOf(expectedOut) != -1);
+        assertTrue(output.toString().indexOf("SOAPAction=[cxf]") != -1);
         
         String expectedIn = "http://cxf.apache.org/output";
         assertTrue(input.toString().indexOf(expectedIn) != -1);



Mime
View raw message