[jboss-svn-commits] JBL Code SVN: r16800 - in labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa: quickstarts and 1 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sun Nov 25 23:42:02 EST 2007


Author: tcunning
Date: 2007-11-25 23:42:02 -0500 (Sun, 25 Nov 2007)
New Revision: 16800

Added:
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BPMOrchestration1Test.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BPMOrchestration2Test.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BPMOrchestration3Test.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BusinessRulesServiceTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/DeadLetterTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/ExceptionsFaultsTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldFileNotifierTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/JMSTopicTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/LoadGeneratorTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/MessageFilterTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/MessageStoreTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/ScheduledServicesTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SpringAOPTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SpringHelloWorldTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SpringJPetStoreTest.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
Modified:
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/build.xml
   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/DynamicRouterTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/FunCBRTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldActionTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldDBRegistrationTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldFileActionTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldSQLActionTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/RecipientlistTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/ScriptingGroovyTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SimpleCBRTest.java
   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/TransformDateManipulationTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformEDI2XMLGroovyXSLTTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformXML2PojoTest.java
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformXMLSimpleTest.java
Log:
bug:JBESB-1154
Check in tests for CI quickstarts.


Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/build.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/build.xml	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/build.xml	2007-11-26 04:42:02 UTC (rev 16800)
@@ -82,6 +82,11 @@
 		<start-server serverHome="${org.jboss.esb.server.home}"
 			serverConfig="${org.jboss.esb.test.server.config}"/>
 		<wait-on-server/>
+                <copy todir="${org.jboss.esb.server.home}/server/${org.jboss.esb.test.server.config}/deploy/jbossws.sar">
+                        <fileset dir="${product.dir}/lib/ext">
+                                <include name="jboss-jaxb-intros.jar"/>
+                        </fileset>
+                </copy>
 	</target>
 	
 	<target name="stop-server" depends="esb.init">

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	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/build.xml	2007-11-26 04:42:02 UTC (rev 16800)
@@ -55,6 +55,9 @@
    </path>
 
    <path id="qa.quickstarts.cp">
+      <fileset dir="${product.dir}/services/jbossesb/build">
+    	 <include name="**/*.jar"/> 
+      </fileset>
       <!-- include qs specific jars -->
       <fileset dir="${org.jboss.esb.test.quickstarts.dir}">
          <include name="bpm_orchestration1/lib/**/*.jar"/>
@@ -68,6 +71,9 @@
          <include name="recipient_list/lib/**/*.jar"/>
          <include name="scripting_groovy/lib/**/*.jar"/>
          <include name="simple_cbr/lib/**/*.jar"/>
+	 <include name="spring_aop/lib/**/*.jar"/>
+	 <include name="spring_helloworld/lib/**/*.jar"/>
+	 <include name="spring_jpetstore/lib/**/*.jar"/>
          <include name="static_router/lib/**/*.jar"/>
          <include name="transform_CSV2XML/lib/**/*.jar"/>
          <include name="transform_EDI2XML_Groovy_XSLT/lib/**/*.jar"/>
@@ -80,22 +86,40 @@
       <!-- include qs specific classes -->
       <dirset dir="${org.jboss.esb.test.quickstarts.dir}">
          <include name="bpm_orchestration1/build/classes"/>
+	 <include name="bpm_orchestration2/build/classes"/>
+	 <include name="bpm_orchestration3/build/classes"/>
+	 <include name="business_rules_service/build/classes"/>
+	 <include name="deadletter/build/classes"/>
          <include name="dynamic_router/build/classes"/>
-         <include name="fun_cbr/build/classes"/>
+	 <include name="exceptions_faults/build/classes"/>
+  	 <include name="fun_cbr/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_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="recipient_list/build/classes"/>
-         <include name="scripting_groovy/build/classes"/>
+	 <include name="scheduled_services/build/classes"/>
+	 <include name="scripting_groovy/build/classes"/>
          <include name="simple_cbr/build/classes"/>
+	 <include name="spring_aop/build/classes"/>
+	 <include name="spring_helloworld/build/classes"/>
+	 <include name="spring_jpetstore/build/classes"/>
          <include name="static_router/build/classes"/>
          <include name="transform_CSV2XML/build/classes"/>
          <include name="transform_EDI2XML_Groovy_XSLT/build/classes"/>
          <include name="transform_XML2POJO/build/classes"/>
          <include name="transform_XML2XML_date_manipulation/build/classes"/>
          <include name="transform_XML2XML_simple/build/classes"/>
+	 <include name="webservice_consumer1/build/classes"/>
+	 <include name="webservice_consumer2/build/classes"/>
+	 <include name="webservice_producer/build/classes"/>
          <include name="wiretap/build/classes"/>
       </dirset>
    	
@@ -161,16 +185,29 @@
 
    <target name="clean-esb" if="quickstarts.exist">
       <exec-quickstart quickstart="bpm_orchestration1" target="clean"/>
+      <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="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="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="load_generator" target="clean"/>
+      <exec-quickstart quickstart="messagefilter" target="clean"/>
+      <exec-quickstart quickstart="messagestore" target="clean"/>
       <exec-quickstart quickstart="recipient_list" target="clean"/>
+      <exec-quickstart quickstart="scheduled_services" target="clean"/>
       <exec-quickstart quickstart="scripting_groovy" target="clean"/>
       <exec-quickstart quickstart="simple_cbr" target="clean"/>
+      <exec-quickstart quickstart="spring_aop" target="clean"/>
+      <exec-quickstart quickstart="spring_helloworld" target="clean"/>
+      <exec-quickstart quickstart="spring_jpetstore" target="clean"/>
       <exec-quickstart quickstart="static_router" target="clean"/>
       <exec-quickstart quickstart="transform_CSV2XML" target="clean"/>
       <exec-quickstart quickstart="transform_EDI2XML_Groovy_XSLT" target="clean"/>
@@ -178,48 +215,88 @@
       <exec-quickstart quickstart="transform_XML2XML_date_manipulation" target="clean"/>
       <exec-quickstart quickstart="transform_XML2XML_simple" target="clean"/>
       <exec-quickstart quickstart="wiretap" target="clean"/>
+      <exec-quickstart quickstart="webservice_consumer1" target="clean"/>
+      <exec-quickstart quickstart="webservice_consumer2" target="clean"/>
+      <exec-quickstart quickstart="webservice_producer" target="clean"/>
    </target>
 
    <target name="compile-esb">
       <echo>Compile ESB Packages</echo>
       <exec-quickstart quickstart="bpm_orchestration1" target="prepare-deployment"/>
+      <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="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="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_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="recipient_list" target="prepare-deployment"/>
+      <exec-quickstart quickstart="scheduled_services" target="prepare-deployment"/>
       <exec-quickstart quickstart="scripting_groovy" target="prepare-deployment"/>
       <exec-quickstart quickstart="simple_cbr" target="prepare-deployment"/>
+      <exec-quickstart quickstart="spring_aop" target="prepare-deployment"/>
+      <exec-quickstart quickstart="spring_helloworld" target="prepare-deployment"/>
+      <exec-quickstart quickstart="spring_jpetstore" target="prepare-deployment"/>
       <exec-quickstart quickstart="static_router" target="prepare-deployment"/>
       <exec-quickstart quickstart="transform_CSV2XML" target="prepare-deployment"/>
       <exec-quickstart quickstart="transform_EDI2XML_Groovy_XSLT" target="prepare-deployment"/>
       <exec-quickstart quickstart="transform_XML2POJO" target="prepare-deployment"/>
       <exec-quickstart quickstart="transform_XML2XML_date_manipulation" target="prepare-deployment"/>
       <exec-quickstart quickstart="transform_XML2XML_simple" target="prepare-deployment"/>
+      <exec-quickstart quickstart="webservice_consumer1" target="prepare-deployment"/>
+      <exec-quickstart quickstart="webservice_consumer2" target="prepare-deployment"/>
+      <exec-quickstart quickstart="webservice_producer" target="prepare-deployment"/>
       <exec-quickstart quickstart="wiretap" 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="deadletter/build/*.esb"/>
             <include name="dynamic_router/build/*.esb"/>
+	    <include name="exceptions_faults/build/*.esb"/>
             <include name="fun_cbr/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_topic/build/*.esb"/>
+	    <include name="load_generator/build/*.esb"/>
+	    <include name="messagefilter/build/*.esb"/>
+	    <include name="messagestore/build/*.esb"/>
             <include name="recipient_list/build/*.esb"/>
             <include name="scripting_groovy/build/*.esb"/>
+	    <include name="scheduled_services/build/*.esb"/>
             <include name="simple_cbr/build/*.esb"/>
+	    <include name="spring_aop/build/*.esb"/>
+            <include name="spring_helloworld/build/*.esb"/>
+            <include name="spring_jpetstore/build/*.esb"/>
             <include name="static_router/build/*.esb"/>
             <include name="transform_CSV2XML/build/*.esb"/>
             <include name="transform_EDI2XML_Groovy_XSLT/build/*.esb"/>
             <include name="transform_XML2POJO/build/*.esb"/>
             <include name="transform_XML2XML_date_manipulation/build/*.esb"/>
             <include name="transform_XML2XML_simple/build/*.esb"/>
+	    <include name="webservice_consumer1/build/*.esb"/>
+	    <include name="webservice_consumer2/build/*.esb"/>
+  	    <include name="webservice_producer/build/*.esb"/>
             <include name="wiretap/build/*.esb"/>
          </fileset>
       </copy>
@@ -261,16 +338,30 @@
             <fileset dir="${qa.quickstarts.src}">
                <include name="**/${tests.filter}Test.java"/>
                <exclude name="${tests.exclude}"/>
+	       <!-- SpringJPetStore requires additional configuration 
+			files and hsqldb.     The QS needs some work before
+			the CI test can run. -->
+	       <exclude name="**/SpringJPetStoreTest.java"/>
                <exclude name="**/HelloWorldSQLActionTest.java"/>
                <exclude name="**/RecipientlistTest.java"/>
-               <exclude name="**/FunCBRTest.java"/>
-               <exclude name="**/BPMOrchestrationTest.java"/>
-               <exclude name="**/SimpleCBRTest.java"/>
+	       <exclude name="**/ExceptionsFaultsTest.java"/>
                <exclude name="**/DynamicRouterTest.java"/>
+	       <!-- The Groovy Gateway test requires testing UI -->
+	       <exclude name="**/GroovyGatewayTest.java"/>
+	       <exclude name="**/LoadGeneratorTest.java"/>
                <exclude name="**/StaticRouterTest.java"/>
                <exclude name="**/WebserviceAdapterTest.java"/>
                <exclude name="**/HelloWorldDBRegistrationTest.java"/>
                <exclude name="**/WebserviceBPELTest.java"/>
+		<!-- The WebService quickstarts require jbossws, which
+			requires jars that are not installed with 
+			esb-server (jboss-client.jar for example) -->
+	       <exclude name="**/WebServiceConsumer1Test.java"/>
+	       <exclude name="**/WebServiceConsumer2Test.java"/>
+	       <exclude name="**/WebServiceProducerTest.java"/>
+	       <exclude name="**/WebServiceMTOMTest.java"/>
+	       <exclude name="**/WebServiceWSAddressingTest.java"/>
+	       <exclude name="**/WebServiceWSSecurityTest.java"/>
             </fileset>
          </batchtest>
          <classpath>
@@ -291,8 +382,10 @@
                       value="${org.jboss.soa.esb.paramsRepository.file.root}"/>
 
          <!-- Sys Props from the test.properties file... -->
+	<!--
          <sysproperty key="org.jboss.soa.esb.jndi.server.type" value="${org.jboss.soa.esb.jndi.server.type}"/>
          <sysproperty key="org.jboss.soa.esb.jndi.server.url" value="${org.jboss.soa.esb.jndi.server.url}"/>
+	-->
 
          <!-- Sys Props from the deployment.properties file... -->
          <sysproperty key="org.jboss.esb.test.ftp.hostname" value="${org.jboss.esb.test.ftp.hostname}"/>

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BPMOrchestration1Test.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BPMOrchestration1Test.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BPMOrchestration1Test.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,84 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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-2007,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.quickstart.test;
+
+import java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.samples.quickstarts.bpm_orchestration1.test.SendTestMessage;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the bpmorchestration1 test.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class BPMOrchestration1Test extends JBossTestCase {
+	private static final String DEPLOY_MESSAGE = "Go Deploy It";
+	private static final String START_MESSAGE = "Start It Up";
+	
+	private static final String FILE_NAME = "BPMOrchestration1Test.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	public BPMOrchestration1Test(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+        final File logFile = new File(LOG_FILE) ;
+        if (logFile.exists())
+        {
+            assertTrue("Deleting logfile", logFile.delete()) ;
+        }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+
+		Hashtable<String, String> theTable = Helpers.getFileActionMessageString(LOG_FILE);
+		String deployMessage = (String) theTable.get("Message1");
+		String startMessage = (String) theTable.get("Message2");
+		assertEquals("The strings should match", DEPLOY_MESSAGE, deployMessage);
+		assertEquals("The strings should match", START_MESSAGE, startMessage);
+	}
+
+	public void sendMessage() throws Exception {
+		SendTestMessage sm = new SendTestMessage();
+		sm.sendMessage(Helpers.getQuickstartLocation("bpm_orchestration1/build/inputdir"), ".deployProcessGW", DEPLOY_MESSAGE);
+		Thread.sleep(4000);
+		SendTestMessage stm = new SendTestMessage();
+		stm.sendMessage(Helpers.getQuickstartLocation("bpm_orchestration1/build/inputdir"), ".startProcessGW", START_MESSAGE);
+		Thread.sleep(4000);
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(BPMOrchestration1Test.class, "Quickstart_bpm_orchestration1.esb");
+	}
+}

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BPMOrchestration2Test.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BPMOrchestration2Test.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BPMOrchestration2Test.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,92 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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-2007,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.quickstart.test;
+
+import java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.test.SendJMSMessageDeploy;
+import org.jboss.soa.esb.samples.quickstarts.bpm_orchestration2.test.SendJMSMessageStart;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the bpmorchestration3 test.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class BPMOrchestration2Test extends JBossTestCase {
+	private static final String JMS_MESSAGE = "Getting Started 'Receive Order'  'Credit Check'  "
+		+ "'Validate Order'  'Inventory Check'  'Los Angeles'  'Atlanta'  'Dallas' ";
+
+	private static final String FILE_NAME = "BPMOrchestration2Test.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	private static final String DEPLOY_DEF_MESSAGE = "Hello World: Deploy the process def";
+	private static final String GETTING_STARTED_MESSAGE = "Getting Started";
+	
+	public BPMOrchestration2Test(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+	    final File logFile = new File(LOG_FILE) ;
+	    if (logFile.exists())
+	    {
+	    	assertTrue("Deleting logfile", logFile.delete()) ;
+	    }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+		
+		Hashtable<String, String> theTable = Helpers.getFileActionMessageString(LOG_FILE);
+		String deployMessage = (String) theTable.get("Message1");
+		String startedMessage = (String) theTable.get("Message2");
+		assertEquals("The strings should match", DEPLOY_DEF_MESSAGE, deployMessage);
+		assertEquals("The strings should match", GETTING_STARTED_MESSAGE, startedMessage);
+	}
+
+	public void sendMessage() throws Exception {
+		SendJMSMessageDeploy sd = new SendJMSMessageDeploy();
+		sd.setupConnection();
+		sd.sendAMessage(DEPLOY_DEF_MESSAGE);
+		sd.stop();
+		Thread.sleep(4000);
+		SendJMSMessageStart sm = new SendJMSMessageStart();
+		sm.setupConnection();
+		sm.sendAMessage(GETTING_STARTED_MESSAGE);
+		sm.stop();
+		Thread.sleep(8000);
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(BPMOrchestration2Test.class, "Quickstart_bpm_orchestration2.esb");
+	}
+}

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BPMOrchestration3Test.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BPMOrchestration3Test.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BPMOrchestration3Test.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,92 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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-2007,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.quickstart.test;
+
+import java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.samples.quickstarts.bpm_orchestration3.test.SendJMSMessage;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the bpmorchestration3 test.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class BPMOrchestration3Test extends JBossTestCase {
+	private static final String JMS_MESSAGE = "Hello start";
+
+	private static final String FILE_NAME = "BPMOrchestration3Test.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	private static final String DEPLOY_MESSAGE = "Hello Deploy";
+	private static final String START_MESSAGE = "Hello start";
+	
+	public BPMOrchestration3Test(String name) {
+		super(name);
+	}
+	
+	public void testMessage() throws Exception {
+	        final File logFile = new File(LOG_FILE) ;
+	        if (logFile.exists())
+	        {
+	            assertTrue("Deleting logfile", logFile.delete()) ;
+	        }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+
+		Hashtable<String, String> theTable = Helpers.getFileActionMessageString(LOG_FILE);
+		String deployMessage = (String) theTable.get("Message1");
+		String startMessage = (String) theTable.get("Message2");
+		
+		assertEquals("The strings should match", DEPLOY_MESSAGE, deployMessage);
+		assertEquals("The strings should match", START_MESSAGE, startMessage);
+
+	}
+
+	public void sendMessage() throws Exception {
+		SendJMSMessage sdm = new SendJMSMessage();
+		sdm.setupConnection("queue/quickstart_bpm_orchestration3_deploy_Request_gw");
+		sdm.sendAMessage("Hello Deploy", null);
+		sdm.stop();
+		Thread.sleep(8000);
+		SendJMSMessage ssm = new SendJMSMessage();
+		ssm.setupConnection("queue/quickstart_bpm_orchestration3_start_Request_gw");
+		ssm.sendAMessage("Hello start", "${token}");
+		ssm.stop();
+		Thread.sleep(4000);
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(BPMOrchestration3Test.class, "Quickstart_bpm_orchestration3.esb");
+	}
+}

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BusinessRulesServiceTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BusinessRulesServiceTest.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/BusinessRulesServiceTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,92 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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-2007,
+ * @author JBoss Inc.
+ */
+package org.jboss.soa.esb.quickstart.test;
+
+import java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.samples.quickstart.businessrules.test.SendJMSMessage;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the businessrulesservice quickstart.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class BusinessRulesServiceTest extends JBossTestCase {
+	private static final String JMS_MESSAGE = "<Order netAmount=\"59.97\" orderDate=\"([^\"]+)\" "
+		+ "orderId=\"1\" statusCode=\"0\" "
+		+ "tax=\"4.95\" totalAmount=\"64.92\">	"
+		+ "<Customer firstName=\"Harry\" lastName=\"Fletcher\" state=\"SD\" userName=\"user1\">"
+		+ "</Customer>	<OrderLines>		<OrderLine position=\"1\" quantity=\"1\">([\\s]+)"
+		+ "<Product price=\"29.98\" productId=\"364\" title=\"The 40-Year-Old Virgin \"></Product>([\\s]+)"
+		+ "</OrderLine>([\\s]+)<OrderLine position=\"2\" quantity=\"1\">([\\s]+)"
+		+ "<Product price=\"29.99\" productId=\"299\" title=\"Pulp Fiction\"></Product>([\\s]+)"
+		+ "</OrderLine>[\\s]+</OrderLines></Order>.*";
+
+	private static final String FILE_NAME = "BusinessRulesServiceTest.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	public BusinessRulesServiceTest(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+		final File logFile = new File(LOG_FILE) ;
+	    if (logFile.exists())
+	    {
+	    	assertTrue("Deleting logfile", logFile.delete());
+	    }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+
+		Hashtable<String, String> theTable = Helpers.getFileActionMessageString(LOG_FILE);
+		String theMessage = (String) theTable.get("Message1");
+		assertTrue("String found [" + theMessage + "] should match pattern [" + JMS_MESSAGE + "]", 
+				theMessage.matches(JMS_MESSAGE));		
+	}
+
+	public void sendMessage() throws Exception {
+		SendJMSMessage sm = new SendJMSMessage();
+		sm.setupConnection();
+		String fileContent = sm.readAsciiFile(Helpers.getQuickstartLocation("business_rules_service/SampleOrder.xml"));
+		System.out.println("FILECONTENT [" + fileContent + "]");
+		sm.sendAMessage(fileContent) ;
+		sm.stop();
+		Thread.sleep(8000);
+
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(BusinessRulesServiceTest.class, "Quickstart_business_rules_service.esb");
+	}
+}

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/DeadLetterTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/DeadLetterTest.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/DeadLetterTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,116 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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-2007,
+ * @author JBoss Inc.
+ */
+
+package org.jboss.soa.esb.quickstart.test;
+
+import java.io.File;
+import java.io.RandomAccessFile;
+import java.util.Hashtable;
+import java.util.Map;
+import java.net.URI;
+import java.util.Date;
+import junit.framework.Test;
+import org.junit.Assert.*;
+import java.util.Properties;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.esb.samples.quickstart.deadletter.test.SendJMSMessage;
+import org.jboss.test.JBossTestCase;
+import org.jboss.soa.esb.services.persistence.MessageStore;
+import org.jboss.soa.esb.services.persistence.MessageStoreException;
+
+
+/**
+ * CI test for the DeadLetter quickstart.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class DeadLetterTest extends JBossTestCase {
+	private static final String JMS_MESSAGE = "DeadLetterTest message";
+
+	private static final String FILE_NAME = "DeadLetterTest.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	private static final int EXPECTED_RECORD_COUNT = 1;
+
+	public DeadLetterTest(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+		try {
+	        final File logFile = new File(LOG_FILE) ;
+	        if (logFile.exists())
+	        {
+	            assertTrue("Deleting logfile", logFile.delete()) ;
+
+	        }
+
+			/* Send the message to trigger the start of the test */
+			sendMessage();
+	        
+	        /* Verify that the message file is created */
+
+	        boolean fileExists = Helpers.checkForFile(LOG_FILE);
+
+	        if (!fileExists) {
+	        	fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+	        }
+
+	        /* Verify that the message file is complete */
+
+	        boolean fileComplete = Helpers.checkFileContent(LOG_FILE,
+				EXPECTED_RECORD_COUNT);
+
+	        if (!fileComplete) {
+	        	Hashtable<String, String> temp = Helpers.getMessageString(LOG_FILE);
+
+	        	fail("Event file " + LOG_FILE + " not complete - expected "
+					+ EXPECTED_RECORD_COUNT + " records - found " + temp.size()
+					+ ", test marked as failing");
+	        }
+
+	        Hashtable<String, String> theTable = Helpers.getMessageString(LOG_FILE);
+
+	        String theMessage = (String) theTable.get("Message1");
+		
+		} catch (Exception e) {
+			e.printStackTrace();
+		}
+
+	} /* method */
+
+	public void sendMessage() throws Exception {
+		SendJMSMessage sm = new SendJMSMessage();
+		sm.setupConnection();
+		sm.sendAMessage(JMS_MESSAGE + StoreMessageToFile.MESSAGE_CONTENT_FILENAME_START + FILE_NAME
+				+ StoreMessageToFile.MESSAGE_CONTENT_FILENAME_END) ;
+		sm.stop();
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(DeadLetterTest.class, "Quickstart_deadletter.esb");
+	}
+} /* class */

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/DynamicRouterTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/DynamicRouterTest.java	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/DynamicRouterTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -32,12 +32,10 @@
 import org.jboss.test.JBossTestCase;
 
 /**
- * Sample client for the jboss container.
+ * CI test for the dynamicouter QS.
  *
- * @author <a href="mailto:"></a>
- * @version $Id: $
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
  */
-
 public class DynamicRouterTest extends JBossTestCase
 {
 	private static final String JMS_MESSAGE = "DynamicRouterTest message";

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/ExceptionsFaultsTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/ExceptionsFaultsTest.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/ExceptionsFaultsTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,83 @@
+/*
+ * 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 java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.samples.quickstart.exceptions.test.SendJMSMessage;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the exceptionsfaults quickstart.
+ *
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ * @author <a href="mailto:ldimaggi at redhat.com">Len Dimaggio</a>
+ */
+public class ExceptionsFaultsTest extends JBossTestCase {
+	private static final String JMS_MESSAGE = "HelloWorldTest message";
+
+	private static final String FILE_NAME = "ExceptionsFaultsTest.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	public ExceptionsFaultsTest(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+		final File logFile = new File(LOG_FILE) ;
+	    if (logFile.exists())
+	    {
+	    	assertTrue("Deleting logfile", logFile.delete()) ;
+	    }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+
+		Hashtable<String, String> theTable = Helpers.getFileActionMessageString(LOG_FILE);
+		String theMessage = (String) theTable.get("Message1");
+		assertEquals("The strings should match", JMS_MESSAGE, theMessage);
+	}
+
+	public void sendMessage() throws Exception {
+		SendJMSMessage sm = new SendJMSMessage();
+		sm.setupConnection("queue/quickstart_exceptions_faults_GW");
+		sm.sendAMessage("ExceptionCaughtService", "Via Gateway");
+		sm.stop();
+		Thread.sleep(8000);
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(ExceptionsFaultsTest.class, "Quickstart_exceptions_faults.esb");
+	}
+}

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/FunCBRTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/FunCBRTest.java	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/FunCBRTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -22,36 +22,89 @@
 package org.jboss.soa.esb.quickstart.test;
 
 import junit.framework.Test;
+import java.io.File;
+import java.util.Hashtable;
 
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.samples.quickstart.funcbr.test.SendJMSMessage;
 import org.jboss.test.JBossTestCase;
 
 
 /**
- * Sample client for the jboss container.
+ * CI test for the funcbr quickstart.
  *
  * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ * @author <a href="mailto:ldimaggi at redhat.com">Len Dimaggio</a>
  */
+public class FunCBRTest
+        extends JBossTestCase {
 
-public class FunCBRTest
-        extends JBossTestCase
-{
-	public FunCBRTest(String name)
-	{
+	private static final String JMS_MESSAGE = "FunCBRTest message";
+	
+	private static final String FILE_NAME = "FunCBRTest.log";
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+	private static final int EXPECTED_RECORD_COUNT = 1;
+
+	/* Need to handle situation unique to this test's use of XML in message */
+	// private static String LOCAL_END_TAG = Helpers.END_TAG.trim();
+	private static String TEST_STRING = JMS_MESSAGE
+			+ StoreMessageToFile.MESSAGE_CONTENT_FILENAME_START + FILE_NAME
+			+ StoreMessageToFile.MESSAGE_CONTENT_FILENAME_END;
+	private static String theXML = "<Order orderId=\"1\" "
+			+ "orderDate=\"Wed Nov 15 13:45:28 EST 2006\" "
+			+ "statusCode=\"0\"  " + "netAmount=\"59.97\" "
+			+ "totalAmount=\"64.92\" " + "tax=\"4.95\" " + "junk=\""
+			+ TEST_STRING + " \"></Order>\n";
+	private static String returnedXML = theXML.substring(0, theXML
+			.indexOf(StoreMessageToFile.MESSAGE_CONTENT_FILENAME_START))
+			+ " \"></Order>";
+
+	public FunCBRTest(String name) {
 		super(name);
-	}
+	} /* method */
 
-	public void testMessage() throws Exception
-	{
+	public void testMessage() throws Exception {
+        final File logFile = new File(LOG_FILE) ;
+        if (logFile.exists())
+        { 
+        	assertTrue("Deleting logfile", logFile.delete()) ;
+        }
+		
 		sendMessage();
-		Thread.sleep(10000); // wait for message to post.
-	}
 
-	public void sendMessage() throws Exception
-	{
-	}
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
 
-   public static Test suite() throws Exception
-   {
+		/* Verify that the message file is complete */
+		boolean fileComplete = Helpers.checkFileContent(LOG_FILE,
+				EXPECTED_RECORD_COUNT);
+		if (!fileComplete) {
+			Hashtable<String,String> temp = Helpers.getMessageString(LOG_FILE);
+			File target = new File(LOG_FILE);
+			fail("Event file " + LOG_FILE + " not complete - expected "
+					+ EXPECTED_RECORD_COUNT + " records - found " + temp.size()
+					+ ", test marked as failing");
+		}
+
+		Hashtable<String,String> theTable = Helpers.getMessageString(LOG_FILE);
+		String theMessage = (String) theTable.get("Message1");
+		assertEquals("The strings should match", theMessage, returnedXML);		
+	} /* method */
+
+	public void sendMessage() throws Exception {
+		SendJMSMessage sm = new SendJMSMessage();
+		sm.setupConnection();
+		sm.sendAMessage(theXML);
+		sm.stop();
+	} /* method */
+
+   public static Test suite() throws Exception {
       return getDeploySetup(FunCBRTest.class, "Quickstart_fun_cbr.esb");
-   }
-}
+   } /* method */
+   
+} /* class */

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldActionTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldActionTest.java	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldActionTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -31,11 +31,9 @@
 import org.jboss.test.JBossTestCase;
 
 /**
- * Sample client for the jboss container.
+ * CI test for the helloworldaction quickstart.
  * 
- * @author <a href="mailto:bill at burkecentral.com">Bill Burke</a>
- * @version $Id: BlobUnitTestCase.java 58110 2006-11-04 08:34:21Z
- *          scott.stark at jboss.org $
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
  */
 
 public class HelloWorldActionTest extends JBossTestCase {
@@ -68,17 +66,10 @@
 		/* Verify that the message file is complete */
 		boolean fileComplete = Helpers.checkFileContent(LOG_FILE,
 				EXPECTED_RECORD_COUNT);
-		if (!fileComplete) {
-			Hashtable<String, String> temp = Helpers.getMessageString(LOG_FILE);
-			fail("Event file " + LOG_FILE + " not complete - expected "
-					+ EXPECTED_RECORD_COUNT + " records - found " + temp.size()
-					+ ", test marked as failing");
-		}
 
 		Hashtable<String, String> theTable = Helpers.getMessageString(LOG_FILE);
 		String theMessage = (String) theTable.get("Message1");
 		assertEquals("The strings should match", RESPONSE_MESSAGE, theMessage);
-                assertTrue("Deleting logfile", logFile.delete()) ;
 	}
 
 	public void sendMessage() throws Exception {

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldDBRegistrationTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldDBRegistrationTest.java	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldDBRegistrationTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -31,13 +31,10 @@
 import org.jboss.test.JBossTestCase;
 
 /**
- * Sample client for the jboss container.
+ * CI test for the helloworlddbregistration quickstart.
  * 
- * @author <a href="mailto:bill at burkecentral.com">Bill Burke</a>
- * @version $Id: BlobUnitTestCase.java 58110 2006-11-04 08:34:21Z
- *          scott.stark at jboss.org $
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
  */
-
 public class HelloWorldDBRegistrationTest extends JBossTestCase {
 	private static final String JMS_MESSAGE = "HelloWorldDBRegistrationTest message";
 	private static final String FILE_NAME = "HelloWorldDBRegistrationTest.log";

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldFileActionTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldFileActionTest.java	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldFileActionTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -32,11 +32,10 @@
 import org.jboss.test.JBossTestCase;
 
 /**
- * Sample client for the jboss container.
+ * CI test for the helloworldfileaction quickstart.
  *
  * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
  */
-
 public class HelloWorldFileActionTest
         extends JBossTestCase {
         

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldFileNotifierTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldFileNotifierTest.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldFileNotifierTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,110 @@
+/*
+ * 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 java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.samples.quickstart.helloworldfilenotifier.test.SendJMSMessage;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the helloworldfilenotifier quickstart.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class HelloWorldFileNotifierTest extends JBossTestCase {
+	private static final String JMS_MESSAGE = "HelloWorldFileNotifierTest message";
+	private static final String FILE_NAME = "HelloWorldFileNotifierTest.log";
+	private static final String RESULTS_FILE = "results.log";	    
+	private static final String QUICKSTART_NAME = "helloworld_file_notifier";
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME) + FILE_NAME;
+	private static final int EXPECTED_RECORD_COUNT = 1;
+
+	public HelloWorldFileNotifierTest(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+		String quickstartDir = System.getProperty("org.jboss.esb.test.quickstarts.dir");
+		sendMessage();
+
+		String fileName = quickstartDir + File.separator + QUICKSTART_NAME 
+			+ File.separator + RESULTS_FILE;
+		/* Verify that the results file is created */
+		File tempFile = new File(fileName);
+		boolean fileExists = tempFile.exists();
+		if (!fileExists) {
+			fail("File " + RESULTS_FILE
+					+ " not created - test marked as failing");
+		}
+		
+		/* Verify results file contents */
+		boolean fileComplete = Helpers.checkFileContent(fileName,
+				EXPECTED_RECORD_COUNT);
+		if (!fileComplete) {
+			Hashtable<String,String> temp = Helpers.getMessageString(fileName);
+			File target = new File(RESULTS_FILE);
+			//target.delete();
+			fail("Results file " + RESULTS_FILE + " not complete - expected "
+					+ EXPECTED_RECORD_COUNT + " records - found " + temp.size()
+					+ ", test marked as failing");
+		}
+
+		Hashtable <String,String>theTable = Helpers.getMessageString(fileName);
+		String theMessage = (String) theTable.get("Message1");
+		assertEquals("The strings should match", theMessage, JMS_MESSAGE);
+		File target = new File(RESULTS_FILE);
+
+		/* Verify that the message file is complete */
+		
+		fileComplete = Helpers.checkFileContent(fileName,
+				EXPECTED_RECORD_COUNT);
+		if (!fileComplete) {
+			Hashtable<String,String> temp = Helpers.getMessageString(fileName);
+			target = new File(fileName);
+			fail("Event file " + fileName + " not complete - expected "
+					+ EXPECTED_RECORD_COUNT + " records - found " + temp.size()
+					+ ", test marked as failing");
+		}
+
+		theTable = Helpers.getMessageString(fileName);
+		theMessage = (String) theTable.get("Message1");
+		assertEquals("The strings should match", theMessage, JMS_MESSAGE);
+		target = new File(fileName);
+	}
+
+	public void sendMessage() throws Exception {
+		SendJMSMessage sm = new SendJMSMessage();
+		sm.setupConnection();
+		sm.sendAMessage(JMS_MESSAGE + StoreMessageToFile.MESSAGE_CONTENT_FILENAME_START + FILE_NAME
+				+ StoreMessageToFile.MESSAGE_CONTENT_FILENAME_END);
+		sm.stop();
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(HelloWorldFileNotifierTest.class, "Quickstart_helloworld_file_notifier.esb");
+	}
+}

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldSQLActionTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldSQLActionTest.java	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldSQLActionTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -30,7 +30,7 @@
 import java.util.Vector;
 
 /**
- * Sample client for the jboss container.
+ * CI test for the helloworldsqlaction quickstart.
  * 
  * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
  */

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldTest.java	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/HelloWorldTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -31,13 +31,10 @@
 import org.jboss.test.JBossTestCase;
 
 /**
- * Sample client for the jboss container.
+ * CI test for the helloworld quickstart.
  * 
- * @author <a href="mailto:bill at burkecentral.com">Bill Burke</a>
- * @version $Id: BlobUnitTestCase.java 58110 2006-11-04 08:34:21Z
- *          scott.stark at jboss.org $
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
  */
-
 public class HelloWorldTest extends JBossTestCase {
 	private static final String JMS_MESSAGE = "HelloWorldTest message";
 

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/JMSTopicTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/JMSTopicTest.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/JMSTopicTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,91 @@
+/*
+ * 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 java.io.File;
+import java.util.ArrayList;
+import java.util.Hashtable;
+import java.util.Properties;
+
+import javax.naming.Context;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.helpers.KeyValuePair;
+import org.jboss.soa.esb.samples.quickstart.jmstopic.SendJMSMessage;
+import org.jboss.test.JBossTestCase;
+import org.jboss.soa.esb.testutils.JMSUtil;
+
+/**
+ * CI test for the jmstopic quickstart.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class JMSTopicTest extends JBossTestCase {
+	private static final String JMS_MESSAGE = "JMSTopic message";
+
+	private static final String FILE_NAME = "JMSTopicTest.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	private static final int EXPECTED_RECORD_COUNT = 1;
+
+	public JMSTopicTest(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+	        final File logFile = new File(LOG_FILE) ;
+	        if (logFile.exists())
+	        {
+	            assertTrue("Deleting logfile", logFile.delete()) ;
+	        }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+
+		Hashtable<String, String> theTable = Helpers.getFileActionMessageString(LOG_FILE);
+		String firstMessage = (String) theTable.get("Message1");
+		String secondMessage = (String) theTable.get("Message2");
+		assertEquals("The strings should match", JMS_MESSAGE, firstMessage);
+		assertEquals("The strings should match", JMS_MESSAGE, secondMessage);
+	}
+
+	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(JMSTopicTest.class, "Quickstart_jms_topic.esb");
+	}
+}

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/LoadGeneratorTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/LoadGeneratorTest.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/LoadGeneratorTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,95 @@
+/*
+ * 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 java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the loadgenerator quickstart.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class LoadGeneratorTest extends JBossTestCase {
+	private static final String JMS_MESSAGE = "HelloWorldTest message";
+
+	private static final String FILE_NAME = "HelloWorldTest.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	private static final int EXPECTED_RECORD_COUNT = 1;
+
+	public LoadGeneratorTest(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+	        final File logFile = new File(LOG_FILE) ;
+	        if (logFile.exists())
+	        {
+	            assertTrue("Deleting logfile", logFile.delete()) ;
+	        }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+
+		/* Verify that the message file is complete */
+		boolean fileComplete = Helpers.checkFileContent(LOG_FILE,
+				EXPECTED_RECORD_COUNT);
+		if (!fileComplete) {
+			Hashtable<String, String> temp = Helpers.getMessageString(LOG_FILE);
+			fail("Event file " + LOG_FILE + " not complete - expected "
+					+ EXPECTED_RECORD_COUNT + " records - found " + temp.size()
+					+ ", test marked as failing");
+		}
+
+		Hashtable<String, String> theTable = Helpers.getMessageString(LOG_FILE);
+		String theMessage = (String) theTable.get("Message1");
+		assertEquals("The strings should match", JMS_MESSAGE, theMessage);
+                assertTrue("Deleting logfile", logFile.delete()) ;
+	}
+
+	public void sendMessage() throws Exception {
+		// The groovy classes below need to be compiled intot the esb
+		
+		//JMSLoadAgent jmsla = new JMSLoadAgent("load_generator_classes/load.xml");
+		//jmsla.generateLoad();
+        //LoadReport reporter = new LoadReport("load_generator_classes/load.xml");
+        //reporter.generateMetrics();
+
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(LoadGeneratorTest.class, "Quickstart_load_generator.esb");
+	}
+}

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/MessageFilterTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/MessageFilterTest.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/MessageFilterTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,87 @@
+/*
+ * 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 java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.samples.quickstart.messagefilter.Order;
+import org.jboss.soa.esb.samples.quickstart.messagefilter.test.SendJMSMessage;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the messagefilter quickstart.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class MessageFilterTest extends JBossTestCase {
+	private static final String JMS_MESSAGE = "10";
+	private static final String RESULT_PATTERN = "org.jboss.soa.esb.samples.quickstart.messagefilter.Order.*";
+	private static final String FILE_NAME = "MessageFilterTest.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	public MessageFilterTest(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+	        final File logFile = new File(LOG_FILE) ;
+	        if (logFile.exists())
+	        {
+	            assertTrue("Deleting logfile", logFile.delete()) ;
+	        }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+
+	
+		Hashtable<String, String> theTable = Helpers.getFileActionMessageString(LOG_FILE);
+		String theMessage = (String) theTable.get("Message1");
+		if (!theMessage.matches(RESULT_PATTERN)) {
+			fail("The result [" + theMessage + "] should match pattern" + RESULT_PATTERN);
+		}
+	}
+
+	public void sendMessage() throws Exception {
+        Order order = new Order();
+        order.setQuantity(Integer.valueOf(JMS_MESSAGE));
+		SendJMSMessage sm = new SendJMSMessage();
+		sm.setupConnection();
+		sm.sendAMessage(order);
+		sm.stop();
+		Thread.sleep(4000);
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(MessageFilterTest.class, "Quickstart_messagefilter.esb");
+	}
+}

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/MessageStoreTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/MessageStoreTest.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/MessageStoreTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,84 @@
+/*
+ * 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 java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.samples.quickstart.messagestore.test.SendJMSMessage;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the messagestore quickstart.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class MessageStoreTest extends JBossTestCase {
+	private static final String JMS_MESSAGE = "MessageStoreTest message";
+
+	private static final String FILE_NAME = "MessageStoreTest.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	private static final int EXPECTED_RECORD_COUNT = 1;
+
+	public MessageStoreTest(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+	        final File logFile = new File(LOG_FILE) ;
+	        if (logFile.exists())
+	        {
+	            assertTrue("Deleting logfile", logFile.delete()) ;
+	        }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+
+		Hashtable<String, String> theTable = Helpers.getFileActionMessageString(LOG_FILE);
+		String theMessage = (String) theTable.get("Message1");
+		assertEquals("The strings should match", JMS_MESSAGE, theMessage);
+                assertTrue("Deleting logfile", logFile.delete()) ;
+	}
+
+	public void sendMessage() throws Exception {
+		SendJMSMessage sm = new SendJMSMessage();
+		sm.setupConnection();
+		sm.sendAMessage(JMS_MESSAGE);
+		sm.stop();
+		Thread.sleep(4000);
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(MessageStoreTest.class, "Quickstart_messagestore.esb");
+	}
+}

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/RecipientlistTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/RecipientlistTest.java	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/RecipientlistTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -32,12 +32,10 @@
 import org.jboss.test.JBossTestCase;
 
 /**
- * Sample client for the jboss container.
+ * CI test for the recipientlist quickstart.
  * 
- * @author <a href="mailto:"></a>
- * @version $Id: $
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
  */
-
 public class RecipientlistTest extends JBossTestCase {
 	private static final String JMS_MESSAGE = "RecipientlistTest message";
 	private static final String FILE_NAME = "RecipientlistTest.log";

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/ScheduledServicesTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/ScheduledServicesTest.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/ScheduledServicesTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,82 @@
+/*
+ * 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 java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.samples.quickstart.scheduler.test.SendEsbMessage;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the scheduledservices quickstart.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class ScheduledServicesTest extends JBossTestCase {
+	private static final String RESULT = "Hello Scheduled World .*";
+
+	private static final String FILE_NAME = "ScheduledServices.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	private static final int EXPECTED_RECORD_COUNT = 1;
+
+	public ScheduledServicesTest(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+	        final File logFile = new File(LOG_FILE) ;
+	        if (logFile.exists())
+	        {
+	            assertTrue("Deleting logfile", logFile.delete()) ;
+	        }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+
+		Hashtable<String, String> theTable = Helpers.getFileActionMessageString(LOG_FILE);
+		String theMessage = (String) theTable.get("Message1");
+		if (!theMessage.matches(RESULT)) {
+			fail("The result [" + theMessage + "] did not match the expected pattern ["
+					+ FILE_NAME + "]");
+		}
+	}
+
+	public void sendMessage() throws Exception {
+		Thread.sleep(4000);
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(ScheduledServicesTest.class, "Quickstart_scheduled_services.esb");
+	}
+}

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/ScriptingGroovyTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/ScriptingGroovyTest.java	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/ScriptingGroovyTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -31,11 +31,10 @@
 
 
 /**
- * Sample client for the jboss container.
+ * CI test for the scriptinggroovy quickstart.
  *
  * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
  */
-
 public class ScriptingGroovyTest
         extends JBossTestCase {
     private static final String JMS_MESSAGE = "ScriptingGroovyTest message";

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SimpleCBRTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SimpleCBRTest.java	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SimpleCBRTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -23,34 +23,92 @@
 
 import junit.framework.Test;
 
+import java.io.File;
+import java.util.Hashtable;
+import junit.framework.Test;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.samples.quickstart.simplecbr.test.SendJMSMessage;
 import org.jboss.test.JBossTestCase;
 
 
 /**
- * Sample client for the jboss container.
+ * CI test for the simplecbr quickstart.
  *
  * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ * @author <a href="mailto:ldimaggi at redhat.com">Len Dimaggio</a>
  */
 public class SimpleCBRTest
-        extends JBossTestCase
-{
-	public SimpleCBRTest(String name)
-	{
+        extends JBossTestCase {
+
+	private static final String JMS_MESSAGE = "SimpleCBRTest message";
+	private static final String FILE_NAME = "SimpleCBRTest.log";
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+	private static final int EXPECTED_RECORD_COUNT = 1;
+
+	/* Need to handle situation unique to this test's use of XML in message */
+	// private static String LOCAL_END_TAG = Helpers.END_TAG.trim();
+	private static String TEST_STRING = JMS_MESSAGE
+			+ StoreMessageToFile.MESSAGE_CONTENT_FILENAME_START + FILE_NAME
+			+ StoreMessageToFile.MESSAGE_CONTENT_FILENAME_END;
+	private static String theXML = "<Order orderId=\"1\" "
+			+ "orderDate=\"Wed Nov 15 13:45:28 EST 2006\" "
+			+ "statusCode=\"0\"  " + "netAmount=\"59.97\" "
+			+ "totalAmount=\"64.92\" " + "tax=\"4.95\" " + "junk=\""
+			+ TEST_STRING + " \"></Order>\n";
+	private static String returnedXML = theXML.substring(0, theXML
+			.indexOf(StoreMessageToFile.MESSAGE_CONTENT_FILENAME_START))
+			+ " \"></Order>";
+
+	public SimpleCBRTest(String name) {
 		super(name);
-	}
+	} /* method */
 
-	public void testMessage() throws Exception
-	{
+	public void testMessage() throws Exception {
+        final File logFile = new File(LOG_FILE) ;
+        if (logFile.exists())
+        { 
+        	assertTrue("Deleting logfile", logFile.delete()) ;
+        }
+        
 		sendMessage();
-		Thread.sleep(10000); // wait for message to post.
-	}
 
-	public void sendMessage() throws Exception
-	{
-	}
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
 
-   public static Test suite() throws Exception
-   {
-      return getDeploySetup(SimpleCBRTest.class, "Quickstart_simple_cbr.esb");
-   }
-}
+		/* Verify that the message file is complete */
+		boolean fileComplete = Helpers.checkFileContent(LOG_FILE,
+				EXPECTED_RECORD_COUNT);
+		if (!fileComplete) {
+			Hashtable<String,String> temp = Helpers.getMessageString(LOG_FILE);
+			File target = new File(LOG_FILE);
+			target.delete();
+			fail("Event file " + LOG_FILE + " not complete - expected "
+					+ EXPECTED_RECORD_COUNT + " records - found " + temp.size()
+					+ ", test marked as failing");
+		}
+
+		Hashtable<String,String> theTable = Helpers.getMessageString(LOG_FILE);
+		String theMessage = (String) theTable.get("Message1");
+		assertEquals("The strings should match", theMessage, returnedXML);
+		File target = new File(LOG_FILE);
+		target.delete();
+	} /* method */
+
+	public void sendMessage() throws Exception {
+		SendJMSMessage sm = new SendJMSMessage();
+		sm.setupConnection();
+		sm.sendAMessage(theXML);
+		sm.stop();
+	} /* method */
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(SimpleCBRTest.class, "Quickstart_simple_cbr.esb");
+	} /* method */
+
+} /* class */

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SpringAOPTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SpringAOPTest.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SpringAOPTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,87 @@
+/*
+ * 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 java.io.File;
+import java.util.Enumeration;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.samples.quickstart.spring_aop.test.SendJMSMessage;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the springAOP quickstart.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+
+public class SpringAOPTest extends JBossTestCase {
+	private static final String JMS_MESSAGE = "SpringAOPTest message";
+	private static final String RESULT_MESSAGE = "I used AOP to change the greeting! JMS has got nothin on me!";
+
+	private static final String FILE_NAME = "SpringAOPTest.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	private static final int EXPECTED_RECORD_COUNT = 1;
+
+	public SpringAOPTest(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+	        final File logFile = new File(LOG_FILE) ;
+	        if (logFile.exists())
+	        {
+	            assertTrue("Deleting logfile", logFile.delete()) ;
+	        }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+
+		Hashtable<String, String> theTable = Helpers.getFileActionMessageString(LOG_FILE);
+		String theMessage = (String) theTable.get("Message1");
+		assertEquals("The strings should match", RESULT_MESSAGE, theMessage);
+	}
+
+	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(SpringAOPTest.class, "Quickstart_spring_aop.esb");
+	}
+}
+

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SpringHelloWorldTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SpringHelloWorldTest.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SpringHelloWorldTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,86 @@
+/*
+ * 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 java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.samples.quickstart.spring_helloworld.test.SendJMSMessage;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the SpringHelloWorld quickstart.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+
+public class SpringHelloWorldTest extends JBossTestCase {
+	private static final String JMS_MESSAGE = "SpringHelloWorldTest message";
+	private static final String RESULT_MESSAGE = "SpringHelloWorldTest messagehello from Springgoodbye from Springhello from Springgoodbye from Spring";
+
+	private static final String FILE_NAME = "SpringHelloWorldTest.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	private static final int EXPECTED_RECORD_COUNT = 1;
+
+	public SpringHelloWorldTest(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+	        final File logFile = new File(LOG_FILE) ;
+	        if (logFile.exists())
+	        {
+	            assertTrue("Deleting logfile", logFile.delete()) ;
+	        }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+
+		Hashtable<String, String> theTable = Helpers.getFileActionMessageString(LOG_FILE);
+		String theMessage = (String) theTable.get("Message1");
+		assertEquals("The strings should match", RESULT_MESSAGE, theMessage);
+	}
+
+	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(SpringHelloWorldTest.class, "spring_helloworld.esb");
+	}
+}
+

Added: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SpringJPetStoreTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SpringJPetStoreTest.java	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/SpringJPetStoreTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,90 @@
+
+/*
+ * 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 java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.samples.quickstart.spring_jpetstore.test.SendJMSMessage;
+import org.jboss.soa.esb.util.FileUtil;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the SpringJPetStore quickstart.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+
+public class SpringJPetStoreTest extends JBossTestCase {
+	private static final String JMS_MESSAGE = "SpringJPetStoreTest message";
+
+	private static final String FILE_NAME = "SpringJPetStoreTest.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	private static final int EXPECTED_RECORD_COUNT = 1;
+
+	public SpringJPetStoreTest(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+	        final File logFile = new File(LOG_FILE) ;
+	        if (logFile.exists())
+	        {
+	            assertTrue("Deleting logfile", logFile.delete()) ;
+	        }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+		
+		Hashtable<String, String> theTable = Helpers.getFileActionMessageString(LOG_FILE);
+		String theMessage = (String) theTable.get("Message1");
+		assertEquals("The strings should match", JMS_MESSAGE, theMessage);
+	}
+
+	public void sendMessage() throws Exception {
+		SendJMSMessage sm = new SendJMSMessage();
+		sm.setupConnection();
+		String orderFile = Helpers.getQuickstartLocation("spring_jpetstore/sample-order.xml");
+		File target = new File(orderFile);
+		String targetString = FileUtil.readTextFile(target);
+		sm.sendAMessage(targetString);
+		sm.stop();
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(SpringJPetStoreTest.class, "spring_jpetstore.esb");
+	}
+}
+

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	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformCSV2XMLTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -31,7 +31,7 @@
 import org.jboss.soa.esb.testutils.FileUtil;
 
 /**
- * Sample client for the jboss container.
+ * CI test for the transformCSV2XML quickstart.
  *
  * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
  */

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformDateManipulationTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformDateManipulationTest.java	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformDateManipulationTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -32,7 +32,7 @@
 
 
 /**
- * Sample client for the jboss container.
+ * CI test for the transformdatemanipulation quickstart.
  *
  * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
  */

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformEDI2XMLGroovyXSLTTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformEDI2XMLGroovyXSLTTest.java	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformEDI2XMLGroovyXSLTTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -32,7 +32,7 @@
 
 
 /**
- * Sample client for the jboss container.
+ * CI test for the transformEDI2XMLGroovyXSLT quickstart.
  *
  * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
  */

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformXML2PojoTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformXML2PojoTest.java	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformXML2PojoTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -1,3 +1,23 @@
+/*
+ * 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 java.io.File;
@@ -11,7 +31,7 @@
 
 
 /**
- * Sample client for the jboss container.
+ * CI test for the transformXML2POJO quickstart.
  *
  * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
  */

Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformXMLSimpleTest.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformXMLSimpleTest.java	2007-11-26 04:09:17 UTC (rev 16799)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/TransformXMLSimpleTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -31,7 +31,7 @@
 import org.jboss.soa.esb.samples.quickstart.transformxml2xmlsimple.test.SendJMSMessage;
 
 /**
- * Sample client for the jboss container.
+ * CI test for the transformXMLSimple quickstart.
  *
  * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
  */

Added: 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	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceConsumer1Test.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,94 @@
+/*
+ * 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 java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.samples.quickstart.webservice_consumer1.test.SendJMSMessage;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the webservice_consumer1 quickstart.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class WebServiceConsumer1Test extends JBossTestCase {
+	private static final String JMS_MESSAGE = "WebServiceConsumer1Test message";
+
+	private static final String FILE_NAME = "WebServiceConsumer1Test.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	private static final int EXPECTED_RECORD_COUNT = 1;
+
+	public WebServiceConsumer1Test(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+		final File logFile = new File(LOG_FILE) ;
+	    if (logFile.exists())
+	    {
+	    	assertTrue("Deleting logfile", logFile.delete());
+	    }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+
+		/* Verify that the message file is complete */
+		boolean fileComplete = Helpers.checkFileContent(LOG_FILE,
+				EXPECTED_RECORD_COUNT);
+		if (!fileComplete) {
+			Hashtable<String, String> temp = Helpers.getMessageString(LOG_FILE);
+			fail("Event file " + LOG_FILE + " not complete - expected "
+					+ EXPECTED_RECORD_COUNT + " records - found " + temp.size()
+					+ ", test marked as failing");
+		}
+
+		Hashtable<String, String> theTable = Helpers.getMessageString(LOG_FILE);
+		String theMessage = (String) theTable.get("Message1");
+		assertEquals("The strings should match", JMS_MESSAGE, theMessage);
+        assertTrue("Deleting logfile", logFile.delete()) ;
+	}
+
+	public void sendMessage() throws Exception {
+		SendJMSMessage sm = new SendJMSMessage();
+		sm.sendAMessage("Jimbo");
+		sm.stop();
+		Thread.sleep(4000);
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(WebServiceConsumer1Test.class, "Quickstart_webservice_consumer1.esb");
+	}
+}

Added: 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	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceConsumer2Test.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,95 @@
+/*
+ * 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 java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.samples.quickstart.helloworld.test.SendJMSMessage;
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the webservice_consumer2 quickstart.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class WebServiceConsumer2Test extends JBossTestCase {
+	private static final String JMS_MESSAGE = "WebServiceConsumer2Test message";
+
+	private static final String FILE_NAME = "WebServiceConsumer2Test.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	private static final int EXPECTED_RECORD_COUNT = 1;
+
+	public WebServiceConsumer2Test(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+	        final File logFile = new File(LOG_FILE) ;
+	        if (logFile.exists())
+	        {
+	            assertTrue("Deleting logfile", logFile.delete()) ;
+	        }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+
+		/* Verify that the message file is complete */
+		boolean fileComplete = Helpers.checkFileContent(LOG_FILE,
+				EXPECTED_RECORD_COUNT);
+		if (!fileComplete) {
+			Hashtable<String, String> temp = Helpers.getMessageString(LOG_FILE);
+			fail("Event file " + LOG_FILE + " not complete - expected "
+					+ EXPECTED_RECORD_COUNT + " records - found " + temp.size()
+					+ ", test marked as failing");
+		}
+
+		Hashtable<String, String> theTable = Helpers.getMessageString(LOG_FILE);
+		String theMessage = (String) theTable.get("Message1");
+		assertEquals("The strings should match", JMS_MESSAGE, theMessage);
+        assertTrue("Deleting logfile", logFile.delete()) ;
+	}
+
+	public void sendMessage() throws Exception {
+		SendJMSMessage sm = new SendJMSMessage();
+		sm.setupConnection();
+		sm.sendAMessage(JMS_MESSAGE + StoreMessageToFile.MESSAGE_CONTENT_FILENAME_START + FILE_NAME
+				+ StoreMessageToFile.MESSAGE_CONTENT_FILENAME_END) ;
+		sm.stop();
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(WebServiceConsumer2Test.class, "Quickstart_webservice_consumer2.esb");
+	}
+}

Added: 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	                        (rev 0)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/qa/quickstarts/src/org/jboss/soa/esb/quickstart/test/WebServiceProducerTest.java	2007-11-26 04:42:02 UTC (rev 16800)
@@ -0,0 +1,75 @@
+package org.jboss.soa.esb.quickstart.test;
+
+import java.io.File;
+import java.util.Hashtable;
+
+import junit.framework.Test;
+
+import org.jboss.soa.esb.actions.StoreMessageToFile;
+import org.jboss.soa.esb.samples.quickstart.webserviceproducer.test.SendMessage;
+import org.jboss.soa.esb.testutils.FileUtil;
+
+import org.jboss.test.JBossTestCase;
+
+/**
+ * CI test for the webservice_producer quickstart.
+ * 
+ * @author <a href="mailto:tcunning at redhat.com">Tom Cunningham</a>
+ */
+public class WebServiceProducerTest extends JBossTestCase {
+	private static final String JMS_MESSAGE = "WebServiceProducerTest message";
+
+	private static final String FILE_NAME = "WebServiceProducerTest.log";
+
+	private static final String LOG_FILE = Helpers.getTempDir(FILE_NAME)
+			+ FILE_NAME;
+
+	private static final int EXPECTED_RECORD_COUNT = 1;
+
+	public WebServiceProducerTest(String name) {
+		super(name);
+	}
+
+	public void testMessage() throws Exception {
+	        final File logFile = new File(LOG_FILE) ;
+	        if (logFile.exists())
+	        {
+	            assertTrue("Deleting logfile", logFile.delete()) ;
+	        }
+	        
+		sendMessage();
+
+		/* Verify that the message file is created */
+		boolean fileExists = Helpers.checkForFile(LOG_FILE);
+		if (!fileExists) {
+			fail("Event file " + LOG_FILE
+					+ " not created - test marked as failing");
+		}
+
+		/* Verify that the message file is complete */
+		boolean fileComplete = Helpers.checkFileContent(LOG_FILE,
+				EXPECTED_RECORD_COUNT);
+		if (!fileComplete) {
+			Hashtable<String, String> temp = Helpers.getMessageString(LOG_FILE);
+			fail("Event file " + LOG_FILE + " not complete - expected "
+					+ EXPECTED_RECORD_COUNT + " records - found " + temp.size()
+					+ ", test marked as failing");
+		}
+
+		Hashtable<String, String> theTable = Helpers.getMessageString(LOG_FILE);
+		String theMessage = (String) theTable.get("Message1");
+		assertEquals("The strings should match", JMS_MESSAGE, theMessage);
+	}
+
+	public void sendMessage() throws Exception {
+        SendMessage sm = new SendMessage();
+        String location = Helpers.getQuickstartLocation("webservice_producer/src/org/jboss/soa/esb/samples/quickstart/webserviceproducer/test/soap_message_01.xml");
+        File file = new File(location);
+		String targetString = FileUtil.readTextFile(file);
+        sm.sendMessageOverJMS(targetString);
+	}
+
+	public static Test suite() throws Exception {
+		return getDeploySetup(WebServiceProducerTest.class, "Quickstart_webservice_producer.esb");
+	}
+}




More information about the jboss-svn-commits mailing list