cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r608977 - in /incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332: ./ Cxf1332.java Cxf1332Impl.java Cxf1332Test.java beans.xml
Date Fri, 04 Jan 2008 20:09:03 GMT
Author: bimargulies
Date: Fri Jan  4 12:09:01 2008
New Revision: 608977

URL: http://svn.apache.org/viewvc?rev=608977&view=rev
Log:
Add test case for CXF-1332.

Added:
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332.java   (with
props)
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Impl.java   (with
props)
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Test.java   (with
props)
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/beans.xml   (with props)

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332.java?rev=608977&view=auto
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332.java Fri Jan
 4 12:09:01 2008
@@ -0,0 +1,32 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.cxf.cxf1332;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+
+@WebService(targetNamespace = "urn:org.apache.cxf.1332")
+public interface Cxf1332 {
+    @WebMethod(operationName = "SendData", action = "")
+    @WebResult(name = "result", targetNamespace = "urn:org.apache.cxf.1332.result")
+    String hostSendData(@WebParam(name = "params")String[] strs);
+
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Impl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Impl.java?rev=608977&view=auto
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Impl.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Impl.java Fri
Jan  4 12:09:01 2008
@@ -0,0 +1,38 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.cxf1332;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+
+/**
+ * 
+ */
+@WebService(targetNamespace = "urn:org.apache.cxf.1332")
+public class Cxf1332Impl implements Cxf1332 {
+    /** {@inheritDoc}*/
+    @WebMethod(operationName = "SendData", action = "")
+    @WebResult(name = "result", targetNamespace = "urn:org.apache.cxf.1332.result")
+    public String hostSendData(@WebParam(name = "params") String[] strs) {
+        return "Bloop";
+    }
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Impl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Impl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Test.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Test.java?rev=608977&view=auto
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Test.java (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Test.java Fri
Jan  4 12:09:01 2008
@@ -0,0 +1,54 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.cxf1332;
+
+import org.apache.cxf.test.AbstractCXFSpringTest;
+import org.junit.Test;
+import org.springframework.context.support.GenericApplicationContext;
+
+/**
+ * 
+ */
+public class Cxf1332Test extends AbstractCXFSpringTest {
+
+    /**
+     * @throws Exception
+     */
+    public Cxf1332Test() throws Exception {
+    }
+
+    /** {@inheritDoc}*/
+    @Override
+    protected void additionalSpringConfiguration(GenericApplicationContext context) throws
Exception {
+    }
+    
+    @Test
+    public void tryToSendStringArray() throws Exception {
+        Cxf1332 client = getBean(Cxf1332.class, "client");
+        client.hostSendData(new String[] {"a", "b", "c"});
+    }
+
+    /** {@inheritDoc}*/
+    @Override
+    protected String[] getConfigLocations() {
+        return new String[] {"classpath:/org/apache/cxf/cxf1332/beans.xml" };
+    }
+
+}

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Test.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/Cxf1332Test.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/beans.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/beans.xml?rev=608977&view=auto
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/beans.xml (added)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/beans.xml Fri Jan  4
12:09:01 2008
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?> 
+<beans xmlns="http://www.springframework.org/schema/beans" 
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+xmlns:jaxws="http://cxf.apache.org/jaxws" 
+xmlns:cxf="http://cxf.apache.org/core" 
+xsi:schemaLocation=" 
+http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd

+http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd 
+http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"> 
+<import resource="classpath:META-INF/cxf/cxf.xml" /> 
+<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> 
+<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" /> 
+<import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" /> 
+
+    <bean id="logInbound" class="org.apache.cxf.interceptor.LoggingInInterceptor"/>

+    <bean id="logOutbound" class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>

+    
+    <cxf:bus> 
+        <cxf:inInterceptors> <ref bean="logInbound"/> </cxf:inInterceptors>

+        <cxf:outInterceptors> <ref bean="logOutbound"/> </cxf:outInterceptors>

+        <cxf:inFaultInterceptors> <ref bean="logOutbound"/> </cxf:inFaultInterceptors>

+    </cxf:bus> 
+    <jaxws:endpoint id="cxf1332" implementor="org.apache.cxf.cxf1332.Cxf1332Impl" 
+                    address="http://localhost:8088/Cxf1332" /> 
+    
+    <bean id="proxyFactory" class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
+       <property name="serviceClass" value="org.apache.cxf.cxf1332.Cxf1332"/>
+       <property name="address" value="http://localhost:8088/Cxf1332"/>
+  </bean>
+
+  <bean id="client" class="org.apache.cxf.cxf1332.Cxf1332"
+    factory-bean="proxyFactory" factory-method="create"/>
+    
+    
+</beans> 

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/beans.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/beans.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/cxf1332/beans.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message