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 9EE9418E38 for ; Mon, 5 Oct 2015 14:55:28 +0000 (UTC) Received: (qmail 78181 invoked by uid 500); 5 Oct 2015 14:55:28 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 78124 invoked by uid 500); 5 Oct 2015 14:55:28 -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 77988 invoked by uid 99); 5 Oct 2015 14:55:28 -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; Mon, 05 Oct 2015 14:55:28 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2C43EDFAF1; Mon, 5 Oct 2015 14:55:28 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: coheigea@apache.org To: commits@cxf.apache.org Date: Mon, 05 Oct 2015 14:55:30 -0000 Message-Id: In-Reply-To: <400688ee923545de9ff0b1e5e98c0644@git.apache.org> References: <400688ee923545de9ff0b1e5e98c0644@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [3/3] cxf git commit: Adding an @Ignore'd MTOM test Adding an @Ignore'd MTOM test Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/d04f83ce Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/d04f83ce Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/d04f83ce Branch: refs/heads/master Commit: d04f83cecea57d92052f3bf1f4eea7f4adfac6c6 Parents: 7b9f72b Author: Colm O hEigeartaigh Authored: Mon Oct 5 15:54:52 2015 +0100 Committer: Colm O hEigeartaigh Committed: Mon Oct 5 15:55:20 2015 +0100 ---------------------------------------------------------------------- .../cxf/systest/ws/mtom/MTOMSecurityTest.java | 30 ++++++++++++++++++++ .../cxf/systest/ws/mtom/DoubleItMtom.wsdl | 21 ++++++++++++++ .../org/apache/cxf/systest/ws/mtom/client.xml | 10 +++++++ .../org/apache/cxf/systest/ws/mtom/server.xml | 10 +++++++ 4 files changed, 71 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/d04f83ce/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/mtom/MTOMSecurityTest.java ---------------------------------------------------------------------- diff --git a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/mtom/MTOMSecurityTest.java b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/mtom/MTOMSecurityTest.java index 3c79a43..508de4b 100644 --- a/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/mtom/MTOMSecurityTest.java +++ b/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/mtom/MTOMSecurityTest.java @@ -189,4 +189,34 @@ public class MTOMSecurityTest extends AbstractBusClientServerTestBase { ((java.io.Closeable)port).close(); bus.shutdown(true); } + + // The difference between this test + the testAsymmetricBytesInAttachment test above is that + // the SOAP Body already contains BASE-64 encoded content. + @org.junit.Test + @org.junit.Ignore + public void testAsymmetricBinaryBytesInAttachment() throws Exception { + + SpringBusFactory bf = new SpringBusFactory(); + URL busFile = MTOMSecurityTest.class.getResource("client.xml"); + + Bus bus = bf.createBus(busFile.toString()); + SpringBusFactory.setDefaultBus(bus); + SpringBusFactory.setThreadDefaultBus(bus); + + URL wsdl = MTOMSecurityTest.class.getResource("DoubleItMtom.wsdl"); + Service service = Service.create(wsdl, SERVICE_QNAME); + QName portQName = new QName(NAMESPACE, "DoubleItAsymmetricBinaryPort"); + DoubleItMtomPortType port = + service.getPort(portQName, DoubleItMtomPortType.class); + updateAddressPort(port, PORT); + + DataSource source = new FileDataSource(new File("src/test/resources/java.jpg")); + DoubleIt4 doubleIt = new DoubleIt4(); + doubleIt.setNumberToDouble(25); + port.doubleIt4(25, new DataHandler(source)); + + ((java.io.Closeable)port).close(); + bus.shutdown(true); + } + } http://git-wip-us.apache.org/repos/asf/cxf/blob/d04f83ce/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/DoubleItMtom.wsdl ---------------------------------------------------------------------- diff --git a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/DoubleItMtom.wsdl b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/DoubleItMtom.wsdl index 57bc5e9..e97c7e0 100644 --- a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/DoubleItMtom.wsdl +++ b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/DoubleItMtom.wsdl @@ -34,6 +34,24 @@ + + + + + + + + + + + + + + + + + + @@ -102,6 +120,9 @@ + + + http://git-wip-us.apache.org/repos/asf/cxf/blob/d04f83ce/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/client.xml ---------------------------------------------------------------------- diff --git a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/client.xml b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/client.xml index 003c64e..b915ee7 100644 --- a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/client.xml +++ b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/client.xml @@ -134,5 +134,15 @@ + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/cxf/blob/d04f83ce/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/server.xml ---------------------------------------------------------------------- diff --git a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/server.xml b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/server.xml index 98051fb..eb1b4e9 100644 --- a/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/server.xml +++ b/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/mtom/server.xml @@ -141,4 +141,14 @@ + + + + + + + + + +