JBossWS SVN: r6830 - stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2008-05-01 05:29:19 -0400 (Thu, 01 May 2008)
New Revision: 6830
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ClientTestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.java
Log:
[JBWS-2030] More DAR test cases
Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ClientTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ClientTestCase.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ClientTestCase.java 2008-05-01 09:29:19 UTC (rev 6830)
@@ -0,0 +1,69 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.samples.dar;
+
+//$Id$
+
+import java.net.URL;
+import java.util.Date;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+import org.jboss.test.ws.jaxws.samples.dar.generated.DarResponse;
+
+/**
+ * DAR client; invokes the DAR endpoint (sync, asynch)
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 30-Apr-2008
+ */
+public class ClientTestCase extends JBossWSTest
+{
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(ClientTestCase.class, "jaxws-samples-dar.jar");
+ }
+
+ public void testSync() throws Exception
+ {
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/dar?wsdl");
+ Client client = new Client(wsdlURL);
+ Date start = new Date();
+ DarResponse response = client.run(false);
+ Date stop = new Date();
+ assertTrue(stop.getTime() - start.getTime() > 3000);
+ assertNotNull(response);
+ }
+
+ public void testAsync() throws Exception
+ {
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/dar?wsdl");
+ Client client = new Client(wsdlURL);
+ Date start = new Date();
+ DarResponse response = client.run(true);
+ Date stop = new Date();
+ assertTrue(stop.getTime() - start.getTime() > 3000);
+ assertNotNull(response);
+ }
+}
Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/ClientTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.java (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.java 2008-05-01 09:29:19 UTC (rev 6830)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.samples.dar;
+
+//$Id$
+
+import java.io.BufferedReader;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.util.Date;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * DAR client; invokes the DAR JMS endpoint
+ * (this is actually a weak test since we don't check if the
+ * response queue actually receives the response)
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 01-May-2008
+ */
+public class JMSClientTestCase extends JBossWSTest
+{
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JMSClientTestCase.class, "jaxws-samples-dar-jms-client.sar,jaxws-samples-dar-jms.jar");
+ }
+
+ public void test() throws Exception
+ {
+ String url = "http://" + getServerHost() + ":8080/dar-jms-client/JMSClient";
+ Date start = new Date();
+ HttpURLConnection connection = (HttpURLConnection)new URL(url).openConnection();
+ int responseCode = connection.getResponseCode();
+ if (responseCode != HttpURLConnection.HTTP_OK)
+ {
+ fail("Cannot access JMSClient servlet, responseCode == " + responseCode);
+ }
+ BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
+ StringBuffer buffer = new StringBuffer();
+ String line;
+ while ((line = in.readLine()) != null) {
+ buffer.append(line + "\n");
+ }
+ assertTrue(buffer.toString().contains("Request message sent, doing something interesting in the mean time... ;-) "));
+ Date stop = new Date();
+ assertTrue(stop.getTime() - start.getTime() < 3000);
+ }
+}
Property changes on: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/samples/dar/JMSClientTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
16 years, 8 months
JBossWS SVN: r6829 - framework/trunk/testsuite/test/java/org/jboss/test/ws/projectGenerator.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2008-05-01 04:53:06 -0400 (Thu, 01 May 2008)
New Revision: 6829
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/projectGenerator/ProjectGeneratorTestCase.java
Log:
[JBWS-2028] adding missing jbossws.integration.target when running create-project target in the test
Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/projectGenerator/ProjectGeneratorTestCase.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/projectGenerator/ProjectGeneratorTestCase.java 2008-05-01 00:07:57 UTC (rev 6828)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/projectGenerator/ProjectGeneratorTestCase.java 2008-05-01 08:53:06 UTC (rev 6829)
@@ -77,7 +77,8 @@
writeUserProjectProperties(userPrjProp);
File distroBuild = new File(binDistroDir, "build.sh");
String integrationTarget = System.getProperty("jbossws.integration.target");
- assertStatusCode(executeCommand(distroBuild.getCanonicalPath() + " -D" + integrationTarget + ".home=" + jbossHome + " create-project"), "Error while creating the user project!");
+ assertStatusCode(executeCommand(distroBuild.getCanonicalPath() + " -D" + integrationTarget + ".home=" + jbossHome + " -Djbossws.integration.target="
+ + integrationTarget + " create-project"), "Error while creating the user project!");
File projectHomeDir = new File(workspaceHome, projectName);
File packageDir = new File(projectHomeDir.getCanonicalPath() + "/src/main/java/org/jboss/test/ws/projectGenerator");
packageDir.mkdirs();
16 years, 8 months
JBossWS SVN: r6828 - stack/native/branches/tdiesler/trunk/modules/testsuite/native-tests.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-30 20:07:57 -0400 (Wed, 30 Apr 2008)
New Revision: 6828
Modified:
stack/native/branches/tdiesler/trunk/modules/testsuite/native-tests/
Log:
Property changes on: stack/native/branches/tdiesler/trunk/modules/testsuite/native-tests
___________________________________________________________________
Name: svn:ignore
+ target
16 years, 8 months
JBossWS SVN: r6827 - in stack/native/branches/tdiesler/trunk: modules/client and 4 other directories.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2008-04-30 20:06:46 -0400 (Wed, 30 Apr 2008)
New Revision: 6827
Modified:
stack/native/branches/tdiesler/trunk/modules/client/pom.xml
stack/native/branches/tdiesler/trunk/modules/core/pom.xml
stack/native/branches/tdiesler/trunk/modules/testsuite/framework-tests/pom.xml
stack/native/branches/tdiesler/trunk/modules/testsuite/native-tests/pom.xml
stack/native/branches/tdiesler/trunk/modules/testsuite/pom.xml
stack/native/branches/tdiesler/trunk/pom.xml
Log:
Modified: stack/native/branches/tdiesler/trunk/modules/client/pom.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/client/pom.xml 2008-04-30 23:02:46 UTC (rev 6826)
+++ stack/native/branches/tdiesler/trunk/modules/client/pom.xml 2008-05-01 00:06:46 UTC (rev 6827)
@@ -13,4 +13,13 @@
<version>3.0.2-SNAPSHOT</version>
</parent>
+ <!-- Dependencies -->
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.ws.native</groupId>
+ <artifactId>jbossws-native-core</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ </dependencies>
+
</project>
Modified: stack/native/branches/tdiesler/trunk/modules/core/pom.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/core/pom.xml 2008-04-30 23:02:46 UTC (rev 6826)
+++ stack/native/branches/tdiesler/trunk/modules/core/pom.xml 2008-05-01 00:06:46 UTC (rev 6827)
@@ -47,50 +47,32 @@
<scope>provided</scope>
</dependency>
<dependency>
- <groupId>javax.mail</groupId>
- <artifactId>mail</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<scope>provided</scope>
</dependency>
+
+ <!-- jboss provided -->
<dependency>
- <groupId>javax.xml.bind</groupId>
- <artifactId>jaxb-api</artifactId>
+ <groupId>org.jboss.microcontainer</groupId>
+ <artifactId>jboss-kernel</artifactId>
<scope>provided</scope>
</dependency>
- <!-- jboss provided -->
+ <!-- transitve dependencies -->
<dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </dependency>
+ <dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
- <scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-xjc</artifactId>
- <scope>provided</scope>
</dependency>
<dependency>
- <groupId>javassist</groupId>
- <artifactId>javassist</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>jboss.remoting</groupId>
- <artifactId>jboss-remoting</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.microcontainer</groupId>
- <artifactId>jboss-kernel</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <!-- transitve dependencies -->
- <dependency>
<groupId>com.sun.xml.fastinfoset</groupId>
<artifactId>FastInfoset</artifactId>
</dependency>
@@ -103,10 +85,22 @@
<artifactId>jettison</artifactId>
</dependency>
<dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>javax.mail</groupId>
+ <artifactId>mail</artifactId>
+ </dependency>
+ <dependency>
<groupId>jboss.jaxbintros</groupId>
<artifactId>jboss-jaxb-intros</artifactId>
</dependency>
<dependency>
+ <groupId>jboss.remoting</groupId>
+ <artifactId>jboss-remoting</artifactId>
+ </dependency>
+ <dependency>
<groupId>wscommons-policy</groupId>
<artifactId>policy</artifactId>
</dependency>
@@ -126,6 +120,10 @@
<groupId>xml-security</groupId>
<artifactId>xmlsec</artifactId>
</dependency>
+ <dependency>
+ <groupId>javassist</groupId>
+ <artifactId>javassist</artifactId>
+ </dependency>
</dependencies>
<!-- Build -->
Modified: stack/native/branches/tdiesler/trunk/modules/testsuite/framework-tests/pom.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/testsuite/framework-tests/pom.xml 2008-04-30 23:02:46 UTC (rev 6826)
+++ stack/native/branches/tdiesler/trunk/modules/testsuite/framework-tests/pom.xml 2008-05-01 00:06:46 UTC (rev 6827)
@@ -93,9 +93,6 @@
http://jira.codehaus.org/browse/SUREFIRE-486
-->
<testExcludes>
- <!-- [JBWS-2163] wsconsume for maven build -->
- <exclude>org/jboss/test/ws/jaxws/complex/**</exclude>
- <exclude>org/jboss/test/ws/jaxws/holder/**</exclude>
<!-- EJB3/Injection excludes -->
<exclude>org/jboss/test/ws/jaxws/samples/webserviceref/**</exclude>
@@ -145,9 +142,6 @@
http://jira.codehaus.org/browse/SUREFIRE-486
-->
<testExcludes>
- <!-- [JBWS-2163] wsconsume for maven build -->
- <exclude>org/jboss/test/ws/jaxws/complex/**</exclude>
- <exclude>org/jboss/test/ws/jaxws/holder/**</exclude>
<!-- EJB3/Injection excludes -->
<exclude>org/jboss/test/ws/jaxws/samples/webserviceref/**</exclude>
@@ -181,9 +175,6 @@
http://jira.codehaus.org/browse/SUREFIRE-486
-->
<testExcludes>
- <!-- [JBWS-2163] wsconsume for maven build -->
- <exclude>org/jboss/test/ws/jaxws/complex/**</exclude>
- <exclude>org/jboss/test/ws/jaxws/holder/**</exclude>
<!-- Fix BPEL before AS50 goes final -->
<exclude>org/jboss/test/ws/jaxrpc/samples/wsbpel/hello/*TestCase.*</exclude>
@@ -226,9 +217,6 @@
http://jira.codehaus.org/browse/SUREFIRE-486
-->
<testExcludes>
- <!-- [JBWS-2163] wsconsume for maven build -->
- <exclude>org/jboss/test/ws/jaxws/complex/**</exclude>
- <exclude>org/jboss/test/ws/jaxws/holder/**</exclude>
<!-- Fix BPEL before AS50 goes final -->
<exclude>org/jboss/test/ws/jaxrpc/samples/wsbpel/hello/*TestCase.*</exclude>
Modified: stack/native/branches/tdiesler/trunk/modules/testsuite/native-tests/pom.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/testsuite/native-tests/pom.xml 2008-04-30 23:02:46 UTC (rev 6826)
+++ stack/native/branches/tdiesler/trunk/modules/testsuite/native-tests/pom.xml 2008-05-01 00:06:46 UTC (rev 6827)
@@ -34,6 +34,29 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <testExcludes>
+
+ <!-- [JBWS-2163] wsconsume for maven build -->
+ <exclude>org/jboss/test/ws/benchmark/**</exclude>
+ <exclude>org/jboss/test/ws/interop/**</exclude>
+ <exclude>org/jboss/test/ws/jaxws/complex/**</exclude>
+ <exclude>org/jboss/test/ws/jaxws/holder/**</exclude>
+ <exclude>org/jboss/test/ws/jaxws/samples/wssecuritypolicy/**</exclude>
+ <exclude>org/jboss/test/ws/jaxws/samples/wssecurityAnnotatedpolicy/**</exclude>
+ <exclude>org/jboss/test/ws/jaxws/samples/wssecurity/**</exclude>
+
+ <!-- [JBWS-2164] Fix tools tests with maven build -->
+ <exclude>org/jboss/test/ws/jaxws/smoke/tools/**</exclude>
+
+ <exclude>org/jboss/test/ws/tools/**</exclude>
+ <exclude>org/jboss/test/ws/jaxrpc/**</exclude>
+
+ </testExcludes>
+ </configuration>
+ </plugin>
</plugins>
</build>
Modified: stack/native/branches/tdiesler/trunk/modules/testsuite/pom.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/modules/testsuite/pom.xml 2008-04-30 23:02:46 UTC (rev 6826)
+++ stack/native/branches/tdiesler/trunk/modules/testsuite/pom.xml 2008-05-01 00:06:46 UTC (rev 6827)
@@ -28,9 +28,11 @@
<!-- Dependencies -->
<dependencies>
<dependency>
- <groupId>org.jboss.ws</groupId>
- <artifactId>jbossws-common</artifactId>
+ <groupId>org.jboss.ws.native</groupId>
+ <artifactId>jbossws-native-client</artifactId>
+ <version>${version}</version>
</dependency>
+
<dependency>
<groupId>org.jboss.ws</groupId>
<artifactId>jbossws-framework</artifactId>
@@ -42,10 +44,6 @@
<type>zip</type>
</dependency>
<dependency>
- <groupId>org.jboss.ws</groupId>
- <artifactId>jbossws-spi</artifactId>
- </dependency>
- <dependency>
<groupId>javax.ejb</groupId>
<artifactId>ejb-api</artifactId>
</dependency>
@@ -54,16 +52,6 @@
<artifactId>servlet-api</artifactId>
</dependency>
<dependency>
- <groupId>org.jboss.ws.native</groupId>
- <artifactId>jbossws-native-client</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.ws.native</groupId>
- <artifactId>jbossws-native-core</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
Modified: stack/native/branches/tdiesler/trunk/pom.xml
===================================================================
--- stack/native/branches/tdiesler/trunk/pom.xml 2008-04-30 23:02:46 UTC (rev 6826)
+++ stack/native/branches/tdiesler/trunk/pom.xml 2008-05-01 00:06:46 UTC (rev 6827)
@@ -51,6 +51,7 @@
<jbossws.jboss500.version>3.0.0-SNAPSHOT</jbossws.jboss500.version>
<jbossws.jboss501.version>3.0.0-SNAPSHOT</jbossws.jboss501.version>
<codehaus.jettison.version>1.0-RC2</codehaus.jettison.version>
+ <commons.logging.version>1.1.1</commons.logging.version>
<javassist.version>3.6.0.GA</javassist.version>
<jboss.common.version>1.2.1.GA</jboss.common.version>
<jboss.jaxbintros.version>1.0.0.beta2</jboss.jaxbintros.version>
@@ -168,25 +169,21 @@
<groupId>javax.ejb</groupId>
<artifactId>ejb-api</artifactId>
<version>3.0</version>
- <scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
<version>1.1</version>
- <scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4</version>
- <scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
- <scope>provided</scope>
</dependency>
<!-- jboss provided -->
@@ -194,29 +191,30 @@
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>${javassist.version}</version>
- <scope>provided</scope>
</dependency>
<dependency>
<groupId>jboss.common</groupId>
<artifactId>jboss-common</artifactId>
<version>${jboss.common.version}</version>
- <scope>provided</scope>
</dependency>
<dependency>
<groupId>jboss.remoting</groupId>
<artifactId>jboss-remoting</artifactId>
<version>${jboss.remoting.version}</version>
- <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.microcontainer</groupId>
<artifactId>jboss-kernel</artifactId>
<version>${jboss.microcontainer.version}</version>
- <scope>provided</scope>
</dependency>
<!-- transitve dependencies -->
<dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>${commons.logging.version}</version>
+ </dependency>
+ <dependency>
<groupId>com.sun.xml.fastinfoset</groupId>
<artifactId>FastInfoset</artifactId>
<version>${sun.fastinfoset.version}</version>
16 years, 8 months