Author: asoldano
Date: 2014-10-10 05:48:12 -0400 (Fri, 10 Oct 2014)
New Revision: 18980
Added:
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/CXFClientConfigurerTest.java
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/EndpointInterface.java
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorA.java
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorB.java
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorC.java
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorD.java
stack/cxf/trunk/modules/client/src/test/resources/META-INF/TestService.wsdl
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/CXFClientConfigurer.java
Log:
[JBWS-3837] Adding a bunch of tests
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/CXFClientConfigurer.java
===================================================================
---
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/CXFClientConfigurer.java 2014-10-07
16:29:15 UTC (rev 18979)
+++
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/configuration/CXFClientConfigurer.java 2014-10-10
09:48:12 UTC (rev 18980)
@@ -60,6 +60,10 @@
public void setConfigProperties(Object client, String configFile, String configName)
{
Class<?> clazz = !(client instanceof Dispatch) ? client.getClass() : null;
ClientConfig config = readConfig(configFile, configName, clazz);
+ setConfigProperties(client, config);
+ }
+
+ protected void setConfigProperties(Object client, ClientConfig config) {
Client cxfClient;
if (client instanceof DispatchImpl<?>) {
cxfClient = ((DispatchImpl<?>)client).getClient();
Added:
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/CXFClientConfigurerTest.java
===================================================================
---
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/CXFClientConfigurerTest.java
(rev 0)
+++
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/CXFClientConfigurerTest.java 2014-10-10
09:48:12 UTC (rev 18980)
@@ -0,0 +1,373 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2014, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.wsf.stack.cxf.client.configuration;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.TestCase;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.BusFactory;
+import org.apache.cxf.endpoint.Client;
+import org.apache.cxf.frontend.ClientProxy;
+import org.apache.cxf.interceptor.Interceptor;
+import org.jboss.wsf.spi.metadata.config.ClientConfig;
+import org.jboss.wsf.stack.cxf.client.Constants;
+
+/**
+ * A test case for the CXFClientConfigurer
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 10-Oct-2014
+ *
+ */
+public class CXFClientConfigurerTest extends TestCase
+{
+ public void testSetMapOfProperties() throws Exception
+ {
+ Bus bus = null;
+ try {
+ bus = BusFactory.newInstance().createBus();
+ BusFactory.setThreadDefaultBus(bus);
+
+ Service service =
Service.create(this.getClass().getResource("META-INF/TestService.wsdl"), new
QName("http://www.openuri.org/2004/04/HelloWorld",
"EndpointService"));
+ EndpointInterface port = service.getPort(new
QName("http://www.openuri.org/2004/04/HelloWorld",
"EndpointInterfacePort"), EndpointInterface.class);
+ Client client = ClientProxy.getClient(port);
+
+ CXFClientConfigurer cfg = new CXFClientConfigurer();
+ Map<String, String> properties = new HashMap<String, String>();
+ properties.put("A", "1");
+ properties.put("B", "2");
+ properties.put("C", "3");
+ properties.put("D", "4");
+ properties.put("E", "5");
+
+ cfg.setConfigProperties(client, properties);
+
+ assertEquals("1", client.getEndpoint().get("A"));
+ assertEquals("2", client.getEndpoint().get("B"));
+ assertEquals("3", client.getEndpoint().get("C"));
+ assertEquals("4", client.getEndpoint().get("D"));
+ assertEquals("5", client.getEndpoint().get("E"));
+ assertEquals(5, client.getEndpoint().size());
+
+ properties = new HashMap<String, String>();
+ properties.put("E", "10");
+ properties.put("F", "20");
+ properties.put("G", "30");
+
+ cfg.setConfigProperties(client, properties);
+
+ assertEquals("10", client.getEndpoint().get("E"));
+ assertEquals("20", client.getEndpoint().get("F"));
+ assertEquals("30", client.getEndpoint().get("G"));
+ assertEquals(7, client.getEndpoint().size());
+ } finally {
+ if (bus != null) {
+ bus.shutdown(true);
+ }
+ }
+ }
+
+ public void testSetConfigProperties() throws Exception
+ {
+ Bus bus = null;
+ try {
+ bus = BusFactory.newInstance().createBus();
+ BusFactory.setThreadDefaultBus(bus);
+
+ Service service =
Service.create(this.getClass().getResource("META-INF/TestService.wsdl"), new
QName("http://www.openuri.org/2004/04/HelloWorld",
"EndpointService"));
+ EndpointInterface port = service.getPort(new
QName("http://www.openuri.org/2004/04/HelloWorld",
"EndpointInterfacePort"), EndpointInterface.class);
+ Client client = ClientProxy.getClient(port);
+
+ Map<String, String> properties = new HashMap<String, String>();
+ properties.put("A", "1");
+ properties.put("B", "2");
+ properties.put("C", "3");
+ properties.put("D", "4");
+ properties.put("E", "5");
+ ClientConfig clientConfig = new ClientConfig("Foo", null, null,
properties, null);
+
+ CXFClientConfigurer cfg = new CXFClientConfigurer();
+
+ cfg.setConfigProperties(port, clientConfig);
+
+ assertEquals("1", client.getEndpoint().get("A"));
+ assertEquals("2", client.getEndpoint().get("B"));
+ assertEquals("3", client.getEndpoint().get("C"));
+ assertEquals("4", client.getEndpoint().get("D"));
+ assertEquals("5", client.getEndpoint().get("E"));
+
+
+ properties = new HashMap<String, String>();
+ properties.put("E", "10");
+ properties.put("F", "20");
+ properties.put("G", "30");
+ clientConfig = new ClientConfig("Foo2", null, null, properties,
null);
+
+ cfg.setConfigProperties(port, clientConfig);
+
+ assertEquals(null, client.getEndpoint().get("A"));
+ assertEquals(null, client.getEndpoint().get("B"));
+ assertEquals(null, client.getEndpoint().get("C"));
+ assertEquals(null, client.getEndpoint().get("D"));
+ assertEquals("10", client.getEndpoint().get("E"));
+ assertEquals("20", client.getEndpoint().get("F"));
+ assertEquals("30", client.getEndpoint().get("G"));
+ } finally {
+ if (bus != null) {
+ bus.shutdown(true);
+ }
+ }
+ }
+
+ public void testAddInterceptors() throws Exception
+ {
+ Bus bus = null;
+ try {
+ bus = BusFactory.newInstance().createBus();
+ BusFactory.setThreadDefaultBus(bus);
+
+ Service service =
Service.create(this.getClass().getResource("META-INF/TestService.wsdl"), new
QName("http://www.openuri.org/2004/04/HelloWorld",
"EndpointService"));
+ EndpointInterface port = service.getPort(new
QName("http://www.openuri.org/2004/04/HelloWorld",
"EndpointInterfacePort"), EndpointInterface.class);
+ Client client = ClientProxy.getClient(port);
+
+ Map<String, String> properties = new HashMap<String, String>();
+ properties.put(Constants.CXF_IN_INTERCEPTORS_PROP,
"org.jboss.wsf.stack.cxf.client.configuration.InterceptorA
org.jboss.wsf.stack.cxf.client.configuration.InterceptorB");
+ properties.put(Constants.CXF_OUT_INTERCEPTORS_PROP,
"org.jboss.wsf.stack.cxf.client.configuration.InterceptorC,org.jboss.wsf.stack.cxf.client.configuration.InterceptorD");
+
+ CXFClientConfigurer cfg = new CXFClientConfigurer();
+
+ cfg.addInterceptors(client, properties);
+
+ List<String> interceptors = toNameList(client.getInInterceptors());
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorA"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorB"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorC"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorD"));
+ interceptors = toNameList(client.getOutInterceptors());
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorA"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorB"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorC"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorD"));
+
+
+ properties = new HashMap<String, String>();
+ properties.put(Constants.CXF_IN_INTERCEPTORS_PROP,
"org.jboss.wsf.stack.cxf.client.configuration.InterceptorD, FooInterceptor");
+ properties.put(Constants.CXF_OUT_INTERCEPTORS_PROP,
"org.jboss.wsf.stack.cxf.client.configuration.InterceptorB");
+
+ cfg.addInterceptors(client, properties);
+
+ interceptors = toNameList(client.getInInterceptors());
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorA"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorB"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorC"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorD"));
+ assertFalse(interceptors.contains("FooInterceptor"));
+ interceptors = toNameList(client.getOutInterceptors());
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorA"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorB"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorC"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorD"));
+ } finally {
+ if (bus != null) {
+ bus.shutdown(true);
+ }
+ }
+ }
+
+ public void testAddInterceptorsThroughSetMapOfProperties() throws Exception
+ {
+ Bus bus = null;
+ try {
+ bus = BusFactory.newInstance().createBus();
+ BusFactory.setThreadDefaultBus(bus);
+
+ Service service =
Service.create(this.getClass().getResource("META-INF/TestService.wsdl"), new
QName("http://www.openuri.org/2004/04/HelloWorld",
"EndpointService"));
+ EndpointInterface port = service.getPort(new
QName("http://www.openuri.org/2004/04/HelloWorld",
"EndpointInterfacePort"), EndpointInterface.class);
+ Client client = ClientProxy.getClient(port);
+
+ Map<String, String> properties = new HashMap<String, String>();
+ properties.put("A", "1");
+ properties.put("B", "2");
+ properties.put("C", "3");
+ properties.put(Constants.CXF_IN_INTERCEPTORS_PROP,
"org.jboss.wsf.stack.cxf.client.configuration.InterceptorA
org.jboss.wsf.stack.cxf.client.configuration.InterceptorB");
+ properties.put(Constants.CXF_OUT_INTERCEPTORS_PROP,
"org.jboss.wsf.stack.cxf.client.configuration.InterceptorC,org.jboss.wsf.stack.cxf.client.configuration.InterceptorD");
+
+ CXFClientConfigurer cfg = new CXFClientConfigurer();
+
+ cfg.setConfigProperties(client, properties);
+
+ assertEquals("1", client.getEndpoint().get("A"));
+ assertEquals("2", client.getEndpoint().get("B"));
+ assertEquals("3", client.getEndpoint().get("C"));
+ List<String> interceptors = toNameList(client.getInInterceptors());
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorA"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorB"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorC"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorD"));
+ interceptors = toNameList(client.getOutInterceptors());
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorA"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorB"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorC"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorD"));
+
+
+ properties = new HashMap<String, String>();
+ properties.put(Constants.CXF_IN_INTERCEPTORS_PROP,
"org.jboss.wsf.stack.cxf.client.configuration.InterceptorD, FooInterceptor");
+ properties.put(Constants.CXF_OUT_INTERCEPTORS_PROP,
"org.jboss.wsf.stack.cxf.client.configuration.InterceptorB");
+
+ cfg.addInterceptors(client, properties);
+
+ assertEquals("1", client.getEndpoint().get("A"));
+ assertEquals("2", client.getEndpoint().get("B"));
+ assertEquals("3", client.getEndpoint().get("C"));
+ interceptors = toNameList(client.getInInterceptors());
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorA"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorB"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorC"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorD"));
+ assertFalse(interceptors.contains("FooInterceptor"));
+ interceptors = toNameList(client.getOutInterceptors());
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorA"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorB"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorC"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorD"));
+ } finally {
+ if (bus != null) {
+ bus.shutdown(true);
+ }
+ }
+ }
+
+ public void testAddInterceptorsThroughSetConfigProperties() throws Exception
+ {
+ Bus bus = null;
+ try {
+ bus = BusFactory.newInstance().createBus();
+ BusFactory.setThreadDefaultBus(bus);
+
+ Service service =
Service.create(this.getClass().getResource("META-INF/TestService.wsdl"), new
QName("http://www.openuri.org/2004/04/HelloWorld",
"EndpointService"));
+ EndpointInterface port = service.getPort(new
QName("http://www.openuri.org/2004/04/HelloWorld",
"EndpointInterfacePort"), EndpointInterface.class);
+ Client client = ClientProxy.getClient(port);
+
+ Map<String, String> properties = new HashMap<String, String>();
+ properties.put("A", "1");
+ properties.put("B", "2");
+ properties.put("C", "3");
+ properties.put(Constants.CXF_IN_INTERCEPTORS_PROP,
"org.jboss.wsf.stack.cxf.client.configuration.InterceptorA
org.jboss.wsf.stack.cxf.client.configuration.InterceptorB");
+ properties.put(Constants.CXF_OUT_INTERCEPTORS_PROP,
"org.jboss.wsf.stack.cxf.client.configuration.InterceptorC,org.jboss.wsf.stack.cxf.client.configuration.InterceptorD");
+ ClientConfig clientConfig = new ClientConfig("Foo", null, null,
properties, null);
+
+ CXFClientConfigurer cfg = new CXFClientConfigurer();
+
+ cfg.setConfigProperties(port, clientConfig);
+
+ assertEquals("1", client.getEndpoint().get("A"));
+ assertEquals("2", client.getEndpoint().get("B"));
+ assertEquals("3", client.getEndpoint().get("C"));
+ List<String> interceptors = toNameList(client.getInInterceptors());
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorA"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorB"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorC"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorD"));
+ interceptors = toNameList(client.getOutInterceptors());
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorA"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorB"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorC"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorD"));
+
+
+ properties = new HashMap<String, String>();
+ properties.put("E", "10");
+ properties.put("F", "20");
+ properties.put("G", "30");
+ properties.put(Constants.CXF_IN_INTERCEPTORS_PROP,
"org.jboss.wsf.stack.cxf.client.configuration.InterceptorD, FooInterceptor");
+ properties.put(Constants.CXF_OUT_INTERCEPTORS_PROP,
"org.jboss.wsf.stack.cxf.client.configuration.InterceptorB");
+ clientConfig = new ClientConfig("Foo2", null, null, properties,
null);
+
+ cfg.setConfigProperties(port, clientConfig);
+
+ assertEquals(null, client.getEndpoint().get("A"));
+ assertEquals(null, client.getEndpoint().get("B"));
+ assertEquals(null, client.getEndpoint().get("C"));
+ assertEquals(null, client.getEndpoint().get("D"));
+ assertEquals("10", client.getEndpoint().get("E"));
+ assertEquals("20", client.getEndpoint().get("F"));
+ assertEquals("30", client.getEndpoint().get("G"));
+ interceptors = toNameList(client.getInInterceptors());
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorA"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorB"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorC"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorD"));
+ interceptors = toNameList(client.getOutInterceptors());
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorA"));
+
assertTrue(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorB"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorC"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorD"));
+
+ properties = new HashMap<String, String>();
+ properties.put(Constants.CXF_IN_INTERCEPTORS_PROP, "");
+ clientConfig = new ClientConfig("Foo2", null, null, properties,
null);
+
+ cfg.setConfigProperties(port, clientConfig);
+
+ assertEquals(null, client.getEndpoint().get("A"));
+ assertEquals(null, client.getEndpoint().get("B"));
+ assertEquals(null, client.getEndpoint().get("C"));
+ assertEquals(null, client.getEndpoint().get("D"));
+ assertEquals(null, client.getEndpoint().get("E"));
+ assertEquals(null, client.getEndpoint().get("F"));
+ assertEquals(null, client.getEndpoint().get("G"));
+ interceptors = toNameList(client.getInInterceptors());
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorA"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorB"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorC"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorD"));
+ interceptors = toNameList(client.getOutInterceptors());
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorA"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorB"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorC"));
+
assertFalse(interceptors.contains("org.jboss.wsf.stack.cxf.client.configuration.InterceptorD"));
+
+ } finally {
+ if (bus != null) {
+ bus.shutdown(true);
+ }
+ }
+ }
+
+ private static List<String> toNameList(Collection<Interceptor<?>>
interceptors) {
+ List<String> list = new ArrayList<String>();
+ for (Interceptor<?> interceptor : interceptors) {
+ list.add(interceptor.getClass().getName());
+ }
+ return list;
+ }
+}
Property changes on:
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/CXFClientConfigurerTest.java
___________________________________________________________________
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native
Added:
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/EndpointInterface.java
===================================================================
---
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/EndpointInterface.java
(rev 0)
+++
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/EndpointInterface.java 2014-10-10
09:48:12 UTC (rev 18980)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2014, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.wsf.stack.cxf.client.configuration;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@WebService(targetNamespace = "http://www.openuri.org/2004/04/HelloWorld", name
= "EndpointInterface")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface EndpointInterface {
+
+ @WebResult(name = "return", targetNamespace =
"http://www.openuri.org/2004/04/HelloWorld", partName = "return")
+ @WebMethod
+ public java.lang.String echo(@WebParam(partName = "arg0", name =
"arg0")
+ java.lang.String arg0
+ );
+}
Property changes on:
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/EndpointInterface.java
___________________________________________________________________
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native
Added:
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorA.java
===================================================================
---
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorA.java
(rev 0)
+++
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorA.java 2014-10-10
09:48:12 UTC (rev 18980)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2014, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.wsf.stack.cxf.client.configuration;
+
+import org.apache.cxf.interceptor.Fault;
+import org.apache.cxf.interceptor.Interceptor;
+import org.apache.cxf.message.Message;
+
+public class InterceptorA implements Interceptor<Message> {
+
+ @Override
+ public void handleMessage(Message message) throws Fault
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void handleFault(Message message)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on:
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorA.java
___________________________________________________________________
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native
Added:
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorB.java
===================================================================
---
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorB.java
(rev 0)
+++
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorB.java 2014-10-10
09:48:12 UTC (rev 18980)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2014, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.wsf.stack.cxf.client.configuration;
+
+import org.apache.cxf.interceptor.Fault;
+import org.apache.cxf.interceptor.Interceptor;
+import org.apache.cxf.message.Message;
+
+public class InterceptorB implements Interceptor<Message> {
+
+ @Override
+ public void handleMessage(Message message) throws Fault
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void handleFault(Message message)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on:
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorB.java
___________________________________________________________________
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native
Added:
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorC.java
===================================================================
---
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorC.java
(rev 0)
+++
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorC.java 2014-10-10
09:48:12 UTC (rev 18980)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2014, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.wsf.stack.cxf.client.configuration;
+
+import org.apache.cxf.interceptor.Fault;
+import org.apache.cxf.interceptor.Interceptor;
+import org.apache.cxf.message.Message;
+
+public class InterceptorC implements Interceptor<Message> {
+
+ @Override
+ public void handleMessage(Message message) throws Fault
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void handleFault(Message message)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on:
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorC.java
___________________________________________________________________
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native
Added:
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorD.java
===================================================================
---
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorD.java
(rev 0)
+++
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorD.java 2014-10-10
09:48:12 UTC (rev 18980)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2014, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.wsf.stack.cxf.client.configuration;
+
+import org.apache.cxf.interceptor.Fault;
+import org.apache.cxf.interceptor.Interceptor;
+import org.apache.cxf.message.Message;
+
+public class InterceptorD implements Interceptor<Message> {
+
+ @Override
+ public void handleMessage(Message message) throws Fault
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ @Override
+ public void handleFault(Message message)
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on:
stack/cxf/trunk/modules/client/src/test/java/org/jboss/wsf/stack/cxf/client/configuration/InterceptorD.java
___________________________________________________________________
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native
Added: stack/cxf/trunk/modules/client/src/test/resources/META-INF/TestService.wsdl
===================================================================
--- stack/cxf/trunk/modules/client/src/test/resources/META-INF/TestService.wsdl
(rev 0)
+++ stack/cxf/trunk/modules/client/src/test/resources/META-INF/TestService.wsdl 2014-10-10
09:48:12 UTC (rev 18980)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<definitions name="EndpointService"
targetNamespace="http://www.openuri.org/2004/04/HelloWorld"
xmlns:tns="http://www.openuri.org/2004/04/HelloWorld"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+ <types/>
+ <message name="EndpointInterface_echo">
+ <part name="arg0" type="xsd:string"/>
+ </message>
+ <message name="EndpointInterface_echoResponse">
+ <part name="return" type="xsd:string"/>
+ </message>
+ <portType name="EndpointInterface">
+ <operation name="echo" parameterOrder="arg0">
+ <input message="tns:EndpointInterface_echo"/>
+ <output message="tns:EndpointInterface_echoResponse"/>
+ </operation>
+ </portType>
+ <binding name="EndpointInterfaceBinding"
type="tns:EndpointInterface">
+ <soap:binding
transport="http://schemas.xmlsoap.org/soap/http"
style="rpc"/>
+ <operation name="echo">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body use="literal"
namespace="http://www.openuri.org/2004/04/HelloWorld"/>
+ </input>
+ <output>
+ <soap:body use="literal"
namespace="http://www.openuri.org/2004/04/HelloWorld"/>
+ </output>
+ </operation>
+ </binding>
+ <service name="EndpointService">
+ <port name="EndpointInterfacePort"
binding="tns:EndpointInterfaceBinding">
+ <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
+ </port>
+ </service>
+</definitions>
Property changes on:
stack/cxf/trunk/modules/client/src/test/resources/META-INF/TestService.wsdl
___________________________________________________________________
Added: svn:mime-type
+ text/xml
Added: svn:keywords
+ Rev Date
Added: svn:eol-style
+ native