You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2015/05/25 19:45:23 UTC

svn commit: r1681622 - in /webservices/axiom/trunk/systests/spring-ws-tests: ./ src/test/java/org/apache/axiom/systest/springws/ src/test/resources/org/apache/axiom/systest/springws/

Author: veithen
Date: Mon May 25 17:45:23 2015
New Revision: 1681622

URL: http://svn.apache.org/r1681622
Log:
Apply the Spring-WS test suite to the Axiom support provided by Spring-WS (as a regression/compatibility test).

Added:
    webservices/axiom/trunk/systests/spring-ws-tests/src/test/java/org/apache/axiom/systest/springws/AxiomMessageFactoryConfigurator.java   (with props)
    webservices/axiom/trunk/systests/spring-ws-tests/src/test/java/org/apache/axiom/systest/springws/SpringWSTest.java   (with props)
    webservices/axiom/trunk/systests/spring-ws-tests/src/test/resources/org/apache/axiom/systest/springws/axiom-message-factory.xml   (with props)
Modified:
    webservices/axiom/trunk/systests/spring-ws-tests/pom.xml

Modified: webservices/axiom/trunk/systests/spring-ws-tests/pom.xml
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/systests/spring-ws-tests/pom.xml?rev=1681622&r1=1681621&r2=1681622&view=diff
==============================================================================
--- webservices/axiom/trunk/systests/spring-ws-tests/pom.xml (original)
+++ webservices/axiom/trunk/systests/spring-ws-tests/pom.xml Mon May 25 17:45:23 2015
@@ -51,5 +51,11 @@
             <artifactId>junit</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>spring-ws-testsuite</artifactId>
+            <version>${project.version}</version>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 </project>

Added: webservices/axiom/trunk/systests/spring-ws-tests/src/test/java/org/apache/axiom/systest/springws/AxiomMessageFactoryConfigurator.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/systests/spring-ws-tests/src/test/java/org/apache/axiom/systest/springws/AxiomMessageFactoryConfigurator.java?rev=1681622&view=auto
==============================================================================
--- webservices/axiom/trunk/systests/spring-ws-tests/src/test/java/org/apache/axiom/systest/springws/AxiomMessageFactoryConfigurator.java (added)
+++ webservices/axiom/trunk/systests/spring-ws-tests/src/test/java/org/apache/axiom/systest/springws/AxiomMessageFactoryConfigurator.java Mon May 25 17:45:23 2015
@@ -0,0 +1,36 @@
+/*
+ * 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.axiom.systest.springws;
+
+import org.apache.axiom.ts.springws.MessageFactoryConfigurator;
+import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
+import org.springframework.context.support.GenericApplicationContext;
+import org.springframework.core.io.ClassPathResource;
+
+public final class AxiomMessageFactoryConfigurator extends MessageFactoryConfigurator {
+    public AxiomMessageFactoryConfigurator() {
+        super("axiom");
+    }
+
+    @Override
+    public void configure(GenericApplicationContext context) {
+        new XmlBeanDefinitionReader(context).loadBeanDefinitions(new ClassPathResource(
+                "axiom-message-factory.xml", AxiomMessageFactoryConfigurator.class));
+    }
+}

Propchange: webservices/axiom/trunk/systests/spring-ws-tests/src/test/java/org/apache/axiom/systest/springws/AxiomMessageFactoryConfigurator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/axiom/trunk/systests/spring-ws-tests/src/test/java/org/apache/axiom/systest/springws/SpringWSTest.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/systests/spring-ws-tests/src/test/java/org/apache/axiom/systest/springws/SpringWSTest.java?rev=1681622&view=auto
==============================================================================
--- webservices/axiom/trunk/systests/spring-ws-tests/src/test/java/org/apache/axiom/systest/springws/SpringWSTest.java (added)
+++ webservices/axiom/trunk/systests/spring-ws-tests/src/test/java/org/apache/axiom/systest/springws/SpringWSTest.java Mon May 25 17:45:23 2015
@@ -0,0 +1,49 @@
+/*
+ * 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.axiom.systest.springws;
+
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+import org.apache.axiom.ts.springws.MessageFactoryConfigurator;
+import org.apache.axiom.ts.springws.SpringWSTestSuiteBuilder;
+import org.apache.axiom.ts.springws.scenario.broker.BrokerScenarioTest;
+import org.apache.axiom.ts.springws.scenario.castor.CastorTest;
+import org.apache.axiom.ts.springws.scenario.jaxb2.JAXB2Test;
+import org.apache.axiom.ts.springws.scenario.jdom.ClientServerTest;
+import org.apache.axiom.ts.springws.scenario.secureecho.SecureEchoTest;
+import org.apache.axiom.ts.springws.soap.messagefactory.TestCreateWebServiceMessageFromInputStream;
+
+public class SpringWSTest extends TestCase {
+    public static TestSuite suite() {
+        SpringWSTestSuiteBuilder builder = new SpringWSTestSuiteBuilder(
+                new AxiomMessageFactoryConfigurator(),
+                MessageFactoryConfigurator.SAAJ);
+        
+        // TODO: investigate
+        builder.exclude(TestCreateWebServiceMessageFromInputStream.class);
+        builder.exclude(ClientServerTest.class);
+        builder.exclude(JAXB2Test.class);
+        builder.exclude(CastorTest.class);
+        builder.exclude(BrokerScenarioTest.class);
+        builder.exclude(SecureEchoTest.class);
+        
+        return builder.build();
+    }
+}

Propchange: webservices/axiom/trunk/systests/spring-ws-tests/src/test/java/org/apache/axiom/systest/springws/SpringWSTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: webservices/axiom/trunk/systests/spring-ws-tests/src/test/resources/org/apache/axiom/systest/springws/axiom-message-factory.xml
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/systests/spring-ws-tests/src/test/resources/org/apache/axiom/systest/springws/axiom-message-factory.xml?rev=1681622&view=auto
==============================================================================
--- webservices/axiom/trunk/systests/spring-ws-tests/src/test/resources/org/apache/axiom/systest/springws/axiom-message-factory.xml (added)
+++ webservices/axiom/trunk/systests/spring-ws-tests/src/test/resources/org/apache/axiom/systest/springws/axiom-message-factory.xml Mon May 25 17:45:23 2015
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ 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.
+  -->
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:util="http://www.springframework.org/schema/util"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="
+         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
+         http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.2.xsd">
+    <bean name="messageFactory" class="org.springframework.ws.soap.axiom.AxiomSoapMessageFactory">
+        <property name="soapVersion">
+            <util:constant static-field="org.springframework.ws.soap.SoapVersion.${soapVersion}"/>
+        </property>
+    </bean>
+</beans>

Propchange: webservices/axiom/trunk/systests/spring-ws-tests/src/test/resources/org/apache/axiom/systest/springws/axiom-message-factory.xml
------------------------------------------------------------------------------
    svn:eol-style = native