cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject cxf git commit: adding another test case for wsam-2007/05 namespace
Date Tue, 19 Jan 2016 18:06:22 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes c9286efa3 -> e792331d7


adding another test case for wsam-2007/05 namespace


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/e792331d
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/e792331d
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/e792331d

Branch: refs/heads/3.0.x-fixes
Commit: e792331d75fbcebfb865f2fe2b382be817c52467
Parents: c9286ef
Author: Akitoshi Yoshida <ay@apache.org>
Authored: Tue Jan 19 13:28:55 2016 +0100
Committer: Akitoshi Yoshida <ay@apache.org>
Committed: Tue Jan 19 19:05:52 2016 +0100

----------------------------------------------------------------------
 .../ws/policy/NestedAddressingPolicyTest.java   | 33 +++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/e792331d/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/NestedAddressingPolicyTest.java
----------------------------------------------------------------------
diff --git a/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/NestedAddressingPolicyTest.java
b/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/NestedAddressingPolicyTest.java
index dd6e63e..8890e07 100644
--- a/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/NestedAddressingPolicyTest.java
+++ b/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/NestedAddressingPolicyTest.java
@@ -33,6 +33,8 @@ import org.apache.cxf.interceptor.LoggingInInterceptor;
 import org.apache.cxf.interceptor.LoggingOutInterceptor;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
 import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
+import org.apache.cxf.ws.addressing.impl.MAPAggregatorImpl;
+import org.apache.cxf.ws.addressing.soap.MAPCodec;
 
 import org.junit.BeforeClass;
 import org.junit.Test;
@@ -82,7 +84,7 @@ public class NestedAddressingPolicyTest extends AbstractBusClientServerTestBase
     }
          
     @Test
-    public void greetMe() throws Exception {        
+    public void greetMe() throws Exception {
         
         // use a plain client
         
@@ -110,4 +112,33 @@ public class NestedAddressingPolicyTest extends AbstractBusClientServerTestBase
         }
         ((Closeable)greeter).close();
     }
+
+    @Test
+    public void greetMeWSA() throws Exception {
+        // use a wsa-enabled client
+        
+        SpringBusFactory bf = new SpringBusFactory();
+        bus = bf.createBus();
+        BusFactory.setDefaultBus(bus);
+        
+        BasicGreeterService gs = new BasicGreeterService();
+        final Greeter greeter = gs.getGreeterPort();
+        
+        updateAddressPort(greeter, PORT);
+        LoggingInInterceptor in = new LoggingInInterceptor();
+        LoggingOutInterceptor out = new LoggingOutInterceptor();
+        MAPCodec mapCodec = new MAPCodec();
+        MAPAggregatorImpl mapAggregator = new MAPAggregatorImpl();
+
+        bus.getInInterceptors().add(in);
+        bus.getInInterceptors().add(mapCodec);
+        bus.getInInterceptors().add(mapAggregator);
+        bus.getOutInterceptors().add(out);
+        bus.getOutInterceptors().add(mapCodec);
+        bus.getOutInterceptors().add(mapAggregator);
+
+        String s = greeter.greetMe("mytest");
+        assertEquals("MYTEST", s);
+        ((Closeable)greeter).close();
+    }
 }
\ No newline at end of file


Mime
View raw message