[jbossws-commits] JBossWS SVN: r12011 - in framework/trunk/testsuite/test: java/org/jboss/test/ws/jaxws and 4 other directories.
jbossws-commits at lists.jboss.org
jbossws-commits at lists.jboss.org
Fri Apr 16 05:03:06 EDT 2010
Author: richard.opalka at jboss.com
Date: 2010-04-16 05:03:05 -0400 (Fri, 16 Apr 2010)
New Revision: 12011
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2486/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2486/JBWS2486.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2486/JBWS2486Impl.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2486/JBWS2486TestCase.java
framework/trunk/testsuite/test/resources/jaxws/jbws2486/
framework/trunk/testsuite/test/resources/jaxws/jbws2486/WEB-INF/
framework/trunk/testsuite/test/resources/jaxws/jbws2486/WEB-INF/web.xml
Modified:
framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
Log:
[JBWS-3002] refactoring test to framework
Modified: framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
===================================================================
--- framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2010-04-16 09:01:00 UTC (rev 12010)
+++ framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2010-04-16 09:03:05 UTC (rev 12011)
@@ -737,6 +737,14 @@
</metainf>
</jar>
+ <!-- jaxws-jbws2486 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2486.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2486/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2486/*.class"/>
+ <exclude name="org/jboss/test/ws/jaxws/jbws2486/*TestCase.class"/>
+ </classes>
+ </war>
+
<!-- jbws2527 -->
<war warfile="${tests.output.dir}/test-libs/jaxws-jbws2527-client.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2527/WEB-INF-client/web.xml">
<classes dir="${tests.output.dir}/test-classes">
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2486/JBWS2486.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2486/JBWS2486.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2486/JBWS2486.java 2010-04-16 09:03:05 UTC (rev 12011)
@@ -0,0 +1,30 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.test.ws.jaxws.jbws2486;
+
+import javax.jws.WebService;
+
+ at WebService
+public interface JBWS2486
+{
+ String getServiceInstanceId();
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2486/JBWS2486Impl.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2486/JBWS2486Impl.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2486/JBWS2486Impl.java 2010-04-16 09:03:05 UTC (rev 12011)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.test.ws.jaxws.jbws2486;
+
+import javax.jws.WebService;
+
+ at WebService(serviceName = "JBWS2486Service", endpointInterface = "org.jboss.test.ws.jaxws.jbws2486.JBWS2486")
+public class JBWS2486Impl implements JBWS2486
+{
+
+ public String getServiceInstanceId()
+ {
+ return "" + this;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2486/JBWS2486TestCase.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2486/JBWS2486TestCase.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2486/JBWS2486TestCase.java 2010-04-16 09:03:05 UTC (rev 12011)
@@ -0,0 +1,71 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.test.ws.jaxws.jbws2486;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * [JBWS-2486] POJO service should be shared
+ *
+ * @author richard.opalka at jboss.com
+ */
+public class JBWS2486TestCase extends JBossWSTest
+{
+ private String targetNS = "http://jbws2486.jaxws.ws.test.jboss.org/";
+ private JBWS2486 proxy;
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JBWS2486TestCase.class, "jaxws-jbws2486.war");
+ }
+
+ @Override
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+
+ QName serviceName = new QName(targetNS, "JBWS2486Service");
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws2486/JBWS2486Service?wsdl");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ proxy = (JBWS2486)service.getPort(JBWS2486.class);
+ }
+
+ public void testIssue() throws Exception
+ {
+ String serviceInstanceId = proxy.getServiceInstanceId();
+ for (int i = 1; i <= 10; i++)
+ {
+ assertEquals(proxy.getServiceInstanceId(), serviceInstanceId);
+ }
+ }
+
+}
Added: framework/trunk/testsuite/test/resources/jaxws/jbws2486/WEB-INF/web.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws2486/WEB-INF/web.xml (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws2486/WEB-INF/web.xml 2010-04-16 09:03:05 UTC (rev 12011)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <servlet>
+ <servlet-name>JBWS2486Service</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2486.JBWS2486Impl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>JBWS2486Service</servlet-name>
+ <url-pattern>/JBWS2486Service</url-pattern>
+ </servlet-mapping>
+
+</web-app>
More information about the jbossws-commits
mailing list