[jboss-svn-commits] JBL Code SVN: r17705 - in labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts: src/org/jboss/soa/esb/quickstart/test and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Jan 11 01:13:38 EST 2008
Author: tcunning
Date: 2008-01-11 01:13:38 -0500 (Fri, 11 Jan 2008)
New Revision: 17705
Added:
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/AggregatorTest.java
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/CustomActionTest.java
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/GroovyGatewayTest.java
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/JMSSecuredTest.java
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/NativeClientTest.java
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WSConsumer1Test.java
Modified:
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/build.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformCSV2XMLTest.java
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceConsumer1Test.java
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceConsumer2Test.java
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceProducerTest.java
Log:
bug:JBESB-1154
Add tests for QS's that are not yet tested.
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/build.xml 2008-01-11 06:12:40 UTC (rev 17704)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/build.xml 2008-01-11 06:13:38 UTC (rev 17705)
@@ -89,21 +89,25 @@
<include name="bpm_orchestration2/build/classes"/>
<include name="bpm_orchestration3/build/classes"/>
<include name="business_rules_service/build/classes"/>
+ <include name="custom_action/build/classes"/>
<include name="deadletter/build/classes"/>
<include name="dynamic_router/build/classes"/>
<include name="exceptions_faults/build/classes"/>
<include name="fun_cbr/build/classes"/>
+ <include name="groovy_gateway/build/classes"/>
<include name="helloworld/build/classes"/>
<include name="helloworld_action/build/classes"/>
<include name="helloworld_db_registration/build/classes"/>
<include name="helloworld_file_action/build/classes"/>
<include name="helloworld_file_notifier/build/classes"/>
<include name="helloworld_sql_action/build/classes"/>
+ <include name="jms_secured/build/classes"/>
<include name="jms_topic/build/classes"/>
<include name="load_generator/build/classes"/>
<include name="load_generator/load_generator_classes"/>
<include name="messagefilter/build/classes"/>
<include name="messagestore/build/classes"/>
+ <include name="native_client/build/classes"/>
<include name="recipient_list/build/classes"/>
<include name="scheduled_services/build/classes"/>
<include name="scripting_groovy/build/classes"/>
@@ -120,7 +124,8 @@
<include name="webservice_consumer1/build/classes"/>
<include name="webservice_consumer2/build/classes"/>
<include name="webservice_producer/build/classes"/>
- <include name="wiretap/build/classes"/>
+ <include name="wiretap/build/classes"/>
+ <include name="ws_consumer1/build/classes"/>
</dirset>
<fileset dir="${product.lib.ext}" includes="*.jar"/>
@@ -193,19 +198,24 @@
<exec-quickstart quickstart="bpm_orchestration2" target="clean"/>
<exec-quickstart quickstart="bpm_orchestration3" target="clean"/>
<exec-quickstart quickstart="business_rules_service" target="clean"/>
+ <exec-quickstart quickstart="custom_action" target="clean"/>
<exec-quickstart quickstart="deadletter" target="clean"/>
<exec-quickstart quickstart="dynamic_router" target="clean"/>
<exec-quickstart quickstart="exceptions_faults" target="clean"/>
<exec-quickstart quickstart="fun_cbr" target="clean"/>
+ <exec-quickstart quickstart="groovy_gateway" target="clean"/>
<exec-quickstart quickstart="helloworld" target="clean"/>
<exec-quickstart quickstart="helloworld_action" target="clean"/>
<exec-quickstart quickstart="helloworld_db_registration" target="clean"/>
<exec-quickstart quickstart="helloworld_file_action" target="clean"/>
<exec-quickstart quickstart="helloworld_file_notifier" target="clean"/>
<exec-quickstart quickstart="helloworld_sql_action" target="clean"/>
+ <exec-quickstart quickstart="jms_secured" target="clean"/>
+ <exec-quickstart quickstart="jms_topic" target="clean"/>
<exec-quickstart quickstart="load_generator" target="clean"/>
<exec-quickstart quickstart="messagefilter" target="clean"/>
<exec-quickstart quickstart="messagestore" target="clean"/>
+ <exec-quickstart quickstart="native_client" target="clean"/>
<exec-quickstart quickstart="recipient_list" target="clean"/>
<exec-quickstart quickstart="scheduled_services" target="clean"/>
<exec-quickstart quickstart="scripting_groovy" target="clean"/>
@@ -223,6 +233,7 @@
<exec-quickstart quickstart="webservice_consumer1" target="clean"/>
<exec-quickstart quickstart="webservice_consumer2" target="clean"/>
<exec-quickstart quickstart="webservice_producer" target="clean"/>
+ <exec-quickstart quickstart="ws_consumer1" target="clean"/>
</target>
<target name="compile-esb">
@@ -231,24 +242,27 @@
<exec-quickstart quickstart="bpm_orchestration2" target="prepare-deployment"/>
<exec-quickstart quickstart="bpm_orchestration3" target="prepare-deployment"/>
<exec-quickstart quickstart="business_rules_service" target="prepare-deployment"/>
-
+ <exec-quickstart quickstart="custom_action" target="prepare-deployment"/>
<exec-quickstart quickstart="deadletter" target="prepare-deployment"/>
<exec-quickstart quickstart="dynamic_router" target="prepare-deployment"/>
<exec-quickstart quickstart="exceptions_faults" target="prepare-deployment"/>
<exec-quickstart quickstart="fun_cbr" target="prepare-deployment"/>
+ <exec-quickstart quickstart="groovy_gateway" target="prepare-deployment"/>
<exec-quickstart quickstart="helloworld" target="prepare-deployment"/>
<exec-quickstart quickstart="helloworld_action" target="prepare-deployment"/>
<exec-quickstart quickstart="helloworld_db_registration" target="prepare-deployment"/>
<exec-quickstart quickstart="helloworld_file_action" target="prepare-deployment"/>
<exec-quickstart quickstart="helloworld_file_notifier" target="prepare-deployment"/>
<exec-quickstart quickstart="helloworld_sql_action" target="prepare-deployment"/>
+ <exec-quickstart quickstart="jms_secured" target="prepare-deployment"/>
<exec-quickstart quickstart="jms_topic" target="prepare-deployment"/>
<!--
<exec-quickstart quickstart="load_generator" target="prepare-deployment"/>
-->
<exec-quickstart quickstart="messagefilter" target="prepare-deployment"/>
<exec-quickstart quickstart="messagestore" target="prepare-deployment"/>
+ <exec-quickstart quickstart="native_client" target="prepare-deployment"/>
<exec-quickstart quickstart="recipient_list" target="prepare-deployment"/>
<exec-quickstart quickstart="scheduled_services" target="prepare-deployment"/>
<exec-quickstart quickstart="scripting_groovy" target="prepare-deployment"/>
@@ -266,26 +280,31 @@
<exec-quickstart quickstart="webservice_consumer2" target="prepare-deployment"/>
<exec-quickstart quickstart="webservice_producer" target="prepare-deployment"/>
<exec-quickstart quickstart="wiretap" target="prepare-deployment"/>
+ <exec-quickstart quickstart="ws_consumer1" target="prepare-deployment"/>
<copy todir="${qa.quickstarts.build.lib}" flatten="true">
<fileset dir="${org.jboss.esb.test.quickstarts.dir}">
<include name="bpm_orchestration1/build/*.esb"/>
<include name="bpm_orchestration2/build/*.esb"/>
<include name="bpm_orchestration3/build/*.esb"/>
<include name="business_rules_service/build/*.esb"/>
+ <include name="custom_action/build/*.esb"/>
<include name="deadletter/build/*.esb"/>
<include name="dynamic_router/build/*.esb"/>
<include name="exceptions_faults/build/*.esb"/>
<include name="fun_cbr/build/*.esb"/>
+ <include name="groovy_gateway/build/*.esb"/>
<include name="helloworld/build/*.esb"/>
<include name="helloworld_action/build/*.esb"/>
<include name="helloworld_db_registration/build/*.esb"/>
<include name="helloworld_file_action/build/*.esb"/>
<include name="helloworld_file_notifier/build/*.esb"/>
<include name="helloworld_sql_action/build/*.esb"/>
+ <include name="jms_secured/build/*.esb"/>
<include name="jms_topic/build/*.esb"/>
<include name="load_generator/build/*.esb"/>
<include name="messagefilter/build/*.esb"/>
<include name="messagestore/build/*.esb"/>
+ <include name="native_client/build/*.esb"/>
<include name="recipient_list/build/*.esb"/>
<include name="scripting_groovy/build/*.esb"/>
<include name="scheduled_services/build/*.esb"/>
@@ -300,9 +319,11 @@
<include name="transform_XML2XML_date_manipulation/build/*.esb"/>
<include name="transform_XML2XML_simple/build/*.esb"/>
<include name="webservice_consumer1/build/*.esb"/>
+ <include name="webservice_consumer1/build/*.war"/>
<include name="webservice_consumer2/build/*.esb"/>
<include name="webservice_producer/build/*.esb"/>
<include name="wiretap/build/*.esb"/>
+ <include name="ws_consumer1/build/*.esb"/>
</fileset>
</copy>
</target>
@@ -343,6 +364,10 @@
<fileset dir="${qa.quickstarts.src}">
<include name="**/${tests.filter}Test.java"/>
<exclude name="${tests.exclude}"/>
+ <!-- Aggregator QS only runs standalone -->
+ <exclude name="**/AggregatorTest.java"/>
+ <!-- GroovyGateway QS requires UI interaction -->
+ <exclude name="**/GroovyGatewayTest.java"/>
<!-- SpringJPetStore requires additional configuration
files and hsqldb. The QS needs some work before
the CI test can run. -->
@@ -359,18 +384,19 @@
<exclude name="**/GroovyGatewayTest.java"/>
<exclude name="**/LoadGeneratorTest.java"/>
<exclude name="**/StaticRouterTest.java"/>
- <exclude name="**/WebserviceAdapterTest.java"/>
<exclude name="**/HelloWorldDBRegistrationTest.java"/>
+ <!-- Requires ActiveBPEL and AS -->
<exclude name="**/WebserviceBPELTest.java"/>
- <!-- The WebService quickstarts require jbossws, which
- requires jars that are not installed with
- esb-server (jboss-client.jar for example) -->
+ <!-- The WebService ws-* quickstarts require AS -->
+ <exclude name="**/WebServiceWSAddressingTest.java"/>
+ <exclude name="**/WebServiceWSSecurityTest.java"/>
+ <!-- The WSConsumer QS requires war deployment -->
+ <exclude name="**/WebserviceAdapterTest.java"/>
+ <exclude name="**/WebserviceBPELTest.java"/>
<exclude name="**/WebServiceConsumer1Test.java"/>
<exclude name="**/WebServiceConsumer2Test.java"/>
<exclude name="**/WebServiceProducerTest.java"/>
- <exclude name="**/WebServiceMTOMTest.java"/>
- <exclude name="**/WebServiceWSAddressingTest.java"/>
- <exclude name="**/WebServiceWSSecurityTest.java"/>
+ <exclude name="**/WSConsumer1Test.java"/>
</fileset>
</batchtest>
<classpath>
Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/AggregatorTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/AggregatorTest.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/AggregatorTest.java 2008-01-11 06:13:38 UTC (rev 17705)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * 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,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+
+package org.jboss.soa.esb.quickstart.test;
+
+import junit.framework.Test;
+
+/**
+ * This is intended to be a placeholder for a test for the aggregator QS. The aggregator
+ * QS only runs standalone - does not run within AS, so
+ *
+ * @author tcunning
+ *
+ */
+public class AggregatorTest extends AbstractQuickstartTestCase {
+ public AggregatorTest(String name) {
+ super(name);
+ }
+
+ public void testMessage() throws Exception {
+ }
+
+ public static Test suite() throws Exception {
+ return getDeploySetup(HelloWorldTest.class, "QuickstartMessageStoreServer.sar, Quickstart_Aggregator.esb");
+ }
+}
\ No newline at end of file
Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/CustomActionTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/CustomActionTest.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/CustomActionTest.java 2008-01-11 06:13:38 UTC (rev 17705)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * 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,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+
+package org.jboss.soa.esb.quickstart.test;
+
+import org.jboss.soa.esb.samples.quickstart.customaction.test.SendJMSMessage;
+
+import junit.framework.Test;
+
+/**
+ * This is intended to be a placeholder for a test for the aggregator QS. The aggregator
+ * QS only runs standalone - does not run within AS, so
+ *
+ * @author tcunning
+ *
+ */
+public class CustomActionTest extends AbstractQuickstartTestCase {
+ private static final String JMS_MESSAGE = "Via Gateway";
+
+ public CustomActionTest(String name) {
+ super(name);
+ }
+
+ public void testMessage() throws Exception {
+ clearMessages() ;
+ sendMessage();
+ final String[] sinkMessages = waitForMessages(1, 30000) ;
+ assertTrue("Expected to find string " + JMS_MESSAGE + " found " + sinkMessages[0],
+ sinkMessages[0].contains(JMS_MESSAGE));
+ }
+
+ public void sendMessage() throws Exception {
+ SendJMSMessage sm = new SendJMSMessage();
+ sm.setupConnection();
+ sm.sendAMessage(JMS_MESSAGE) ;
+ sm.stop();
+ }
+
+ public static Test suite() throws Exception {
+ return getDeploySetup(CustomActionTest.class, "QuickstartMessageStoreServer.sar, Quickstart_custom_action.esb");
+ }
+}
\ No newline at end of file
Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/GroovyGatewayTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/GroovyGatewayTest.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/GroovyGatewayTest.java 2008-01-11 06:13:38 UTC (rev 17705)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * 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,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+
+package org.jboss.soa.esb.quickstart.test;
+
+import junit.framework.Test;
+
+/**
+ * This is intended to be a placeholder for a test for the aggregator QS. The aggregator
+ * QS only runs standalone - does not run within AS, so
+ *
+ * @author tcunning
+ *
+ */
+public class GroovyGatewayTest extends AbstractQuickstartTestCase {
+ public GroovyGatewayTest(String name) {
+ super(name);
+ }
+
+ public void testMessage() throws Exception {
+ }
+
+ public static Test suite() throws Exception {
+ return getDeploySetup(GroovyGatewayTest.class, "QuickstartMessageStoreServer.sar, Quickstart_groovy_gateway.esb");
+ }
+}
\ No newline at end of file
Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/JMSSecuredTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/JMSSecuredTest.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/JMSSecuredTest.java 2008-01-11 06:13:38 UTC (rev 17705)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, 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.soa.esb.quickstart.test;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.samples.quickstart.jmssecured.test.SendJMSMessage;
+
+/**
+ * CI test for the jms_secured quickstart.
+ *
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class JMSSecuredTest extends AbstractQuickstartTestCase {
+ private static final String JMS_MESSAGE = "Hello Secured JMS World";
+
+ public JMSSecuredTest(String name) {
+ super(name);
+ }
+
+ public void testMessage() throws Exception {
+ clearMessages();
+ sendMessage();
+ checkMessages(30000, JMS_MESSAGE);
+ }
+
+ public void sendMessage() throws Exception {
+ SendJMSMessage sm = new SendJMSMessage();
+ sm.setupConnection();
+ sm.sendAMessage(JMS_MESSAGE);
+ sm.stop();
+ }
+
+ public static Test suite() throws Exception {
+ return getDeploySetup(JMSSecuredTest.class, "QuickstartMessageStoreServer.sar, Quickstart_JMS_Secured.esb");
+ }
+}
Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/NativeClientTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/NativeClientTest.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/NativeClientTest.java 2008-01-11 06:13:38 UTC (rev 17705)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * 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,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+
+package org.jboss.soa.esb.quickstart.test;
+
+import junit.framework.Test;
+
+/**
+ * This is intended to be a placeholder for a test for the aggregator QS. The aggregator
+ * QS only runs standalone - does not run within AS, so
+ *
+ * @author tcunning
+ *
+ */
+public class NativeClientTest extends AbstractQuickstartTestCase {
+ public NativeClientTest(String name) {
+ super(name);
+ }
+
+ public void testMessage() throws Exception {
+ }
+
+ public static Test suite() throws Exception {
+ return getDeploySetup(NativeClientTest.class, "QuickstartMessageStoreServer.sar, Quickstart_native_client.esb");
+ }
+}
\ No newline at end of file
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformCSV2XMLTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformCSV2XMLTest.java 2008-01-11 06:12:40 UTC (rev 17704)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformCSV2XMLTest.java 2008-01-11 06:13:38 UTC (rev 17705)
@@ -37,12 +37,11 @@
extends AbstractQuickstartTestCase {
private static final String FILE_NAME = "transformedmessageCSV2XML.log";
-
public TransformCSV2XMLTest(String name)
{
super(name);
}
-
+
public void testMessage() throws Exception
{
clearMessages() ;
@@ -59,8 +58,8 @@
{
is.close() ;
}
- final boolean match = Helpers.compareXMLContent(expectedString, messages[0]) ;
- assertTrue("Unexpected response: " + messages[0], match) ;
+ final boolean match = Helpers.compareXMLContent(expectedString, messages[0]) ;
+ assertTrue("Unexpected response: " + messages[0] + " , expected, " + expectedString, match) ;
}
public void sendMessage() throws Exception
Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WSConsumer1Test.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WSConsumer1Test.java (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WSConsumer1Test.java 2008-01-11 06:13:38 UTC (rev 17705)
@@ -0,0 +1,58 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * 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,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+
+package org.jboss.soa.esb.quickstart.test;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.samples.quickstart.webservice_consumer1.test.SendJMSMessage;
+
+/**
+ * CI test for the helloworld quickstart.
+ *
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class WSConsumer1Test extends AbstractQuickstartTestCase {
+ private static final String JMS_MESSAGE = "HelloWorldTest message";
+
+ public WSConsumer1Test(String name) {
+ super(name);
+ }
+
+ public void testMessage() throws Exception {
+ clearMessages();
+ sendMessage();
+ String[] sinkMessages = waitForMessages(1, 30000);
+ assertTrue("Expected to find string " + JMS_MESSAGE + " found " + sinkMessages[0],
+ sinkMessages[0].contains(JMS_MESSAGE));
+ }
+
+ public void sendMessage() throws Exception {
+ SendJMSMessage sm = new SendJMSMessage();
+ sm.setupConnection();
+ sm.sendAMessage(JMS_MESSAGE) ;
+ sm.stop();
+ }
+
+ public static Test suite() throws Exception {
+ return getDeploySetup(WSConsumer1Test.class, "QuickstartMessageStoreServer.sar, Quickstart_webservice_consumer1.esb");
+ }
+}
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceConsumer1Test.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceConsumer1Test.java 2008-01-11 06:12:40 UTC (rev 17704)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceConsumer1Test.java 2008-01-11 06:13:38 UTC (rev 17705)
@@ -23,6 +23,8 @@
import junit.framework.Test;
+import org.jboss.soa.esb.samples.quickstart.webservice_consumer1.test.SendEsbMessage;
+
import org.jboss.soa.esb.samples.quickstart.webservice_consumer1.test.SendJMSMessage;
/**
@@ -31,7 +33,7 @@
* @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
*/
public class WebServiceConsumer1Test extends AbstractQuickstartTestCase {
- private static final String JMS_MESSAGE = "WebServiceConsumer1Test message";
+ private static final String JMS_MESSAGE = "Jimbo";
public WebServiceConsumer1Test(String name) {
super(name);
@@ -39,13 +41,16 @@
public void testMessage() throws Exception {
clearMessages() ;
- sendMessage() ;
- checkMessages(30000, JMS_MESSAGE) ;
+ sendMessage();
+ String[] sinkMessages = waitForMessages(1, 30000);
+ assertTrue("Expected to find string " + JMS_MESSAGE + " found " + sinkMessages[0],
+ sinkMessages[0].contains(JMS_MESSAGE));
}
public void sendMessage() throws Exception {
SendJMSMessage sm = new SendJMSMessage();
- sm.sendAMessage("Jimbo");
+ sm.setupConnection();
+ sm.sendAMessage(JMS_MESSAGE);
sm.stop();
}
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceConsumer2Test.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceConsumer2Test.java 2008-01-11 06:12:40 UTC (rev 17704)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceConsumer2Test.java 2008-01-11 06:13:38 UTC (rev 17705)
@@ -23,7 +23,7 @@
import junit.framework.Test;
-import org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSMessage;
+import org.jboss.soa.esb.samples.quickstart.webservice_consumer2.test.SendJMSMessage;
/**
* CI test for the webservice_consumer2 quickstart.
@@ -31,7 +31,8 @@
* @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
*/
public class WebServiceConsumer2Test extends AbstractQuickstartTestCase {
- private static final String JMS_MESSAGE = "WebServiceConsumer2Test message";
+ private static final String JMS_MESSAGE = "Jimbo";
+ private static final String RESULT_STRING = "{processOrderResponse.return.comment=order processed, processOrderResponse.return.id=1, processOrderResponse.return.returnCode=1}";
public WebServiceConsumer2Test(String name) {
super(name);
@@ -39,8 +40,10 @@
public void testMessage() throws Exception {
clearMessages() ;
- sendMessage() ;
- checkMessages(30000, JMS_MESSAGE) ;
+ sendMessage();
+ String[] sinkMessages = waitForMessages(1, 30000);
+ assertTrue("Expected to find string " + RESULT_STRING + " found " + sinkMessages[0],
+ sinkMessages[0].equals(RESULT_STRING));
}
public void sendMessage() throws Exception {
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceProducerTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceProducerTest.java 2008-01-11 06:12:40 UTC (rev 17704)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceProducerTest.java 2008-01-11 06:13:38 UTC (rev 17705)
@@ -6,6 +6,7 @@
import org.jboss.soa.esb.samples.quickstart.webserviceproducer.test.SendMessage;
import org.jboss.soa.esb.testutils.FileUtil;
+import org.jgroups.protocols.JMS;
/**
* CI test for the webservice_producer quickstart.
@@ -13,7 +14,10 @@
* @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
*/
public class WebServiceProducerTest extends AbstractQuickstartTestCase {
- private static final String JMS_MESSAGE = "WebServiceProducerTest message";
+ private static final String JMS_MESSAGE = "jms";
+ private static final String RESULT_STRING = "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>"
+ + "<env:Header></env:Header><env:Body><ns2:sayGoodbyeResponse xmlns:ns2=\"http://webservice_producer/goodbyeworld\">"
+ + "<return>... Ah Goodbye then!!!! - Goodbye!!</return></ns2:sayGoodbyeResponse></env:Body></env:Envelope>";
public WebServiceProducerTest(String name) {
super(name);
@@ -22,7 +26,9 @@
public void testMessage() throws Exception {
clearMessages() ;
sendMessage() ;
- checkMessages(30000, JMS_MESSAGE) ;
+ String[] sinkMessages = waitForMessages(1, 30000);
+ assertTrue("Expected to find string " + RESULT_STRING + " found " + sinkMessages[0],
+ sinkMessages[0].equals(RESULT_STRING));
}
public void sendMessage() throws Exception {
More information about the jboss-svn-commits
mailing list