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 A68DF10011 for ; Fri, 5 Dec 2014 11:19:47 +0000 (UTC) Received: (qmail 6282 invoked by uid 500); 5 Dec 2014 11:19:47 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 6218 invoked by uid 500); 5 Dec 2014 11:19:47 -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 6209 invoked by uid 99); 5 Dec 2014 11:19:47 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Dec 2014 11:19:47 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 030DD8BD65E; Fri, 5 Dec 2014 11:19:46 +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: <9396f484a7d14db59c34fb71307696d2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: cxf git commit: make tools-corba, rt-ws-eventing tests run without the internet access Date: Fri, 5 Dec 2014 11:19:46 +0000 (UTC) Repository: cxf Updated Branches: refs/heads/3.0.x-fixes 81d49bf2b -> 22279cf58 make tools-corba, rt-ws-eventing tests run without the internet access Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/22279cf5 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/22279cf5 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/22279cf5 Branch: refs/heads/3.0.x-fixes Commit: 22279cf58a2c00af83524fe123f2aab670b6168a Parents: 81d49bf Author: Akitoshi Yoshida Authored: Fri Dec 5 11:13:29 2014 +0100 Committer: Akitoshi Yoshida Committed: Fri Dec 5 12:19:26 2014 +0100 ---------------------------------------------------------------------- .../test/resources/META-INF/jax-ws-catalog.xml | 23 ++++++++++++++++++++ .../tools/corba/utils/WSDLGenerationTester.java | 7 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/22279cf5/rt/ws/eventing/src/test/resources/META-INF/jax-ws-catalog.xml ---------------------------------------------------------------------- diff --git a/rt/ws/eventing/src/test/resources/META-INF/jax-ws-catalog.xml b/rt/ws/eventing/src/test/resources/META-INF/jax-ws-catalog.xml new file mode 100644 index 0000000..bdfa1c8 --- /dev/null +++ b/rt/ws/eventing/src/test/resources/META-INF/jax-ws-catalog.xml @@ -0,0 +1,23 @@ + + + + + + http://git-wip-us.apache.org/repos/asf/cxf/blob/22279cf5/tools/corba/src/test/java/org/apache/cxf/tools/corba/utils/WSDLGenerationTester.java ---------------------------------------------------------------------- diff --git a/tools/corba/src/test/java/org/apache/cxf/tools/corba/utils/WSDLGenerationTester.java b/tools/corba/src/test/java/org/apache/cxf/tools/corba/utils/WSDLGenerationTester.java index 6f65764..7e13027 100644 --- a/tools/corba/src/test/java/org/apache/cxf/tools/corba/utils/WSDLGenerationTester.java +++ b/tools/corba/src/test/java/org/apache/cxf/tools/corba/utils/WSDLGenerationTester.java @@ -30,8 +30,10 @@ import javax.wsdl.xml.WSDLWriter; import javax.xml.namespace.QName; import javax.xml.stream.XMLStreamReader; +import org.apache.cxf.Bus; import org.apache.cxf.BusFactory; import org.apache.cxf.wsdl.WSDLManager; +import org.apache.cxf.wsdl11.CatalogWSDLLocator; import org.apache.ws.commons.schema.XmlSchema; import org.apache.ws.commons.schema.XmlSchemaCollection; @@ -161,7 +163,10 @@ public class WSDLGenerationTester { WSDLReader reader = factory.newWSDLReader(); reader.setFeature("javax.wsdl.importDocuments", false); reader.setExtensionRegistry(wm.getExtensionRegistry()); - Definition wsdlDefn = reader.readWSDL(defnFile.toString()); + final String url = defnFile.toString(); + CatalogWSDLLocator locator = new CatalogWSDLLocator(url, (Bus)null); + + Definition wsdlDefn = reader.readWSDL(locator); WSDLWriter wsdlWriter = factory.newWSDLWriter(); wsdlWriter.writeWSDL(wsdlDefn, writer);