Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 083C918D7B for ; Tue, 19 Jan 2016 18:06:23 +0000 (UTC) Received: (qmail 56736 invoked by uid 500); 19 Jan 2016 18:06:22 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 56669 invoked by uid 500); 19 Jan 2016 18:06:22 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 56660 invoked by uid 99); 19 Jan 2016 18:06:22 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2016 18:06:22 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8AB18DFEFE; Tue, 19 Jan 2016 18:06:22 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ay@apache.org To: commits@cxf.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: cxf git commit: adding another test case for wsam-2007/05 namespace Date: Tue, 19 Jan 2016 18:06:22 +0000 (UTC) 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 Authored: Tue Jan 19 13:28:55 2016 +0100 Committer: Akitoshi Yoshida 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