[jboss-svn-commits] JBL Code SVN: r25741 - in labs/jbosstm/trunk/XTS: WS-C and 20 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Mar 19 11:27:39 EDT 2009
Author: adinn
Date: 2009-03-19 11:27:39 -0400 (Thu, 19 Mar 2009)
New Revision: 25741
Added:
labs/jbosstm/trunk/XTS/WS-C/tests/dd/ws-c11-tests_application.xml
labs/jbosstm/trunk/XTS/WS-T/tests/dd/ws-t11-tests_application.xml
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestAbortedVoteParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestNoExceptionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestPreparedVoteParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestReadOnlyVoteParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestSystemExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestSystemExceptionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestTransactionRolledBackExceptionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestWrongStateExceptionParticipant.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/TwoPhaseParticipant.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/TwoPhaseSynchronization.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/WSCF11TestUtils.java
labs/jbosstm/trunk/XTS/WSCF/tests/dd/wscf11-tests_application.xml
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoBusinessParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoBusinessParticipantWithComplete.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoDurableParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoVolatileParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/FailureBusinessParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/FailureParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/dd/wstx11-tests_application.xml
Removed:
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestAbortedVoteParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestPreparedVoteParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestReadOnlyVoteParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestTransactionRolledBackExceptionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoBusinessParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoBusinessParticipantWithComplete.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoDurableParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoVolatileParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/FailureBusinessParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/FailureParticipant.java
Modified:
labs/jbosstm/trunk/XTS/WS-C/build.xml
labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/ActivationServiceExceptionTestCase.java
labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/ActivationServiceTestCase.java
labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/ActivationTestCase.java
labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/EnduranceTestCase.java
labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/RegistrationServiceExceptionTestCase.java
labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/RegistrationServiceTestCase.java
labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/RegistrationTestCase.java
labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/TestActivationCoordinatorProcessor.java
labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/TestRegistrationCoordinatorProcessor.java
labs/jbosstm/trunk/XTS/WS-T/build.xml
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestInitialisation.java
labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst11/tests/TestInitialisation.java
labs/jbosstm/trunk/XTS/WSAS/build.xml
labs/jbosstm/trunk/XTS/WSCF/build.xml
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/WSCF11TestSuite.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/AddParticipant.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/AddSynchronization.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/BeginConfirm.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/CancelOnlyCancel.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/CancelOnlyConfirm.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/ParticipantSynchronization.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/StartEnd.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/Suspend.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/SuspendConfirm.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/SuspendParticipant.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/SuspendResume.java
labs/jbosstm/trunk/XTS/WSTX/build.xml
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Cancel.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Close.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Compensate.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/ConfirmWithComplete.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Exit.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/MultiCancel.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/MultiClose.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/MultiCompensate.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/CommitExceptionInCommit.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/CommitExceptionInPrepare.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/CommitRollbackInPrepare.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/MultiParticipants.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/RollbackExceptionInRollback.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SingleParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionCommit.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionCommitFailInPrepare.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionCommitRollbackInPrepare.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionRollback.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SuspendResumeParticipants.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SuspendResumeSingleParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SynchronizationParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Cancel.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Close.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Compensate.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/ConfirmWithComplete.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Exit.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/MultiCancel.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/MultiClose.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/MultiCompensate.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/CommitExceptionInPrepare.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/CommitRollbackInPrepare.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/MultiParticipants.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/RollbackExceptionInRollback.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SingleParticipant.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionCommit.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionCommitFailInPrepare.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionCommitRollbackInPrepare.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionRollback.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SuspendResumeParticipants.java
labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SuspendResumeSingleParticipant.java
labs/jbosstm/trunk/XTS/build.xml
Log:
reorganized test code and builds scripts so test servlets are installed in the xts-install directory (in file jbossxts-tests.zip) and so that it is possible to build only the 1.1 tests -- fixes for JBQA-2067
Modified: labs/jbosstm/trunk/XTS/WS-C/build.xml
===================================================================
--- labs/jbosstm/trunk/XTS/WS-C/build.xml 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-C/build.xml 2009-03-19 15:27:39 UTC (rev 25741)
@@ -185,23 +185,6 @@
<classpath-builder filename="${com.arjuna.mwlabs.classpathbuilderfilename}" inproperty="build.classpath"/>
- <!--
- <javadoc sourcepath="${dev.src.dir}"
- packagenames="com.arjuna.*"
- failonerror="yes"
- private="yes"
- defaultexcludes="yes"
- classpath="${build.classpath}">
-
- <doclet name="com.hp.mw.buildsystem.doclet.resbundledoclet.ResourceBundleDoclet">
- <path>
- <pathelement path="${com.arjuna.buildsystem.classpath}"/>
- </path>
- <param name="-basedir" value="${basedir}/${build.dev.classes.dir}"/>
- <param name="-resourcebundle" value="${com.arjuna.mwlabs.wsc.resourcebundle}"/>
- </doclet>
- </javadoc>
- -->
<javadoc packagenames="com.arjuna.*"
failonerror="yes"
private="yes"
@@ -277,7 +260,8 @@
</war>
</target>
- <target name="tests-compile" depends="dev-webapps">
+ <!-- this assumes the required libs have already been built -->
+ <target name="tests-compile">
<javac destdir="${build.tests.classes.dir}" debug="${javac.debug}" optimize="${javac.optimize}">
<classpath>
<pathelement path="${build.dev.lib.dir}/ws-c.jar"/>
@@ -290,6 +274,21 @@
<src path="${tests.src.dir}"/>
</javac>
</target>
+ <!-- this assumes the required libs have already been built -->
+ <target name="tests-compile11">
+ <javac destdir="${build.tests.classes.dir}" debug="${javac.debug}" optimize="${javac.optimize}">
+ <classpath>
+ <pathelement path="${build.dev.lib.dir}/ws-c.jar"/>
+ <pathelement path="${build.dev.lib.dir}/ws-c-api.jar"/>
+ <pathelement path="${build.dev.lib.dir}/ws-c11.jar"/>
+ <path refid="tests.lib.path"/>
+ <path refid="lib.ext.path"/>
+ </classpath>
+ <src path="${tests.src.dir}"/>
+ <include name="com/arjuna/qa/**"/>
+ <include name="com/arjuna/wsc11/**"/>
+ </javac>
+ </target>
<target name="tests-webapps" depends="tests-compile" >
<copy file="${tests.dd.dir}/ws-c-tests_web-app.xml" tofile="${build.tests.dd.dir}/web-app.xml">
@@ -316,10 +315,38 @@
</ear>
</target>
+ <target name="tests-webapps11" depends="tests-compile11" >
+ <copy file="${tests.dd.dir}/ws-c11-tests_web-app.xml" tofile="${build.tests.dd.dir}/web-app11.xml">
+ </copy>
+ <war warfile="${build.tests.webapps.dir}/ws-c11-tests.war" webxml="${build.tests.dd.dir}/web-app11.xml">
+ <classes dir="${build.tests.classes.dir}"/>
+ </war>
+ <ear earfile="${build.tests.webapps.dir}/ws-c-tests.ear" appxml="${tests.dd.dir}/ws-c11-tests_application.xml">
+ <!--
+ <fileset dir="${com.arjuna.jta.install.ext}" includes="${jta.ext.jars}"/>
+ -->
+ <fileset dir="${com.arjuna.xts.ext}" includes="${tests.libs}"/>
+ <!--
+ <fileset dir="${com.arjuna.jta.install.lib}" includes="${jta.lib.jars}"/>
+ <fileset dir="${build.dev.lib.dir}" includes="ws-c10.jar ws-c.jar"/>
+ -->
+ <fileset dir="${build.tests.webapps.dir}" includes="ws-c11-tests.war"/>
+ </ear>
+ </target>
+
+ <!-- production target for 1.1 tests -->
+ <target name="tests-11" depends="tests-webapps11"/>
+
+ <target name="tests-both" depends="tests-webapps"/>
+
<target name="tests-deploy" depends="tests-webapps, tests-undeploy">
<copy file="${build.tests.webapps.dir}/ws-c-tests.ear" tofile="${deploy.dir}/ws-c-tests.ear"/>
</target>
+ <target name="tests-deploy11" depends="tests-webapps11, tests-undeploy">
+ <copy file="${build.tests.webapps.dir}/ws-c-tests.ear" tofile="${deploy.dir}/ws-c-tests.ear"/>
+ </target>
+
<target name="tests-undeploy">
<delete file="${deploy.dir}/ws-c-tests.ear"/>
</target>
Copied: labs/jbosstm/trunk/XTS/WS-C/tests/dd/ws-c11-tests_application.xml (from rev 25709, labs/jbosstm/trunk/XTS/WS-C/tests/dd/ws-c-tests_application.xml)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-C/tests/dd/ws-c11-tests_application.xml (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-C/tests/dd/ws-c11-tests_application.xml 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,39 @@
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags.
+ See the copyright.txt 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.
+-->
+
+<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
+
+<application>
+ <display-name>Arjuna Web Services Coordination 1.1 Tests</display-name>
+
+ <description>Arjuna Web Services Coordination 1.1 Tests</description>
+
+ <module>
+ <web>
+ <web-uri>ws-c11-tests.war</web-uri>
+ <context-root>/ws-c11-tests</context-root>
+ </web>
+ </module>
+ <module>
+ <java>junit.jar</java>
+ </module>
+</application>
Modified: labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/ActivationServiceExceptionTestCase.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/ActivationServiceExceptionTestCase.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/ActivationServiceExceptionTestCase.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -26,12 +26,11 @@
package com.arjuna.wsc11.tests.junit;
-import junit.framework.TestCase;
-
-import com.arjuna.wsc11.ActivationCoordinator;
import com.arjuna.wsc.InvalidCreateParametersException;
import com.arjuna.wsc.tests.TestUtil;
+import com.arjuna.wsc11.ActivationCoordinator;
import com.arjuna.wsc11.tests.TestUtil11;
+import junit.framework.TestCase;
public class ActivationServiceExceptionTestCase extends TestCase
{
Modified: labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/ActivationServiceTestCase.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/ActivationServiceTestCase.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/ActivationServiceTestCase.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -26,18 +26,13 @@
package com.arjuna.wsc11.tests.junit;
-import junit.framework.TestCase;
-
-import com.arjuna.webservices11.ServiceRegistry;
-import com.arjuna.webservices11.wscoor.CoordinationConstants;
-import com.arjuna.wsc11.ActivationCoordinator;
import com.arjuna.wsc.InvalidCreateParametersException;
import com.arjuna.wsc.tests.TestUtil;
+import com.arjuna.wsc11.ActivationCoordinator;
import com.arjuna.wsc11.tests.TestUtil11;
+import junit.framework.TestCase;
import org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType;
-import javax.xml.ws.wsaddressing.W3CEndpointReference;
-
public class ActivationServiceTestCase extends TestCase
{
public void testKnownCoordinationType()
Modified: labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/ActivationTestCase.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/ActivationTestCase.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/ActivationTestCase.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -26,27 +26,19 @@
package com.arjuna.wsc11.tests.junit;
-import javax.xml.namespace.QName;
-import javax.xml.ws.wsaddressing.W3CEndpointReference;
-import javax.xml.ws.addressing.AddressingProperties;
-
-import junit.framework.TestCase;
-
-import com.arjuna.webservices.SoapFault;
-import com.arjuna.webservices.SoapFaultType;
import com.arjuna.webservices11.ServiceRegistry;
-import com.arjuna.webservices11.SoapFault11;
import com.arjuna.webservices11.wsaddr.AddressingHelper;
-import com.arjuna.webservices11.wscoor.CoordinationConstants;
import com.arjuna.webservices11.wscoor.client.ActivationCoordinatorClient;
import com.arjuna.webservices11.wscoor.processors.ActivationCoordinatorProcessor;
import com.arjuna.wsc.tests.TestUtil;
-import com.arjuna.wsc11.tests.junit.TestActivationCoordinatorProcessor.CreateCoordinationContextDetails;
-import com.arjuna.wsc11.tests.junit.TestActivationCoordinatorProcessor;
import com.arjuna.wsc11.tests.TestUtil11;
+import com.arjuna.wsc11.tests.junit.TestActivationCoordinatorProcessor.CreateCoordinationContextDetails;
+import junit.framework.TestCase;
import org.oasis_open.docs.ws_tx.wscoor._2006._06.*;
-import org.omg.CosNaming.NamingContextExtPackage.AddressHelper;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+
public class ActivationTestCase extends TestCase
{
private ActivationCoordinatorProcessor origActivationCoordinatorProcessor ;
Modified: labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/EnduranceTestCase.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/EnduranceTestCase.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/EnduranceTestCase.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -26,33 +26,24 @@
package com.arjuna.wsc11.tests.junit;
-import javax.xml.namespace.QName;
-import javax.xml.ws.wsaddressing.W3CEndpointReference;
-import javax.xml.ws.addressing.AddressingProperties;
-
-import junit.framework.TestCase;
-
-import com.arjuna.webservices.SoapFault;
-import com.arjuna.webservices.SoapFaultType;
-import com.arjuna.webservices11.SoapFault11;
-import com.arjuna.webservices.stax.URI;
import com.arjuna.webservices11.wsaddr.AddressingHelper;
import com.arjuna.webservices11.wsarj.ArjunaContext;
-import com.arjuna.webservices11.wscoor.CoordinationConstants;
import com.arjuna.webservices11.wscoor.client.ActivationCoordinatorClient;
import com.arjuna.webservices11.wscoor.processors.ActivationCoordinatorProcessor;
import com.arjuna.webservices11.wscoor.processors.RegistrationCoordinatorProcessor;
-import com.arjuna.wsc.tests.TestUtil;
import com.arjuna.wsc.*;
+import com.arjuna.wsc.tests.TestUtil;
+import com.arjuna.wsc11.ActivationCoordinator;
+import com.arjuna.wsc11.RegistrationCoordinator;
import com.arjuna.wsc11.tests.TestUtil11;
import com.arjuna.wsc11.tests.junit.TestActivationCoordinatorProcessor.CreateCoordinationContextDetails;
import com.arjuna.wsc11.tests.junit.TestRegistrationCoordinatorProcessor.RegisterDetails;
-import com.arjuna.wsc11.tests.junit.TestActivationCoordinatorProcessor;
-import com.arjuna.wsc11.tests.junit.TestRegistrationCoordinatorProcessor;
-import com.arjuna.wsc11.ActivationCoordinator;
-import com.arjuna.wsc11.RegistrationCoordinator;
+import junit.framework.TestCase;
import org.oasis_open.docs.ws_tx.wscoor._2006._06.*;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+
public class EnduranceTestCase extends TestCase
{
private ActivationCoordinatorProcessor origActivationCoordinatorProcessor ;
Modified: labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/RegistrationServiceExceptionTestCase.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/RegistrationServiceExceptionTestCase.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/RegistrationServiceExceptionTestCase.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -26,16 +26,14 @@
package com.arjuna.wsc11.tests.junit;
-import junit.framework.TestCase;
-
-import com.arjuna.webservices11.wscoor.CoordinationConstants;
import com.arjuna.wsc.AlreadyRegisteredException;
import com.arjuna.wsc.InvalidProtocolException;
import com.arjuna.wsc.InvalidStateException;
import com.arjuna.wsc.NoActivityException;
+import com.arjuna.wsc.tests.TestUtil;
import com.arjuna.wsc11.RegistrationCoordinator;
import com.arjuna.wsc11.tests.TestUtil11;
-import com.arjuna.wsc.tests.TestUtil;
+import junit.framework.TestCase;
import org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType;
import javax.xml.ws.wsaddressing.W3CEndpointReference;
Modified: labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/RegistrationServiceTestCase.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/RegistrationServiceTestCase.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/RegistrationServiceTestCase.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -26,14 +26,11 @@
package com.arjuna.wsc11.tests.junit;
-import junit.framework.TestCase;
-
-import com.arjuna.webservices11.ServiceRegistry;
-import com.arjuna.webservices11.wscoor.CoordinationConstants;
import com.arjuna.wsc.InvalidProtocolException;
+import com.arjuna.wsc.tests.TestUtil;
import com.arjuna.wsc11.RegistrationCoordinator;
import com.arjuna.wsc11.tests.TestUtil11;
-import com.arjuna.wsc.tests.TestUtil;
+import junit.framework.TestCase;
import org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType;
import javax.xml.ws.wsaddressing.W3CEndpointReference;
Modified: labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/RegistrationTestCase.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/RegistrationTestCase.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/RegistrationTestCase.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -26,31 +26,22 @@
package com.arjuna.wsc11.tests.junit;
-import javax.xml.namespace.QName;
-import javax.xml.ws.wsaddressing.W3CEndpointReference;
-import javax.xml.ws.addressing.AddressingProperties;
-
-import junit.framework.TestCase;
-
-import com.arjuna.webservices.SoapFault;
-import com.arjuna.webservices.SoapFaultType;
import com.arjuna.webservices11.ServiceRegistry;
-import com.arjuna.webservices11.wsaddr.AddressingHelper;
import com.arjuna.webservices11.wsarj.ArjunaContext;
import com.arjuna.webservices11.wsarj.InstanceIdentifier;
import com.arjuna.webservices11.wscoor.CoordinationConstants;
import com.arjuna.webservices11.wscoor.client.WSCOORClient;
import com.arjuna.webservices11.wscoor.processors.RegistrationCoordinatorProcessor;
-import com.arjuna.wsc11.tests.junit.TestRegistrationCoordinatorProcessor.RegisterDetails;
-import com.arjuna.wsc11.tests.junit.TestRegistrationCoordinatorProcessor;
import com.arjuna.wsc11.tests.TestUtil11;
-import com.arjuna.wsc11.RegistrationCoordinator;
-import com.arjuna.wsc11.messaging.MessageId;
-import org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType;
+import com.arjuna.wsc11.tests.junit.TestRegistrationCoordinatorProcessor.RegisterDetails;
+import junit.framework.TestCase;
import org.oasis_open.docs.ws_tx.wscoor._2006._06.RegisterResponseType;
import org.oasis_open.docs.ws_tx.wscoor._2006._06.RegisterType;
import org.oasis_open.docs.ws_tx.wscoor._2006._06.RegistrationPortType;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+
public class RegistrationTestCase extends TestCase
{
private RegistrationCoordinatorProcessor origRegistrationCoordinatorProcessor ;
Modified: labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/TestActivationCoordinatorProcessor.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/TestActivationCoordinatorProcessor.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/TestActivationCoordinatorProcessor.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -20,31 +20,25 @@
*/
package com.arjuna.wsc11.tests.junit;
-import java.util.HashMap;
-import java.util.Map;
-
-import com.arjuna.webservices11.wscoor.processors.ActivationCoordinatorProcessor;
+import com.arjuna.webservices.SoapFaultType;
import com.arjuna.webservices11.wscoor.CoordinationConstants;
+import com.arjuna.webservices11.wscoor.processors.ActivationCoordinatorProcessor;
import com.arjuna.wsc.tests.TestUtil;
-import com.arjuna.wsc.AlreadyRegisteredException;
-import com.arjuna.wsc.InvalidProtocolException;
-import com.arjuna.wsc.InvalidStateException;
-import com.arjuna.wsc.NoActivityException;
-import com.arjuna.wsc11.tests.TestRegistrar;
import com.arjuna.wsc11.tests.TestUtil11;
-import com.arjuna.webservices.SoapFaultType;
-import org.oasis_open.docs.ws_tx.wscoor._2006._06.CreateCoordinationContextType;
-import org.oasis_open.docs.ws_tx.wscoor._2006._06.CreateCoordinationContextResponseType;
import org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContext;
import org.oasis_open.docs.ws_tx.wscoor._2006._06.CoordinationContextType;
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.CreateCoordinationContextResponseType;
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.CreateCoordinationContextType;
+import javax.xml.soap.SOAPFactory;
+import javax.xml.soap.SOAPFault;
+import javax.xml.ws.ProtocolException;
import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.soap.SOAPFaultException;
import javax.xml.ws.wsaddressing.W3CEndpointReference;
import javax.xml.ws.wsaddressing.W3CEndpointReferenceBuilder;
-import javax.xml.ws.soap.SOAPFaultException;
-import javax.xml.ws.ProtocolException;
-import javax.xml.soap.SOAPFactory;
-import javax.xml.soap.SOAPFault;
+import java.util.HashMap;
+import java.util.Map;
public class TestActivationCoordinatorProcessor extends
ActivationCoordinatorProcessor
Modified: labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/TestRegistrationCoordinatorProcessor.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/TestRegistrationCoordinatorProcessor.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-C/tests/src/com/arjuna/wsc11/tests/junit/TestRegistrationCoordinatorProcessor.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -20,24 +20,23 @@
*/
package com.arjuna.wsc11.tests.junit;
-import java.util.HashMap;
-import java.util.Map;
-
+import com.arjuna.webservices.SoapFaultType;
import com.arjuna.webservices11.wsarj.ArjunaContext;
import com.arjuna.webservices11.wsarj.InstanceIdentifier;
-import com.arjuna.webservices11.wscoor.processors.RegistrationCoordinatorProcessor;
import com.arjuna.webservices11.wscoor.CoordinationConstants;
-import com.arjuna.wsc11.tests.TestUtil11;
+import com.arjuna.webservices11.wscoor.processors.RegistrationCoordinatorProcessor;
import com.arjuna.wsc.tests.TestUtil;
-import com.arjuna.webservices.SoapFaultType;
-import org.oasis_open.docs.ws_tx.wscoor._2006._06.RegisterType;
+import com.arjuna.wsc11.tests.TestUtil11;
import org.oasis_open.docs.ws_tx.wscoor._2006._06.RegisterResponseType;
+import org.oasis_open.docs.ws_tx.wscoor._2006._06.RegisterType;
-import javax.xml.ws.addressing.AddressingProperties;
-import javax.xml.ws.soap.SOAPFaultException;
-import javax.xml.ws.ProtocolException;
import javax.xml.soap.SOAPFactory;
import javax.xml.soap.SOAPFault;
+import javax.xml.ws.ProtocolException;
+import javax.xml.ws.addressing.AddressingProperties;
+import javax.xml.ws.soap.SOAPFaultException;
+import java.util.HashMap;
+import java.util.Map;
public class TestRegistrationCoordinatorProcessor extends
RegistrationCoordinatorProcessor
Modified: labs/jbosstm/trunk/XTS/WS-T/build.xml
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/build.xml 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/build.xml 2009-03-19 15:27:39 UTC (rev 25741)
@@ -352,7 +352,8 @@
</war>
</target>
- <target name="tests-compile" depends="dev-webapps">
+ <!-- this assumes all the required libs have been built -->
+ <target name="tests-compile">
<javac destdir="${build.tests.classes.dir}" debug="${javac.debug}" optimize="${javac.optimize}">
<classpath>
<pathelement path="${build.dev.lib.dir}/ws-t.jar"/>
@@ -374,6 +375,28 @@
</javac>
</target>
+ <!-- this assumes all the required libs have been built -->
+ <target name="tests-compile11">
+ <javac destdir="${build.tests.classes.dir}" debug="${javac.debug}" optimize="${javac.optimize}">
+ <classpath>
+ <pathelement path="${build.dev.lib.dir}/ws-t.jar"/>
+ <pathelement path="${build.dev.lib.dir}/ws-t-api.jar"/>
+ <pathelement path="${build.dev.lib.dir}/ws-t11.jar"/>
+ <pathelement path="${build.dev.lib.dir}/ws-t11-api.jar"/>
+ <path refid="tests.lib.path"/>
+ <path refid="lib.ext.path"/>
+ <path refid="ws-c.path"/>
+ <path refid="ws-c11.path"/>
+ <path refid="wscf.path"/>
+ <path refid="wscf11.path"/>
+ </classpath>
+ <src path="${tests.src.dir}"/>
+ <include name="com/arjuna/qa/**"/>
+ <include name="com/arjuna/wst/tests/common/**"/>
+ <include name="com/arjuna/wst11/tests/**"/>
+ </javac>
+ </target>
+
<target name="tests-webapps" depends="tests-compile">
<jar jarfile="${build.tests.lib.dir}/ws-t-tests.jar">
<fileset dir="${build.tests.classes.dir}"/>
@@ -403,10 +426,34 @@
</ear>
</target>
+ <target name="tests-webapps11" depends="tests-compile11">
+ <jar jarfile="${build.tests.lib.dir}/ws-t-tests.jar">
+ <fileset dir="${build.tests.classes.dir}"/>
+ </jar>
+ <copy file="${tests.dd.dir}/ws-t11-tests_web-app.xml" tofile="${build.tests.dd.dir}/web-app11.xml">
+ </copy>
+ <war warfile="${build.tests.webapps.dir}/ws-t11-tests.war" webxml="${build.tests.dd.dir}/web-app11.xml">
+ </war>
+ <ear earfile="${build.tests.webapps.dir}/ws-t-tests.ear" appxml="${tests.dd.dir}/ws-t11-tests_application.xml">
+ <fileset dir="${com.arjuna.xts.ext}" includes="${tests.libs}"/>
+ <fileset dir="${build.tests.webapps.dir}" includes="ws-t11-tests.war"/>
+ <fileset dir="${build.tests.lib.dir}" includes="ws-t-tests.jar"/>
+ </ear>
+ </target>
+
+ <!-- production target for 1.1 tests -->
+ <target name="tests-11" depends="tests-webapps11"/>
+
+ <target name="tests-both" depends="tests-webapps"/>
+
<target name="tests-deploy" depends="tests-webapps, tests-undeploy">
<copy file="${build.tests.webapps.dir}/ws-t-tests.ear" tofile="${deploy.dir}/ws-t-tests.ear"/>
</target>
+ <target name="tests-deploy11" depends="tests-webapps11, tests-undeploy">
+ <copy file="${build.tests.webapps.dir}/ws-t-tests.ear" tofile="${deploy.dir}/ws-t-tests.ear"/>
+ </target>
+
<target name="tests-undeploy">
<delete file="${deploy.dir}/ws-t-tests.ear"/>
</target>
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/dd/ws-t11-tests_application.xml (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/dd/ws-t-tests_application.xml)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/dd/ws-t11-tests_application.xml (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/dd/ws-t11-tests_application.xml 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,44 @@
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags.
+ See the copyright.txt 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.
+-->
+
+<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
+
+<application>
+ <display-name>Arjuna Web Services Transaction Tests</display-name>
+
+ <description>Arjuna Web Services Transaction Tests</description>
+
+ <module>
+ <web>
+ <web-uri>ws-t11-tests.war</web-uri>
+ <context-root>/ws-t11-tests</context-root>
+ </web>
+ </module>
+
+ <module>
+ <java>junit.jar</java>
+ </module>
+
+ <module>
+ <java>ws-t-tests.jar</java>
+ </module>
+</application>
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestAbortedVoteParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestAbortedVoteParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestAbortedVoteParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,75 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2003, 2004,
- *
- * Arjuna Technologies Limited.
- *
- * $Id: TestAbortedVoteParticipant.java,v 1.1.2.1 2005/11/22 10:37:41 kconner Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.Participant;
-import com.arjuna.wst.Aborted;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.TransactionRolledBackException;
-import com.arjuna.wst.Vote;
-import com.arjuna.wst.WrongStateException;
-
-public class TestAbortedVoteParticipant implements Participant
-{
- public Vote prepare()
- throws WrongStateException, SystemException
- {
- return new Aborted();
- }
-
- public void commit()
- throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void rollback()
- throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void commitOnePhase()
- throws TransactionRolledBackException, WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void unknown()
- throws SystemException
- {
- throw new SystemException();
- }
-
- public void error()
- throws SystemException
- {
- throw new SystemException();
- }
-}
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,72 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2004, Arjuna Technologies Limited.
- *
- * $Id: TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java,v 1.1.2.1 2004/05/26 10:04:51 nmcl Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.BusinessAgreementWithCoordinatorCompletionParticipant;
-import com.arjuna.wst.FaultedException;
-import com.arjuna.wst.Status;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.WrongStateException;
-
-public class TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant implements BusinessAgreementWithCoordinatorCompletionParticipant
-{
-
- public void close () throws WrongStateException, SystemException
- {
- }
-
- public void cancel () throws WrongStateException, SystemException
- {
- }
-
- public void compensate () throws FaultedException, WrongStateException, SystemException
- {
- throw new FaultedException();
- }
-
- public String status () throws SystemException
- {
- return Status.STATUS_ACTIVE;
- }
-
- public void forget () throws WrongStateException, SystemException
- {
- }
-
- public void complete () throws WrongStateException, SystemException
- {
- }
-
- public void unknown () throws SystemException
- {
- }
-
- public void error () throws SystemException
- {
- }
-
-}
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,68 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2004, Arjuna Technologies Limited.
- *
- * $Id: TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant.java,v 1.1.2.1 2004/05/26 10:04:52 nmcl Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant;
-import com.arjuna.wst.FaultedException;
-import com.arjuna.wst.Status;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.WrongStateException;
-
-public class TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant implements BusinessAgreementWithParticipantCompletionParticipant
-{
-
- public void close () throws WrongStateException, SystemException
- {
- }
-
- public void cancel () throws WrongStateException, SystemException
- {
- }
-
- public void compensate () throws FaultedException, WrongStateException, SystemException
- {
- throw new FaultedException();
- }
-
- public String status () throws SystemException
- {
- return Status.STATUS_ACTIVE;
- }
-
- public void forget () throws WrongStateException, SystemException
- {
- }
-
- public void unknown () throws SystemException
- {
- }
-
- public void error () throws SystemException
- {
- }
-
-}
Modified: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestInitialisation.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestInitialisation.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestInitialisation.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -43,6 +43,7 @@
import com.arjuna.wst.BusinessAgreementWithCoordinatorCompletionParticipant;
import com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant;
import com.arjuna.wst.CompletionCoordinatorParticipant;
+import com.arjuna.wst.tests.common.*;
import com.arjuna.wst.messaging.engines.ParticipantEngine;
import com.arjuna.wst.messaging.engines.ParticipantCompletionParticipantEngine;
import com.arjuna.wst.messaging.engines.CoordinatorCompletionParticipantEngine;
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,70 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2004, Arjuna Technologies Limited.
- *
- * $Id: TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java,v 1.1.2.1 2004/05/26 10:04:52 nmcl Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.BusinessAgreementWithCoordinatorCompletionParticipant;
-import com.arjuna.wst.Status;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.WrongStateException;
-
-public class TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant implements BusinessAgreementWithCoordinatorCompletionParticipant
-{
-
- public void close () throws WrongStateException, SystemException
- {
- }
-
- public void cancel () throws WrongStateException, SystemException
- {
- }
-
- public void compensate () throws WrongStateException, SystemException
- {
- }
-
- public String status () throws SystemException
- {
- return Status.STATUS_ACTIVE;
- }
-
- public void forget () throws WrongStateException, SystemException
- {
- }
-
- public void complete () throws WrongStateException, SystemException
- {
- }
-
- public void unknown () throws SystemException
- {
- }
-
- public void error () throws SystemException
- {
- }
-
-}
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,67 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2003, Arjuna Technologies Limited.
- *
- * $Id: TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant.java,v 1.1.2.1 2004/05/26 10:04:52 nmcl Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant;
-import com.arjuna.wst.FaultedException;
-import com.arjuna.wst.Status;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.WrongStateException;
-
-public class TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant implements BusinessAgreementWithParticipantCompletionParticipant
-{
-
- public void close () throws WrongStateException, SystemException
- {
- }
-
- public void cancel () throws WrongStateException, SystemException
- {
- }
-
- public void compensate () throws FaultedException, WrongStateException, SystemException
- {
- }
-
- public String status () throws SystemException
- {
- return Status.STATUS_ACTIVE;
- }
-
- public void forget () throws WrongStateException, SystemException
- {
- }
-
- public void unknown () throws SystemException
- {
- }
-
- public void error () throws SystemException
- {
- }
-
-}
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,69 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2003, 2004,
- *
- * Arjuna Technologies Limited.
- *
- * $Id: TestNoExceptionParticipant.java,v 1.1.2.1 2005/11/22 10:37:38 kconner Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.Participant;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.TransactionRolledBackException;
-import com.arjuna.wst.Vote;
-import com.arjuna.wst.WrongStateException;
-
-public class TestNoExceptionParticipant implements Participant
-{
- public Vote prepare()
- throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void commit()
- throws WrongStateException, SystemException
- {
- }
-
- public void rollback()
- throws WrongStateException, SystemException
- {
- }
-
- public void commitOnePhase()
- throws TransactionRolledBackException, WrongStateException, SystemException
- {
- }
-
- public void unknown()
- throws SystemException
- {
- }
-
- public void error()
- throws SystemException
- {
- }
-}
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestPreparedVoteParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestPreparedVoteParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestPreparedVoteParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,75 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2003, 2004,
- *
- * Arjuna Technologies Limited.
- *
- * $Id: TestPreparedVoteParticipant.java,v 1.1.2.1 2005/11/22 10:37:37 kconner Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.Participant;
-import com.arjuna.wst.Prepared;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.TransactionRolledBackException;
-import com.arjuna.wst.Vote;
-import com.arjuna.wst.WrongStateException;
-
-public class TestPreparedVoteParticipant implements Participant
-{
- public Vote prepare()
- throws WrongStateException, SystemException
- {
- return new Prepared();
- }
-
- public void commit()
- throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void rollback()
- throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void commitOnePhase()
- throws TransactionRolledBackException, WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void unknown()
- throws SystemException
- {
- throw new SystemException();
- }
-
- public void error()
- throws SystemException
- {
- throw new SystemException();
- }
-}
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestReadOnlyVoteParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestReadOnlyVoteParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestReadOnlyVoteParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,75 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2003, 2004,
- *
- * Arjuna Technologies Limited.
- *
- * $Id: TestReadOnlyVoteParticipant.java,v 1.1.2.1 2005/11/22 10:37:39 kconner Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.Participant;
-import com.arjuna.wst.ReadOnly;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.TransactionRolledBackException;
-import com.arjuna.wst.Vote;
-import com.arjuna.wst.WrongStateException;
-
-public class TestReadOnlyVoteParticipant implements Participant
-{
- public Vote prepare()
- throws WrongStateException, SystemException
- {
- return new ReadOnly();
- }
-
- public void commit()
- throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void rollback()
- throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void commitOnePhase()
- throws TransactionRolledBackException, WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void unknown()
- throws SystemException
- {
- throw new SystemException();
- }
-
- public void error()
- throws SystemException
- {
- throw new SystemException();
- }
-}
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,77 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2004, Arjuna Technologies Limited.
- *
- * $IdD$
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.BusinessAgreementWithCoordinatorCompletionParticipant;
-import com.arjuna.wst.FaultedException;
-import com.arjuna.wst.Status;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.WrongStateException;
-
-public class TestSystemExceptionBusinessAgreementWithCoordinatorCompletionParticipant implements BusinessAgreementWithCoordinatorCompletionParticipant
-{
-
- public void close () throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void cancel () throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void compensate () throws FaultedException, WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void forget () throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void complete () throws WrongStateException, SystemException
- {
- }
-
- public String status () throws SystemException
- {
- return Status.STATUS_ACTIVE;
- }
-
- public void unknown () throws SystemException
- {
- throw new SystemException();
- }
-
- public void error () throws SystemException
- {
- throw new SystemException();
- }
-
-}
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,73 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2003, Arjuna Technologies Limited.
- *
- * $Id: TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant.java,v 1.1.2.1 2004/05/26 10:04:53 nmcl Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant;
-import com.arjuna.wst.FaultedException;
-import com.arjuna.wst.Status;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.WrongStateException;
-
-public class TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant implements BusinessAgreementWithParticipantCompletionParticipant
-{
-
- public void close () throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void cancel () throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void compensate () throws FaultedException, WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public String status () throws SystemException
- {
- return Status.STATUS_ACTIVE;
- }
-
- public void forget () throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void unknown () throws SystemException
- {
- throw new SystemException();
- }
-
- public void error () throws SystemException
- {
- throw new SystemException();
- }
-
-}
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,74 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2003, 2004,
- *
- * Arjuna Technologies Limited.
- *
- * $Id: TestSystemExceptionParticipant.java,v 1.1.2.1 2005/11/22 10:37:39 kconner Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.Participant;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.TransactionRolledBackException;
-import com.arjuna.wst.Vote;
-import com.arjuna.wst.WrongStateException;
-
-public class TestSystemExceptionParticipant implements Participant
-{
- public Vote prepare()
- throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void commit()
- throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void rollback()
- throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void commitOnePhase()
- throws TransactionRolledBackException, WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void unknown()
- throws SystemException
- {
- throw new SystemException();
- }
-
- public void error()
- throws SystemException
- {
- throw new SystemException();
- }
-}
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestTransactionRolledBackExceptionParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestTransactionRolledBackExceptionParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestTransactionRolledBackExceptionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,74 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2003, 2004,
- *
- * Arjuna Technologies Limited.
- *
- * $Id: TestTransactionRolledBackExceptionParticipant.java,v 1.1.2.1 2005/11/22 10:37:40 kconner Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.Participant;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.TransactionRolledBackException;
-import com.arjuna.wst.Vote;
-import com.arjuna.wst.WrongStateException;
-
-public class TestTransactionRolledBackExceptionParticipant implements Participant
-{
- public Vote prepare()
- throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void commit()
- throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void rollback()
- throws WrongStateException, SystemException
- {
- throw new SystemException();
- }
-
- public void commitOnePhase()
- throws TransactionRolledBackException, WrongStateException, SystemException
- {
- throw new TransactionRolledBackException();
- }
-
- public void unknown()
- throws SystemException
- {
- throw new SystemException();
- }
-
- public void error()
- throws SystemException
- {
- throw new SystemException();
- }
-}
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,75 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2004, Arjuna Technologies Limited.
- *
- * $Id: TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java,v 1.1.2.1 2004/05/26 10:04:53 nmcl Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.BusinessAgreementWithCoordinatorCompletionParticipant;
-import com.arjuna.wst.FaultedException;
-import com.arjuna.wst.Status;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.WrongStateException;
-
-public class TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant implements BusinessAgreementWithCoordinatorCompletionParticipant
-{
-
- public void close () throws WrongStateException, SystemException
- {
- throw new WrongStateException();
- }
-
- public void cancel () throws WrongStateException, SystemException
- {
- throw new WrongStateException();
- }
-
- public void compensate () throws FaultedException, WrongStateException, SystemException
- {
- throw new WrongStateException();
- }
-
- public String status () throws SystemException
- {
- return Status.STATUS_ACTIVE;
- }
-
- public void forget () throws WrongStateException, SystemException
- {
- throw new WrongStateException();
- }
-
- public void complete () throws WrongStateException, SystemException
- {
- }
-
- public void unknown () throws SystemException
- {
- }
-
- public void error () throws SystemException
- {
- }
-
-}
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,71 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2003, Arjuna Technologies Limited.
- *
- * $Id: TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant.java,v 1.1.2.1 2004/05/26 10:04:54 nmcl Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant;
-import com.arjuna.wst.FaultedException;
-import com.arjuna.wst.Status;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.WrongStateException;
-
-public class TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant implements BusinessAgreementWithParticipantCompletionParticipant
-{
-
- public void close () throws WrongStateException, SystemException
- {
- throw new WrongStateException();
- }
-
- public void cancel () throws WrongStateException, SystemException
- {
- throw new WrongStateException();
- }
-
- public void compensate () throws FaultedException, WrongStateException, SystemException
- {
- throw new WrongStateException();
- }
-
- public String status () throws SystemException
- {
- return Status.STATUS_ACTIVE;
- }
-
- public void forget () throws WrongStateException, SystemException
- {
- throw new WrongStateException();
- }
-
- public void unknown () throws SystemException
- {
- }
-
- public void error () throws SystemException
- {
- }
-
-}
Deleted: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,74 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (c) 2003, 2004,
- *
- * Arjuna Technologies Limited.
- *
- * $Id: TestWrongStateExceptionParticipant.java,v 1.1.2.1 2005/11/22 10:37:38 kconner Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.Participant;
-import com.arjuna.wst.SystemException;
-import com.arjuna.wst.TransactionRolledBackException;
-import com.arjuna.wst.Vote;
-import com.arjuna.wst.WrongStateException;
-
-public class TestWrongStateExceptionParticipant implements Participant
-{
- public Vote prepare()
- throws WrongStateException, SystemException
- {
- throw new WrongStateException();
- }
-
- public void commit()
- throws WrongStateException, SystemException
- {
- throw new WrongStateException();
- }
-
- public void rollback()
- throws WrongStateException, SystemException
- {
- throw new WrongStateException();
- }
-
- public void commitOnePhase()
- throws TransactionRolledBackException, WrongStateException, SystemException
- {
- throw new WrongStateException();
- }
-
- public void unknown()
- throws SystemException
- {
- throw new SystemException();
- }
-
- public void error()
- throws SystemException
- {
- throw new SystemException();
- }
-}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestAbortedVoteParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestAbortedVoteParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestAbortedVoteParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestAbortedVoteParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2003, 2004,
+ *
+ * Arjuna Technologies Limited.
+ *
+ * $Id: TestAbortedVoteParticipant.java,v 1.1.2.1 2005/11/22 10:37:41 kconner Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.Participant;
+import com.arjuna.wst.Aborted;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.TransactionRolledBackException;
+import com.arjuna.wst.Vote;
+import com.arjuna.wst.WrongStateException;
+
+public class TestAbortedVoteParticipant implements Participant
+{
+ public Vote prepare()
+ throws WrongStateException, SystemException
+ {
+ return new Aborted();
+ }
+
+ public void commit()
+ throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void rollback()
+ throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void commitOnePhase()
+ throws TransactionRolledBackException, WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void unknown()
+ throws SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void error()
+ throws SystemException
+ {
+ throw new SystemException();
+ }
+}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2004, Arjuna Technologies Limited.
+ *
+ * $Id: TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java,v 1.1.2.1 2004/05/26 10:04:51 nmcl Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.BusinessAgreementWithCoordinatorCompletionParticipant;
+import com.arjuna.wst.FaultedException;
+import com.arjuna.wst.Status;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.WrongStateException;
+
+public class TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant implements BusinessAgreementWithCoordinatorCompletionParticipant
+{
+
+ public void close () throws WrongStateException, SystemException
+ {
+ }
+
+ public void cancel () throws WrongStateException, SystemException
+ {
+ }
+
+ public void compensate () throws FaultedException, WrongStateException, SystemException
+ {
+ throw new FaultedException();
+ }
+
+ public String status () throws SystemException
+ {
+ return Status.STATUS_ACTIVE;
+ }
+
+ public void forget () throws WrongStateException, SystemException
+ {
+ }
+
+ public void complete () throws WrongStateException, SystemException
+ {
+ }
+
+ public void unknown () throws SystemException
+ {
+ }
+
+ public void error () throws SystemException
+ {
+ }
+
+}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2004, Arjuna Technologies Limited.
+ *
+ * $Id: TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant.java,v 1.1.2.1 2004/05/26 10:04:52 nmcl Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant;
+import com.arjuna.wst.FaultedException;
+import com.arjuna.wst.Status;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.WrongStateException;
+
+public class TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant implements BusinessAgreementWithParticipantCompletionParticipant
+{
+
+ public void close () throws WrongStateException, SystemException
+ {
+ }
+
+ public void cancel () throws WrongStateException, SystemException
+ {
+ }
+
+ public void compensate () throws FaultedException, WrongStateException, SystemException
+ {
+ throw new FaultedException();
+ }
+
+ public String status () throws SystemException
+ {
+ return Status.STATUS_ACTIVE;
+ }
+
+ public void forget () throws WrongStateException, SystemException
+ {
+ }
+
+ public void unknown () throws SystemException
+ {
+ }
+
+ public void error () throws SystemException
+ {
+ }
+
+}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,70 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2004, Arjuna Technologies Limited.
+ *
+ * $Id: TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java,v 1.1.2.1 2004/05/26 10:04:52 nmcl Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.BusinessAgreementWithCoordinatorCompletionParticipant;
+import com.arjuna.wst.Status;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.WrongStateException;
+
+public class TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant implements BusinessAgreementWithCoordinatorCompletionParticipant
+{
+
+ public void close () throws WrongStateException, SystemException
+ {
+ }
+
+ public void cancel () throws WrongStateException, SystemException
+ {
+ }
+
+ public void compensate () throws WrongStateException, SystemException
+ {
+ }
+
+ public String status () throws SystemException
+ {
+ return Status.STATUS_ACTIVE;
+ }
+
+ public void forget () throws WrongStateException, SystemException
+ {
+ }
+
+ public void complete () throws WrongStateException, SystemException
+ {
+ }
+
+ public void unknown () throws SystemException
+ {
+ }
+
+ public void error () throws SystemException
+ {
+ }
+
+}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,67 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2003, Arjuna Technologies Limited.
+ *
+ * $Id: TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant.java,v 1.1.2.1 2004/05/26 10:04:52 nmcl Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant;
+import com.arjuna.wst.FaultedException;
+import com.arjuna.wst.Status;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.WrongStateException;
+
+public class TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant implements BusinessAgreementWithParticipantCompletionParticipant
+{
+
+ public void close () throws WrongStateException, SystemException
+ {
+ }
+
+ public void cancel () throws WrongStateException, SystemException
+ {
+ }
+
+ public void compensate () throws FaultedException, WrongStateException, SystemException
+ {
+ }
+
+ public String status () throws SystemException
+ {
+ return Status.STATUS_ACTIVE;
+ }
+
+ public void forget () throws WrongStateException, SystemException
+ {
+ }
+
+ public void unknown () throws SystemException
+ {
+ }
+
+ public void error () throws SystemException
+ {
+ }
+
+}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestNoExceptionParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestNoExceptionParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestNoExceptionParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestNoExceptionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,69 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2003, 2004,
+ *
+ * Arjuna Technologies Limited.
+ *
+ * $Id: TestNoExceptionParticipant.java,v 1.1.2.1 2005/11/22 10:37:38 kconner Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.Participant;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.TransactionRolledBackException;
+import com.arjuna.wst.Vote;
+import com.arjuna.wst.WrongStateException;
+
+public class TestNoExceptionParticipant implements Participant
+{
+ public Vote prepare()
+ throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void commit()
+ throws WrongStateException, SystemException
+ {
+ }
+
+ public void rollback()
+ throws WrongStateException, SystemException
+ {
+ }
+
+ public void commitOnePhase()
+ throws TransactionRolledBackException, WrongStateException, SystemException
+ {
+ }
+
+ public void unknown()
+ throws SystemException
+ {
+ }
+
+ public void error()
+ throws SystemException
+ {
+ }
+}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestPreparedVoteParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestPreparedVoteParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestPreparedVoteParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestPreparedVoteParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2003, 2004,
+ *
+ * Arjuna Technologies Limited.
+ *
+ * $Id: TestPreparedVoteParticipant.java,v 1.1.2.1 2005/11/22 10:37:37 kconner Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.Participant;
+import com.arjuna.wst.Prepared;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.TransactionRolledBackException;
+import com.arjuna.wst.Vote;
+import com.arjuna.wst.WrongStateException;
+
+public class TestPreparedVoteParticipant implements Participant
+{
+ public Vote prepare()
+ throws WrongStateException, SystemException
+ {
+ return new Prepared();
+ }
+
+ public void commit()
+ throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void rollback()
+ throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void commitOnePhase()
+ throws TransactionRolledBackException, WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void unknown()
+ throws SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void error()
+ throws SystemException
+ {
+ throw new SystemException();
+ }
+}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestReadOnlyVoteParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestReadOnlyVoteParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestReadOnlyVoteParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestReadOnlyVoteParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2003, 2004,
+ *
+ * Arjuna Technologies Limited.
+ *
+ * $Id: TestReadOnlyVoteParticipant.java,v 1.1.2.1 2005/11/22 10:37:39 kconner Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.Participant;
+import com.arjuna.wst.ReadOnly;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.TransactionRolledBackException;
+import com.arjuna.wst.Vote;
+import com.arjuna.wst.WrongStateException;
+
+public class TestReadOnlyVoteParticipant implements Participant
+{
+ public Vote prepare()
+ throws WrongStateException, SystemException
+ {
+ return new ReadOnly();
+ }
+
+ public void commit()
+ throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void rollback()
+ throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void commitOnePhase()
+ throws TransactionRolledBackException, WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void unknown()
+ throws SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void error()
+ throws SystemException
+ {
+ throw new SystemException();
+ }
+}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestSystemExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestSystemExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestSystemExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,77 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2004, Arjuna Technologies Limited.
+ *
+ * $IdD$
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.BusinessAgreementWithCoordinatorCompletionParticipant;
+import com.arjuna.wst.FaultedException;
+import com.arjuna.wst.Status;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.WrongStateException;
+
+public class TestSystemExceptionBusinessAgreementWithCoordinatorCompletionParticipant implements BusinessAgreementWithCoordinatorCompletionParticipant
+{
+
+ public void close () throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void cancel () throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void compensate () throws FaultedException, WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void forget () throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void complete () throws WrongStateException, SystemException
+ {
+ }
+
+ public String status () throws SystemException
+ {
+ return Status.STATUS_ACTIVE;
+ }
+
+ public void unknown () throws SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void error () throws SystemException
+ {
+ throw new SystemException();
+ }
+
+}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,73 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2003, Arjuna Technologies Limited.
+ *
+ * $Id: TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant.java,v 1.1.2.1 2004/05/26 10:04:53 nmcl Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant;
+import com.arjuna.wst.FaultedException;
+import com.arjuna.wst.Status;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.WrongStateException;
+
+public class TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant implements BusinessAgreementWithParticipantCompletionParticipant
+{
+
+ public void close () throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void cancel () throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void compensate () throws FaultedException, WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public String status () throws SystemException
+ {
+ return Status.STATUS_ACTIVE;
+ }
+
+ public void forget () throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void unknown () throws SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void error () throws SystemException
+ {
+ throw new SystemException();
+ }
+
+}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestSystemExceptionParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestSystemExceptionParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestSystemExceptionParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestSystemExceptionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2003, 2004,
+ *
+ * Arjuna Technologies Limited.
+ *
+ * $Id: TestSystemExceptionParticipant.java,v 1.1.2.1 2005/11/22 10:37:39 kconner Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.Participant;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.TransactionRolledBackException;
+import com.arjuna.wst.Vote;
+import com.arjuna.wst.WrongStateException;
+
+public class TestSystemExceptionParticipant implements Participant
+{
+ public Vote prepare()
+ throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void commit()
+ throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void rollback()
+ throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void commitOnePhase()
+ throws TransactionRolledBackException, WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void unknown()
+ throws SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void error()
+ throws SystemException
+ {
+ throw new SystemException();
+ }
+}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestTransactionRolledBackExceptionParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestTransactionRolledBackExceptionParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestTransactionRolledBackExceptionParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestTransactionRolledBackExceptionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2003, 2004,
+ *
+ * Arjuna Technologies Limited.
+ *
+ * $Id: TestTransactionRolledBackExceptionParticipant.java,v 1.1.2.1 2005/11/22 10:37:40 kconner Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.Participant;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.TransactionRolledBackException;
+import com.arjuna.wst.Vote;
+import com.arjuna.wst.WrongStateException;
+
+public class TestTransactionRolledBackExceptionParticipant implements Participant
+{
+ public Vote prepare()
+ throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void commit()
+ throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void rollback()
+ throws WrongStateException, SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void commitOnePhase()
+ throws TransactionRolledBackException, WrongStateException, SystemException
+ {
+ throw new TransactionRolledBackException();
+ }
+
+ public void unknown()
+ throws SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void error()
+ throws SystemException
+ {
+ throw new SystemException();
+ }
+}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2004, Arjuna Technologies Limited.
+ *
+ * $Id: TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant.java,v 1.1.2.1 2004/05/26 10:04:53 nmcl Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.BusinessAgreementWithCoordinatorCompletionParticipant;
+import com.arjuna.wst.FaultedException;
+import com.arjuna.wst.Status;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.WrongStateException;
+
+public class TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant implements BusinessAgreementWithCoordinatorCompletionParticipant
+{
+
+ public void close () throws WrongStateException, SystemException
+ {
+ throw new WrongStateException();
+ }
+
+ public void cancel () throws WrongStateException, SystemException
+ {
+ throw new WrongStateException();
+ }
+
+ public void compensate () throws FaultedException, WrongStateException, SystemException
+ {
+ throw new WrongStateException();
+ }
+
+ public String status () throws SystemException
+ {
+ return Status.STATUS_ACTIVE;
+ }
+
+ public void forget () throws WrongStateException, SystemException
+ {
+ throw new WrongStateException();
+ }
+
+ public void complete () throws WrongStateException, SystemException
+ {
+ }
+
+ public void unknown () throws SystemException
+ {
+ }
+
+ public void error () throws SystemException
+ {
+ }
+
+}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,71 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2003, Arjuna Technologies Limited.
+ *
+ * $Id: TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant.java,v 1.1.2.1 2004/05/26 10:04:54 nmcl Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant;
+import com.arjuna.wst.FaultedException;
+import com.arjuna.wst.Status;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.WrongStateException;
+
+public class TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant implements BusinessAgreementWithParticipantCompletionParticipant
+{
+
+ public void close () throws WrongStateException, SystemException
+ {
+ throw new WrongStateException();
+ }
+
+ public void cancel () throws WrongStateException, SystemException
+ {
+ throw new WrongStateException();
+ }
+
+ public void compensate () throws FaultedException, WrongStateException, SystemException
+ {
+ throw new WrongStateException();
+ }
+
+ public String status () throws SystemException
+ {
+ return Status.STATUS_ACTIVE;
+ }
+
+ public void forget () throws WrongStateException, SystemException
+ {
+ throw new WrongStateException();
+ }
+
+ public void unknown () throws SystemException
+ {
+ }
+
+ public void error () throws SystemException
+ {
+ }
+
+}
Copied: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestWrongStateExceptionParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/TestWrongStateExceptionParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestWrongStateExceptionParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst/tests/common/TestWrongStateExceptionParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (c) 2003, 2004,
+ *
+ * Arjuna Technologies Limited.
+ *
+ * $Id: TestWrongStateExceptionParticipant.java,v 1.1.2.1 2005/11/22 10:37:38 kconner Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.Participant;
+import com.arjuna.wst.SystemException;
+import com.arjuna.wst.TransactionRolledBackException;
+import com.arjuna.wst.Vote;
+import com.arjuna.wst.WrongStateException;
+
+public class TestWrongStateExceptionParticipant implements Participant
+{
+ public Vote prepare()
+ throws WrongStateException, SystemException
+ {
+ throw new WrongStateException();
+ }
+
+ public void commit()
+ throws WrongStateException, SystemException
+ {
+ throw new WrongStateException();
+ }
+
+ public void rollback()
+ throws WrongStateException, SystemException
+ {
+ throw new WrongStateException();
+ }
+
+ public void commitOnePhase()
+ throws TransactionRolledBackException, WrongStateException, SystemException
+ {
+ throw new WrongStateException();
+ }
+
+ public void unknown()
+ throws SystemException
+ {
+ throw new SystemException();
+ }
+
+ public void error()
+ throws SystemException
+ {
+ throw new SystemException();
+ }
+}
Modified: labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst11/tests/TestInitialisation.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst11/tests/TestInitialisation.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WS-T/tests/src/com/arjuna/wst11/tests/TestInitialisation.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -34,23 +34,16 @@
import com.arjuna.wst11.BusinessActivityTerminator;
-import com.arjuna.wst.tests.TestPreparedVoteParticipant;
-import com.arjuna.wst.tests.TestAbortedVoteParticipant;
-import com.arjuna.wst.tests.TestReadOnlyVoteParticipant;
-import com.arjuna.wst.tests.TestNoExceptionParticipant;
-import com.arjuna.wst.tests.TestTransactionRolledBackExceptionParticipant;
-import com.arjuna.wst.tests.TestWrongStateExceptionParticipant;
-import com.arjuna.wst.tests.TestSystemExceptionParticipant;
+import com.arjuna.wst.tests.common.TestTransactionRolledBackExceptionParticipant;
+import com.arjuna.wst.tests.common.TestWrongStateExceptionParticipant;
+import com.arjuna.wst.tests.common.TestSystemExceptionParticipant;
-import com.arjuna.wst.tests.TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant;
-import com.arjuna.wst.tests.TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant;
-import com.arjuna.wst.tests.TestNoExceptionBusinessAgreementWithParticipantCompletionParticipant;
-import com.arjuna.wst.tests.TestFaultedExceptionBusinessAgreementWithParticipantCompletionParticipant;
+import com.arjuna.wst.tests.common.TestSystemExceptionBusinessAgreementWithParticipantCompletionParticipant;
+import com.arjuna.wst.tests.common.TestWrongStateExceptionBusinessAgreementWithParticipantCompletionParticipant;
-import com.arjuna.wst.tests.TestSystemExceptionBusinessAgreementWithCoordinatorCompletionParticipant;
-import com.arjuna.wst.tests.TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant;
-import com.arjuna.wst.tests.TestNoExceptionBusinessAgreementWithCoordinatorCompletionParticipant;
-import com.arjuna.wst.tests.TestFaultedExceptionBusinessAgreementWithCoordinatorCompletionParticipant;
+import com.arjuna.wst.tests.common.TestSystemExceptionBusinessAgreementWithCoordinatorCompletionParticipant;
+import com.arjuna.wst.tests.common.TestWrongStateExceptionBusinessAgreementWithCoordinatorCompletionParticipant;
+import com.arjuna.wst.tests.common.*;
/**
* listener class to set up WSTX 1.1 tests
Modified: labs/jbosstm/trunk/XTS/WSAS/build.xml
===================================================================
--- labs/jbosstm/trunk/XTS/WSAS/build.xml 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSAS/build.xml 2009-03-19 15:27:39 UTC (rev 25741)
@@ -193,7 +193,8 @@
</target>
<!-- test targets -->
- <target name="com.arjuna.mwlabs.wsas.tests.init" depends="com.arjuna.mw.wsas.clean">
+ <target name="com.arjuna.mwlabs.wsas.tests.init">
+ <delete dir="${com.arjuna.mwlabs.wsas.tests.dest.root}"/>
<!-- make the test destination directories -->
<mkdir dir="${com.arjuna.mwlabs.wsas.tests.dest.root}"/>
<mkdir dir="${com.arjuna.mwlabs.wsas.tests.dest}"/>
@@ -202,7 +203,9 @@
<mkdir dir="${com.arjuna.mwlabs.wsas.tests.jar.dest}"/>
</target>
- <target name="com.arjuna.mwlabs.wsas.tests.compile" depends="com.arjuna.mwlabs.wsas.tests.init, com.arjuna.mw.wsas.jar">
+ <!-- this assumes the required libs have already been built -->
+
+ <target name="com.arjuna.mwlabs.wsas.tests.compile" depends="com.arjuna.mwlabs.wsas.tests.init">
<javac destdir="${com.arjuna.mwlabs.wsas.tests.dest}" debug="yes" optimize="no">
<classpath>
<pathelement path="${com.arjuna.mwlabs.wsas.jar.dest}/${com.arjuna.mwlabs.ts.modulename}.jar"/>
@@ -255,6 +258,9 @@
<target name="jar" depends="com.arjuna.mw.wsas.jar"/>
<target name="clean" depends="com.arjuna.mw.wsas.clean"/>
<target name="tests-webapps" depends="com.arjuna.mwlabs.wsas.tests.webapps"/>
+ <!-- production target for 1.1 tests - tests are not version specific -->
+ <target name="tests-11" depends="tests-webapps"/>
+ <target name="tests-both" depends="tests-webapps"/>
<target name="tests-deploy" depends="com.arjuna.mwlabs.wsas.tests.deploy"/>
<target name="tests-undeploy" depends="com.arjuna.mwlabs.wsas.tests.undeploy"/>
</project>
Modified: labs/jbosstm/trunk/XTS/WSCF/build.xml
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/build.xml 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSCF/build.xml 2009-03-19 15:27:39 UTC (rev 25741)
@@ -297,7 +297,9 @@
</target>
<!-- test targets -->
- <target name="com.arjuna.mwlabs.wscf.tests.init" depends="com.arjuna.mw.wscf.clean">
+ <target name="com.arjuna.mwlabs.wscf.tests.init">
+ <!-- delete the test destination directories -->
+ <delete dir="${com.arjuna.mwlabs.wscf.tests.dest.root}"/>
<!-- make the test destination directories -->
<mkdir dir="${com.arjuna.mwlabs.wscf.tests.dest.root}"/>
<mkdir dir="${com.arjuna.mwlabs.wscf.tests.dest}"/>
@@ -305,8 +307,9 @@
<mkdir dir="${com.arjuna.mwlabs.wscf.tests.webapps.dest}"/>
<mkdir dir="${com.arjuna.mwlabs.wscf.tests.jar.dest}"/>
</target>
-
- <target name="com.arjuna.mwlabs.wscf.tests.compile" depends="com.arjuna.mwlabs.wscf.tests.init, com.arjuna.mw.wscf.jar">
+
+ <!-- this assumes the required libs have already been built-->
+ <target name="com.arjuna.mwlabs.wscf.tests.compile" depends="com.arjuna.mwlabs.wscf.tests.init">
<javac destdir="${com.arjuna.mwlabs.wscf.tests.dest}" debug="yes" optimize="no">
<classpath>
<pathelement path="${com.arjuna.mwlabs.wscf.jar.dest}/${com.arjuna.mwlabs.ts.modulename}.jar"/>
@@ -321,6 +324,21 @@
</javac>
</target>
+ <!-- this assumes the required libs have already been built-->
+ <target name="com.arjuna.mwlabs.wscf.tests.compile11" depends="com.arjuna.mwlabs.wscf.tests.init">
+ <javac destdir="${com.arjuna.mwlabs.wscf.tests.dest}" debug="yes" optimize="no">
+ <classpath>
+ <pathelement path="${com.arjuna.mwlabs.wscf.jar.dest}/${com.arjuna.mwlabs.ts.modulename}.jar"/>
+ <pathelement path="${com.arjuna.mwlabs.wscf.jar.dest}/${com.arjuna.mwlabs.ts.modulename}11.jar"/>
+ <pathelement path="${com.arjuna.mwlabs.wsc.jar.dest}/${wsc11.libs}"/>
+ <path refid="com.arjuna.mwlabs.wscf.tests.lib.path"/>
+ <path refid="com.arjuna.mwlabs.wscf.lib.classpath"/>
+ </classpath>
+ <src path="${com.arjuna.mwlabs.wscf.tests.src}"/>
+ <exclude name="com/arjuna/wscf/**"/>
+ </javac>
+ </target>
+
<target name="com.arjuna.mwlabs.wscf.tests.webapps" depends="com.arjuna.mwlabs.wscf.tests.compile">
<copy file="${com.arjuna.mwlabs.wscf.tests.dd}/wscf-tests_web-app.xml" tofile="${com.arjuna.mwlabs.wscf.tests.dd.dest}/web-app.xml">
</copy>
@@ -342,10 +360,32 @@
</ear>
</target>
+ <target name="com.arjuna.mwlabs.wscf.tests.webapps11" depends="com.arjuna.mwlabs.wscf.tests.compile11">
+ <copy file="${com.arjuna.mwlabs.wscf.tests.dd}/wscf11-tests_web-app.xml" tofile="${com.arjuna.mwlabs.wscf.tests.dd.dest}/web-app11.xml">
+ </copy>
+ <jar jarfile="${com.arjuna.mwlabs.wscf.tests.webapps.dest}/wscf-tests.jar">
+ <fileset dir="${com.arjuna.mwlabs.wscf.tests.dest}"/>
+ </jar>
+ <war warfile="${com.arjuna.mwlabs.wscf.tests.webapps.dest}/wscf11-tests.war" webxml="${com.arjuna.mwlabs.wscf.tests.dd.dest}/web-app11.xml"/>
+ <ear earfile="${com.arjuna.mwlabs.wscf.tests.webapps.dest}/wscf-tests.ear" appxml="${com.arjuna.mwlabs.wscf.tests.dd}/wscf11-tests_application.xml">
+ <!-- we only need to deploy the ext test libs (junit) and
+ the tests war in JBoss AS 5.0. the rest of the XTS
+ code is deployed as a sar and the TS code is deployed
+ in the server lib
+ -->
+ <fileset dir="${com.arjuna.xts.ext}" includes="${tests.libs}"/>
+ <fileset dir="${com.arjuna.mwlabs.wscf.tests.webapps.dest}" includes="wscf11-tests.war wscf-tests.jar"/>
+ </ear>
+ </target>
+
<target name="com.arjuna.mwlabs.wscf.tests.deploy" depends="com.arjuna.mwlabs.wscf.tests.webapps, com.arjuna.mwlabs.wscf.tests.undeploy">
<copy file="${com.arjuna.mwlabs.wscf.tests.webapps.dest}/wscf-tests.ear" tofile="${deploy.dir}/wscf-tests.ear"/>
</target>
+ <target name="com.arjuna.mwlabs.wscf.tests.deploy11" depends="com.arjuna.mwlabs.wscf.tests.webapps11, com.arjuna.mwlabs.wscf.tests.undeploy">
+ <copy file="${com.arjuna.mwlabs.wscf.tests.webapps.dest}/wscf-tests.ear" tofile="${deploy.dir}/wscf-tests.ear"/>
+ </target>
+
<target name="com.arjuna.mwlabs.wscf.tests.undeploy">
<delete file="${deploy.dir}/wscf-tests.ear"/>
</target>
@@ -368,6 +408,11 @@
<target name="war" depends="com.arjuna.mw.wscf.war"/>
<target name="clean" depends="com.arjuna.mw.wscf.clean"/>
<target name="tests-webapps" depends="com.arjuna.mwlabs.wscf.tests.webapps"/>
+ <target name="tests-webapps11" depends="com.arjuna.mwlabs.wscf.tests.webapps11"/>
+ <!-- production target for 1.1 tests -->
+ <target name="tests-11" depends="tests-webapps11"/>
+ <target name="tests-both" depends="tests-webapps"/>
<target name="tests-deploy" depends="com.arjuna.mwlabs.wscf.tests.deploy"/>
+ <target name="tests-deploy11" depends="tests-webapps11"/>
<target name="tests-undeploy" depends="com.arjuna.mwlabs.wscf.tests.undeploy"/>
</project>
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/TwoPhaseParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/TwoPhaseParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/TwoPhaseParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/TwoPhaseParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,116 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (C) 2002,
+ *
+ * Arjuna Technologies Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: TwoPhaseParticipant.java,v 1.3 2005/01/15 21:21:06 kconner Exp $
+ */
+
+package com.arjuna.wscf11.tests;
+
+import com.arjuna.ats.arjuna.state.InputObjectState;
+import com.arjuna.ats.arjuna.state.OutputObjectState;
+import com.arjuna.mw.wsas.exceptions.SystemException;
+import com.arjuna.mw.wsas.exceptions.WrongStateException;
+import com.arjuna.mw.wscf.exceptions.InvalidParticipantException;
+import com.arjuna.mw.wscf.model.twophase.exceptions.HeuristicCancelException;
+import com.arjuna.mw.wscf.model.twophase.exceptions.HeuristicConfirmException;
+import com.arjuna.mw.wscf.model.twophase.exceptions.HeuristicHazardException;
+import com.arjuna.mw.wscf.model.twophase.exceptions.HeuristicMixedException;
+import com.arjuna.mw.wscf.model.twophase.participants.Participant;
+import com.arjuna.mw.wscf.model.twophase.vote.Vote;
+import com.arjuna.mw.wscf.model.twophase.vote.VoteConfirm;
+
+import java.io.IOException;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: TwoPhaseParticipant.java,v 1.3 2005/01/15 21:21:06 kconner Exp $
+ * @since 1.0.
+ */
+
+public class TwoPhaseParticipant implements Participant
+{
+ public TwoPhaseParticipant(String id)
+ {
+ _id = id;
+ }
+
+ public Vote prepare () throws InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, SystemException
+ {
+ System.out.println("TwoPhaseParticipant.prepare");
+
+ return new VoteConfirm();
+ }
+
+ public void confirm () throws InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, HeuristicCancelException, SystemException
+ {
+ System.out.println("TwoPhaseParticipant.confirm");
+ }
+
+ public void cancel () throws InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, HeuristicConfirmException, SystemException
+ {
+ System.out.println("TwoPhaseParticipant.cancel");
+ }
+
+ public void confirmOnePhase () throws InvalidParticipantException, WrongStateException, HeuristicHazardException, HeuristicMixedException, HeuristicCancelException, SystemException
+ {
+ System.out.println("TwoPhaseParticipant.confirmOnePhase");
+ }
+
+ public void forget () throws InvalidParticipantException, WrongStateException, SystemException
+ {
+ System.out.println("TwoPhaseParticipant.forget");
+ }
+
+ public String id () throws SystemException
+ {
+ return _id;
+ }
+
+ public boolean save_state(OutputObjectState os)
+ {
+ try {
+ os.packString(_id);
+ } catch (IOException ioe) {
+ return false;
+ }
+ return true ;
+ }
+
+ public boolean restore_state(InputObjectState os)
+ {
+ try {
+ _id = os.unpackString();
+ } catch (IOException e) {
+ return false;
+ }
+ return true ;
+ }
+
+ private String _id;
+
+}
\ No newline at end of file
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/TwoPhaseSynchronization.java (from rev 25709, labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/TwoPhaseSynchronization.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/TwoPhaseSynchronization.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/TwoPhaseSynchronization.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,69 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (C) 2002,
+ *
+ * Arjuna Technologies Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: TwoPhaseSynchronization.java,v 1.1 2003/01/07 10:37:17 nmcl Exp $
+ */
+
+package com.arjuna.wscf11.tests;
+
+import com.arjuna.mw.wscf.model.twophase.common.*;
+import com.arjuna.mw.wscf.model.twophase.outcomes.*;
+import com.arjuna.mw.wscf.model.twophase.participants.*;
+import com.arjuna.mw.wscf.model.twophase.exceptions.*;
+import com.arjuna.mw.wscf.model.twophase.vote.*;
+
+import com.arjuna.mw.wscf.exceptions.*;
+
+import com.arjuna.mw.wsas.exceptions.SystemException;
+import com.arjuna.mw.wsas.exceptions.WrongStateException;
+import com.arjuna.mw.wsas.exceptions.ProtocolViolationException;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: TwoPhaseSynchronization.java,v 1.1 2003/01/07 10:37:17 nmcl Exp $
+ * @since 1.0.
+ */
+
+public class TwoPhaseSynchronization implements Synchronization
+{
+
+ public TwoPhaseSynchronization()
+ {
+ }
+
+ public void beforeCompletion () throws SystemException
+ {
+ System.out.println("TwoPhaseSynchronization.beforeCompletion");
+ }
+
+ public void afterCompletion (int status) throws SystemException
+ {
+ System.out.println("TwoPhaseSynchronization.afterCompletion ( "+CoordinationResult.stringForm(status)+" )");
+ }
+
+}
\ No newline at end of file
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/WSCF11TestSuite.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/WSCF11TestSuite.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/WSCF11TestSuite.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -29,24 +29,24 @@
public WSCF11TestSuite()
{
// wscf twophase tests
- addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.StartEnd.class));
- addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.BeginConfirm.class));
- addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.BeginCancel.class));
- addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.Suspend.class));
- addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.SuspendResume.class));
- addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.SuspendConfirm.class));
- addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.CancelOnlyCancel.class));
- addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.CancelOnlyConfirm.class));
- addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.AddParticipant.class));
- addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.SuspendParticipant.class));
- addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.AddSynchronization.class));
- addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.ParticipantSynchronization.class));
+ addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.StartEnd.class));
+ addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.BeginConfirm.class));
+ addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.BeginCancel.class));
+ addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.Suspend.class));
+ addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.SuspendResume.class));
+ addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.SuspendConfirm.class));
+ addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.CancelOnlyCancel.class));
+ addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.CancelOnlyConfirm.class));
+ addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.AddParticipant.class));
+ addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.SuspendParticipant.class));
+ addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.AddSynchronization.class));
+ addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.ParticipantSynchronization.class));
// this test relies on an invalid, out of date DOM implementation
- //addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.ContextOutput.class));
+ //addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.ContextOutput.class));
// TODO -- these tests break because ArjunaContextImple.toString() is broken. fix after 4.3.0 release
- //addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.WscContext.class));
- //addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.WscNestedContext.class));
+ //addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.WscContext.class));
+ //addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.WscNestedContext.class));
// this test relies on an invalid, out of date DOM implementation
- //addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.twophase.WscTranslateContext.class));
+ //addTest(new junit.framework.TestSuite(com.arjuna.wscf11.tests.model.twophase.WscTranslateContext.class));
}
}
\ No newline at end of file
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/WSCF11TestUtils.java (from rev 25709, labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/WSCFTestUtils.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/WSCF11TestUtils.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/WSCF11TestUtils.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,45 @@
+package com.arjuna.wscf11.tests;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: adinn
+ * Date: Mar 17, 2008
+ * Time: 9:26:00 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class WSCF11TestUtils {
+ static public void cleanup(com.arjuna.mw.wscf.model.twophase.api.UserCoordinator ua)
+ {
+ try {
+ while (ua.currentActivity() != null) {
+ ua.cancel();
+ }
+ } catch (Exception e) {
+ // do nothing -- caller will be dealing with exceptions
+ }
+ }
+
+ static public void cleanup(com.arjuna.mw.wscf.UserCoordinator ua)
+ {
+ try {
+ while (ua.currentActivity() != null) {
+ ua.end();
+ }
+ } catch (Exception e) {
+ // do nothing -- caller will be dealing with exceptions
+ }
+ }
+
+ static public void cleanup(com.arjuna.mw.wscf.model.twophase.api.CoordinatorManager cm)
+ {
+ try {
+ while (cm.currentActivity() != null) {
+ cm.cancel();
+ }
+ } catch (Exception e) {
+ // do nothing -- caller will be dealing with exceptions
+ }
+ }
+
+
+}
\ No newline at end of file
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/AddParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/AddParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/AddParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -35,8 +35,8 @@
import com.arjuna.mw.wscf11.model.twophase.CoordinatorManagerFactory;
-import com.arjuna.wscf.tests.TwoPhaseParticipant;
-import com.arjuna.wscf.tests.WSCFTestUtils;
+import com.arjuna.wscf11.tests.TwoPhaseParticipant;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
import junit.framework.TestCase;
/**
@@ -67,7 +67,7 @@
}
catch (Exception ex)
{
- WSCFTestUtils.cleanup(cm);
+ WSCF11TestUtils.cleanup(cm);
throw ex;
}
}
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/AddSynchronization.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/AddSynchronization.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/AddSynchronization.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -35,8 +35,8 @@
import com.arjuna.mw.wscf11.model.twophase.CoordinatorManagerFactory;
-import com.arjuna.wscf.tests.TwoPhaseSynchronization;
-import com.arjuna.wscf.tests.WSCFTestUtils;
+import com.arjuna.wscf11.tests.TwoPhaseSynchronization;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
import junit.framework.TestCase;
/**
@@ -67,7 +67,7 @@
}
catch (Exception ex)
{
- WSCFTestUtils.cleanup(cm);
+ WSCF11TestUtils.cleanup(cm);
throw ex;
}
}
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/BeginConfirm.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/BeginConfirm.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/BeginConfirm.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -34,7 +34,7 @@
import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
import com.arjuna.mw.wscf11.model.twophase.UserCoordinatorFactory;
-import com.arjuna.wscf.tests.WSCFTestUtils;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
import junit.framework.TestCase;
/**
@@ -63,7 +63,7 @@
}
catch (Exception ex)
{
- WSCFTestUtils.cleanup(ua);
+ WSCF11TestUtils.cleanup(ua);
throw ex;
}
}
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/CancelOnlyCancel.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/CancelOnlyCancel.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/CancelOnlyCancel.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -36,7 +36,7 @@
import com.arjuna.mw.wscf11.model.twophase.UserCoordinatorFactory;
import com.arjuna.mw.wscf.model.twophase.exceptions.*;
-import com.arjuna.wscf.tests.WSCFTestUtils;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
import junit.framework.TestCase;
/**
@@ -68,11 +68,11 @@
catch (CoordinatorCancelledException ex)
{
// why is it ok to get here?
- WSCFTestUtils.cleanup(ua);
+ WSCF11TestUtils.cleanup(ua);
}
catch (Exception ex)
{
- WSCFTestUtils.cleanup(ua);
+ WSCF11TestUtils.cleanup(ua);
throw ex;
}
}
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/CancelOnlyConfirm.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/CancelOnlyConfirm.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/CancelOnlyConfirm.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -36,7 +36,7 @@
import com.arjuna.mw.wscf11.model.twophase.UserCoordinatorFactory;
import com.arjuna.mw.wscf.model.twophase.exceptions.*;
-import com.arjuna.wscf.tests.WSCFTestUtils;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
import junit.framework.TestCase;
/**
@@ -70,11 +70,11 @@
catch (CoordinatorCancelledException ex)
{
// we should get here
- WSCFTestUtils.cleanup(ua);
+ WSCF11TestUtils.cleanup(ua);
}
catch (Exception ex)
{
- WSCFTestUtils.cleanup(ua);
+ WSCF11TestUtils.cleanup(ua);
throw ex;
}
}
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/ParticipantSynchronization.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/ParticipantSynchronization.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/ParticipantSynchronization.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -35,9 +35,9 @@
import com.arjuna.mw.wscf11.model.twophase.CoordinatorManagerFactory;
-import com.arjuna.wscf.tests.TwoPhaseParticipant;
-import com.arjuna.wscf.tests.TwoPhaseSynchronization;
-import com.arjuna.wscf.tests.WSCFTestUtils;
+import com.arjuna.wscf11.tests.TwoPhaseParticipant;
+import com.arjuna.wscf11.tests.TwoPhaseSynchronization;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
import junit.framework.TestCase;
/**
@@ -70,7 +70,7 @@
}
catch (Exception ex)
{
- WSCFTestUtils.cleanup(cm);
+ WSCF11TestUtils.cleanup(cm);
}
}
}
\ No newline at end of file
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/StartEnd.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/StartEnd.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/StartEnd.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -42,7 +42,7 @@
import com.arjuna.mw.wsas.activity.*;
import com.arjuna.mw.wsas.exceptions.NoActivityException;
-import com.arjuna.wscf.tests.WSCFTestUtils;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
import junit.framework.TestCase;
/**
@@ -59,7 +59,7 @@
{
System.out.println("Running test : " + this.getClass().getName());
- String className = "com.arjuna.mwlabs.wscf.model.twophase.arjunacore.TwoPhase11HLSImple";
+ String className = "com.arjuna.mwlabs.wscf11.model.twophase.arjunacore.TwoPhaseHLSImple";
org.w3c.dom.Document implementationDoc = null;
// System.setProperty("com.arjuna.mw.wscf.protocolImplementation", className);
@@ -94,7 +94,7 @@
}
catch (Exception ex)
{
- WSCFTestUtils.cleanup(ua);
+ WSCF11TestUtils.cleanup(ua);
throw ex;
}
}
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/Suspend.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/Suspend.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/Suspend.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -38,7 +38,7 @@
import com.arjuna.mw.wsas.activity.*;
import com.arjuna.mw.wscf.exceptions.*;
-import com.arjuna.wscf.tests.WSCFTestUtils;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
import junit.framework.TestCase;
/**
@@ -68,7 +68,7 @@
System.out.println("Suspended: "+hier+"\n");
if (ua.currentActivity() != null) {
- WSCFTestUtils.cleanup(ua);
+ WSCF11TestUtils.cleanup(ua);
fail("Hierarchy still active.");
}
}
@@ -78,7 +78,7 @@
}
catch (Exception ex)
{
- WSCFTestUtils.cleanup(ua);
+ WSCF11TestUtils.cleanup(ua);
throw ex;
}
}
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/SuspendConfirm.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/SuspendConfirm.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/SuspendConfirm.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -38,7 +38,7 @@
import com.arjuna.mw.wsas.activity.*;
import com.arjuna.mw.wscf.exceptions.*;
-import com.arjuna.wscf.tests.WSCFTestUtils;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
import junit.framework.TestCase;
/**
@@ -68,7 +68,7 @@
System.out.println("Suspended: "+hier+"\n");
if (ua.currentActivity() != null) {
- WSCFTestUtils.cleanup(ua);
+ WSCF11TestUtils.cleanup(ua);
fail("Hierarchy still active.");
}
@@ -77,11 +77,11 @@
catch (NoCoordinatorException ex)
{
// why is it ok to get here?
- WSCFTestUtils.cleanup(ua);
+ WSCF11TestUtils.cleanup(ua);
}
catch (Exception ex)
{
- WSCFTestUtils.cleanup(ua);
+ WSCF11TestUtils.cleanup(ua);
throw ex;
}
}
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/SuspendParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/SuspendParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/SuspendParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -37,9 +37,9 @@
import com.arjuna.mw.wsas.activity.*;
-import com.arjuna.wscf.tests.TwoPhaseParticipant;
-import com.arjuna.wscf.tests.TwoPhaseSynchronization;
-import com.arjuna.wscf.tests.WSCFTestUtils;
+import com.arjuna.wscf11.tests.TwoPhaseParticipant;
+import com.arjuna.wscf11.tests.TwoPhaseSynchronization;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
import junit.framework.TestCase;
/**
@@ -74,7 +74,7 @@
if (cm.currentActivity() != null)
{
- WSCFTestUtils.cleanup(cm);
+ WSCF11TestUtils.cleanup(cm);
fail("Hierarchy still active.");
}
@@ -86,7 +86,7 @@
}
catch (Exception ex)
{
- WSCFTestUtils.cleanup(cm);
+ WSCF11TestUtils.cleanup(cm);
throw ex;
}
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/SuspendResume.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/SuspendResume.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf11/tests/model/twophase/SuspendResume.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -36,7 +36,7 @@
import com.arjuna.mw.wscf11.model.twophase.UserCoordinatorFactory;
import com.arjuna.mw.wsas.activity.*;
-import com.arjuna.wscf.tests.WSCFTestUtils;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
import junit.framework.TestCase;
/**
@@ -67,7 +67,7 @@
if (ua.currentActivity() != null)
{
- WSCFTestUtils.cleanup(ua);
+ WSCF11TestUtils.cleanup(ua);
fail("Hierarchy still active");
}
else
@@ -83,7 +83,7 @@
}
catch (Exception ex)
{
- WSCFTestUtils.cleanup(ua);
+ WSCF11TestUtils.cleanup(ua);
throw ex;
}
}
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/dd/wscf11-tests_application.xml (from rev 25709, labs/jbosstm/trunk/XTS/WSCF/tests/dd/wscf-tests_application.xml)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/dd/wscf11-tests_application.xml (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/dd/wscf11-tests_application.xml 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,42 @@
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags.
+ See the copyright.txt 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.
+-->
+
+<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
+
+<application>
+ <display-name>Arjuna WSCF 1.1 Tests</display-name>
+
+ <description>Arjuna WSCF 1.1 Tests</description>
+
+ <module>
+ <web>
+ <web-uri>wscf11-tests.war</web-uri>
+ <context-root>/wscf11-tests</context-root>
+ </web>
+ </module>
+ <module>
+ <java>junit.jar</java>
+ </module>
+ <module>
+ <java>wscf-tests.jar</java>
+ </module>
+</application>
Modified: labs/jbosstm/trunk/XTS/WSTX/build.xml
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/build.xml 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/build.xml 2009-03-19 15:27:39 UTC (rev 25741)
@@ -251,7 +251,7 @@
<!-- Build htdocs for just mw, or mw and mwlabs -->
<property name="com.arjuna.mwlabs.wstx.htdocs.list" value="com.arjuna.mw.*"/>
- <target name="com.arjuna.mw.wstx.war" depends="com.arjuna.mw.wstx.jar">
+ <target name="com.arjuna.mw.wstx.war" depends="com.arjuna.mw.wstx.jar">
<war warfile="${com.arjuna.mwlabs.wstx.webapps.dest}/${com.arjuna.mwlabs.ts.modulename}10.war" webxml="xml/wstx_web-app.xml"/>
<war warfile="${com.arjuna.mwlabs.wstx.webapps.dest}/${com.arjuna.mwlabs.ts.modulename}11.war" webxml="xml/wstx_web-app11.xml"/>
</target>
@@ -355,7 +355,9 @@
</target>
- <target name="com.arjuna.mwlabs.wstx.tests.init" depends="com.arjuna.mw.wstx.clean">
+ <target name="com.arjuna.mwlabs.wstx.tests.init">
+ <!-- delete the test destination directories -->
+ <delete dir="${com.arjuna.mwlabs.wstx.tests.dest.root}"/>
<!-- make the test destination directories -->
<mkdir dir="${com.arjuna.mwlabs.wstx.tests.dest.root}"/>
<mkdir dir="${com.arjuna.mwlabs.wstx.tests.dest}"/>
@@ -364,7 +366,8 @@
<mkdir dir="${com.arjuna.mwlabs.wstx.tests.jar.dest}"/>
</target>
- <target name="com.arjuna.mwlabs.wstx.tests.compile" depends="com.arjuna.mwlabs.wstx.tests.init, com.arjuna.mw.wstx.war">
+ <!-- this assumes all the rwuired libs have been built -->
+ <target name="com.arjuna.mwlabs.wstx.tests.compile" depends="com.arjuna.mwlabs.wstx.tests.init">
<javac destdir="${com.arjuna.mwlabs.wstx.tests.dest}" debug="yes" optimize="no">
<classpath>
<pathelement path="${com.arjuna.mwlabs.wstx.jar.dest}/${com.arjuna.mwlabs.ts.modulename}.jar"/>
@@ -382,6 +385,27 @@
</javac>
</target>
+ <!-- this assumes all the rwuired libs have been built -->
+ <target name="com.arjuna.mwlabs.wstx.tests.compile11" depends="com.arjuna.mwlabs.wstx.tests.init">
+ <javac destdir="${com.arjuna.mwlabs.wstx.tests.dest}" debug="yes" optimize="no">
+ <classpath>
+ <pathelement path="${com.arjuna.mwlabs.wstx.jar.dest}/${com.arjuna.mwlabs.ts.modulename}.jar"/>
+ <pathelement path="${com.arjuna.mwlabs.wstx.jar.dest}/${com.arjuna.mwlabs.ts.modulename}-api.jar"/>
+ <pathelement path="${com.arjuna.mwlabs.wstx.jar.dest}/${com.arjuna.mwlabs.ts.modulename}11.jar"/>
+ <pathelement path="${com.arjuna.mwlabs.wstx.jar.dest}/${com.arjuna.mwlabs.ts.modulename}11-api.jar"/>
+ <path refid="com.arjuna.mwlabs.wstx.tests.lib.path"/>
+ <path refid="com.arjuna.mwlabs.wstx.lib.classpath10"/>
+ <path refid="com.arjuna.mwlabs.wstx.lib.classpath11"/>
+ <path refid="com.arjuna.mwlabs.wstx.lib.classpath"/>
+ </classpath>
+ <src path="${com.arjuna.mwlabs.wstx.tests.src}"/>
+ <include name="com/arjuna/qa/**"/>
+ <include name="com/arjuna/wst/tests/common/**"/>
+ <include name="com/arjuna/wst11/tests/**"/>
+ <include name="com/arjuna/wstx11/tests/**"/>
+ </javac>
+ </target>
+
<target name="com.arjuna.mwlabs.wstx.tests.webapps" depends="com.arjuna.mwlabs.wstx.tests.compile">
<copy file="${com.arjuna.mwlabs.wstx.tests.dd}/wstx-tests_web-app.xml" tofile="${com.arjuna.mwlabs.wstx.tests.dd.dest}/web-app.xml">
</copy>
@@ -416,10 +440,27 @@
</ear>
</target>
+ <target name="com.arjuna.mwlabs.wstx.tests.webapps11" depends="com.arjuna.mwlabs.wstx.tests.compile11">
+ <copy file="${com.arjuna.mwlabs.wstx.tests.dd}/wstx11-tests_web-app.xml" tofile="${com.arjuna.mwlabs.wstx.tests.dd.dest}/web-app11.xml">
+ </copy>
+ <jar jarfile="${com.arjuna.mwlabs.wstx.tests.webapps.dest}/wstx-tests.jar">
+ <fileset dir="${com.arjuna.mwlabs.wstx.tests.dest}"/>
+ </jar>
+ <war warfile="${com.arjuna.mwlabs.wstx.tests.webapps.dest}/wstx11-tests.war" webxml="${com.arjuna.mwlabs.wstx.tests.dd.dest}/web-app11.xml"/>
+ <ear earfile="${com.arjuna.mwlabs.wstx.tests.webapps.dest}/wstx-tests.ear" appxml="${com.arjuna.mwlabs.wstx.tests.dd}/wstx11-tests_application.xml">
+ <fileset dir="${com.arjuna.xts.ext}" includes="${tests.libs}"/>
+ <fileset dir="${com.arjuna.mwlabs.wstx.tests.webapps.dest}" includes="wstx11-tests.war wstx-tests.jar"/>
+ </ear>
+ </target>
+
<target name="com.arjuna.mwlabs.wstx.tests.deploy" depends="com.arjuna.mwlabs.wstx.tests.webapps, com.arjuna.mwlabs.wstx.tests.undeploy">
<copy file="${com.arjuna.mwlabs.wstx.tests.webapps.dest}/wstx-tests.ear" tofile="${deploy.dir}/wstx-tests.ear"/>
</target>
+ <target name="com.arjuna.mwlabs.wstx.tests.deploy11" depends="com.arjuna.mwlabs.wstx.tests.webapps11, com.arjuna.mwlabs.wstx.tests.undeploy">
+ <copy file="${com.arjuna.mwlabs.wstx.tests.webapps.dest}/wstx-tests.ear" tofile="${deploy.dir}/wstx-tests.ear"/>
+ </target>
+
<target name="com.arjuna.mwlabs.wstx.tests.undeploy">
<delete file="${deploy.dir}/wstx-tests.ear"/>
</target>
@@ -442,6 +483,12 @@
<target name="war" depends="com.arjuna.mw.wstx.war"/>
<target name="clean" depends="com.arjuna.mw.wstx.clean"/>
<target name="tests-webapps" depends="com.arjuna.mwlabs.wstx.tests.webapps"/>
+ <target name="tests-webapps11" depends="com.arjuna.mwlabs.wstx.tests.webapps11"/>
+ <!-- production target for 1.1 tests -->
+ <target name="tests-11" depends="tests-webapps11"/>
+ <target name="tests-both" depends="tests-webapps"/>
+
<target name="tests-deploy" depends="com.arjuna.mwlabs.wstx.tests.deploy"/>
+ <target name="tests-deploy11" depends="com.arjuna.mwlabs.wstx.tests.deploy11"/>
<target name="tests-undeploy" depends="com.arjuna.mwlabs.wstx.tests.undeploy"/>
</project>
Deleted: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoBusinessParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoBusinessParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoBusinessParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,146 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: DemoBusinessParticipant.java,v 1.5 2004/09/09 08:48:39 kconner Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.*;
-
-/**
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: DemoBusinessParticipant.java,v 1.5 2004/09/09 08:48:39 kconner Exp $
- * @since 1.0.
- */
-
-public class DemoBusinessParticipant implements com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
-{
-
- public static final int COMPENSATE = 0;
- public static final int CANCEL = 1;
- public static final int CLOSE = 2;
- public static final int EXIT = 3;
-
- /*
- * TODO does EXIT imply a memory leak? How does the participant
- * get unregistered from the dispatcher if it isn't called during
- * termination?
- */
-
- public DemoBusinessParticipant (int outcome, String id)
- {
- _outcome = outcome;
- _id = id;
- }
-
- public final boolean passed ()
- {
- /*
- * If we get a passed result and our status was EXIT then this
- * means that one of our methods was called, which is wrong if
- * we exited!
- */
-
- switch (_outcome)
- {
- case EXIT:
- return !_passed;
- default:
- return _passed;
- }
- }
-
- public void close () throws WrongStateException, SystemException
- {
- System.out.println(this.getClass().getName()+".close for "+this);
-
- if (_outcome == CLOSE)
- _passed = true;
- }
-
- public void cancel () throws WrongStateException, SystemException
- {
- System.out.println(this.getClass().getName()+".cancel for "+this);
-
- if (_outcome == CANCEL)
- _passed = true;
- }
-
- public void compensate () throws FaultedException, WrongStateException, SystemException
- {
- System.out.println(this.getClass().getName()+".compensate for "+this);
-
- if (_outcome == COMPENSATE)
- _passed = true;
- }
-
- public void forget () throws WrongStateException, SystemException
- {
- }
-
- public void unknown () throws SystemException
- {
- }
-
- public void error () throws SystemException
- {
- }
-
- public String toString ()
- {
- try
- {
- return identifier();
- }
- catch (SystemException ex)
- {
- return "Unknown";
- }
- }
-
- public String identifier () throws SystemException
- {
- return _id;
- }
-
- /**
- * @return the status value.
- */
-
- public String status () throws SystemException
- {
- return "Unknown";
- }
-
- protected boolean _passed = false;
- protected String _id = null;
- protected int _outcome;
-
-}
-
Deleted: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoBusinessParticipantWithComplete.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoBusinessParticipantWithComplete.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoBusinessParticipantWithComplete.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,100 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (C) 2002, 2003, 2004,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: DemoBusinessParticipantWithComplete.java,v 1.5 2004/09/09 08:48:40 kconner Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.*;
-
-/**
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: DemoBusinessParticipantWithComplete.java,v 1.5 2004/09/09 08:48:40 kconner Exp $
- * @since 1.0.
- *
- * Requires complete to be sent before the transaction terminates.
- */
-
-public class DemoBusinessParticipantWithComplete extends DemoBusinessParticipant implements com.arjuna.wst.BusinessAgreementWithCoordinatorCompletionParticipant
-{
-
- public static final int COMPLETE = 4;
-
- public DemoBusinessParticipantWithComplete (int outcome, String id)
- {
- super(outcome, id);
- }
-
- public void close () throws WrongStateException, SystemException
- {
- System.out.println(this.getClass().getName()+".close for "+this);
-
- if (!_completed)
- throw new SystemException();
-
- if (_outcome == CLOSE)
- _passed = true;
- }
-
- public void cancel () throws WrongStateException, SystemException
- {
- System.out.println(this.getClass().getName()+".cancel for "+this);
-
- if (!_completed)
- throw new SystemException();
-
- if (_outcome == CANCEL)
- _passed = true;
- }
-
- public void compensate () throws FaultedException, WrongStateException, SystemException
- {
- System.out.println(this.getClass().getName()+".compensate for "+this);
-
- if (!_completed)
- throw new SystemException();
-
- if (_outcome == COMPENSATE)
- _passed = true;
- }
-
- public void complete () throws WrongStateException, SystemException
- {
- System.out.println(this.getClass().getName()+".complete for "+this);
-
- if (_outcome == COMPLETE)
- _passed = true;
-
- _completed = true;
- }
-
- private boolean _completed = false;
-
-}
-
Deleted: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoDurableParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoDurableParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoDurableParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,121 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: DemoDurableParticipant.java,v 1.1.2.1 2004/08/09 12:34:30 nmcl Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.ats.arjuna.common.Uid;
-
-import com.arjuna.wst.*;
-
-//import com.arjuna.mw.wst.vote.*;
-
-//import com.arjuna.mw.wst.exceptions.*;
-
-/**
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: DemoDurableParticipant.java,v 1.1.2.1 2004/08/09 12:34:30 nmcl Exp $
- * @since 1.0.
- */
-
-public class DemoDurableParticipant implements Durable2PCParticipant
-{
-
- public DemoDurableParticipant ()
- {
- _passed = false;
- _prepared = false;
- _resolved = false;
- }
-
- public final boolean resolved ()
- {
- return _resolved;
- }
-
- public final boolean prepared ()
- {
- return _prepared;
- }
-
- public final boolean passed ()
- {
- return _passed;
- }
-
- public Vote prepare () throws WrongStateException, SystemException
- {
- System.out.println("DemoDurableParticipant.prepare for "+this);
-
- _prepared = true;
- return new Prepared();
- }
-
- public void commit () throws WrongStateException, SystemException
- {
- System.out.println("DemoDurableParticipant.commit for "+this);
-
- _resolved = true;
- _passed = true;
- }
-
- public void rollback () throws WrongStateException, SystemException
- {
- System.out.println("DemoDurableParticipant.rollback for "+this);
-
- _resolved = true;
- _passed = false;
- }
-
- public void unknown () throws SystemException
- {
- }
-
- public void error () throws SystemException
- {
- }
-
- public String toString ()
- {
- return identifier();
- }
-
- public String identifier ()
- {
- return _id.stringForm();
- }
-
- private boolean _passed;
- private boolean _prepared;
- private boolean _resolved;
- private Uid _id = new Uid();
-
-}
-
Deleted: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoVolatileParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoVolatileParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoVolatileParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,120 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: DemoVolatileParticipant.java,v 1.1.2.1 2004/08/09 12:34:30 nmcl Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.ats.arjuna.common.Uid;
-
-import com.arjuna.wst.*;
-
-//import com.arjuna.mw.wst.vote.*;
-
-//import com.arjuna.mw.wst.exceptions.*;
-
-/**
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: DemoVolatileParticipant.java,v 1.1.2.1 2004/08/09 12:34:30 nmcl Exp $
- * @since 1.0.
- */
-
-public class DemoVolatileParticipant implements Volatile2PCParticipant
-{
- public DemoVolatileParticipant ()
- {
- _passed = false;
- _prepared = false;
- _resolved = false;
- }
-
- public final boolean resolved ()
- {
- return _resolved;
- }
-
- public final boolean prepared ()
- {
- return _prepared;
- }
-
- public final boolean passed ()
- {
- return _passed;
- }
-
- public Vote prepare () throws WrongStateException, SystemException
- {
- System.out.println("DemoVolatileParticipant.prepare for "+this);
-
- _prepared = true;
- return new Prepared();
- }
-
- public void commit () throws WrongStateException, SystemException
- {
- System.out.println("DemoVolatileParticipant.commit for "+this);
-
- _resolved = true;
- _passed = true;
- }
-
- public void rollback () throws WrongStateException, SystemException
- {
- System.out.println("DemoVolatileParticipant.rollback for "+this);
-
- _resolved = true;
- _passed = false;
- }
-
- public void unknown () throws SystemException
- {
- }
-
- public void error () throws SystemException
- {
- }
-
- public String toString ()
- {
- return identifier();
- }
-
- public String identifier ()
- {
- return _id.stringForm();
- }
-
- private boolean _passed;
- private boolean _prepared;
- private boolean _resolved;
- private Uid _id = new Uid();
-
-}
-
Deleted: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/FailureBusinessParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/FailureBusinessParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/FailureBusinessParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,149 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: FailureBusinessParticipant.java,v 1.4 2004/09/09 08:48:39 kconner Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.*;
-
-/**
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: FailureBusinessParticipant.java,v 1.4 2004/09/09 08:48:39 kconner Exp $
- * @since 1.0.
- */
-
-public class FailureBusinessParticipant implements com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
-{
-
- public static final int FAIL_IN_CLOSE = 0;
- public static final int FAIL_IN_CANCEL = 1;
- public static final int FAIL_IN_COMPENSATE = 2;
-
- public FailureBusinessParticipant (int failurePoint, String id)
- {
- _failurePoint = failurePoint;
- _id = id;
- }
-
- public final boolean passed ()
- {
- return _passed;
- }
-
- /**
- * we use this to time out the failure behaviour for close because otherwise the transaction will keep
- * retrying -- that's as per the sepc but a pain in the proverbial
- */
- private static long closeFirstCalledTime = 0;
-
- /**
- * timeout for the close failure in milliseconds. this must be bigger than the BA coordinator
- * wait timeout and any timeout used by a test when it waits for the transaction to complete.
- * A few minutes should be adequate.
- */
- private final long CLOSE_FAIL_TIMEOUT = (3 * 60 * 1000);
-
- public void close () throws WrongStateException, SystemException
- {
- System.out.println("FailureBusinessParticipant.close for "+this);
- if (closeFirstCalledTime == 0) {
- closeFirstCalledTime = System.currentTimeMillis();
- }
- if (_failurePoint == FAIL_IN_CLOSE) {
- long timeNow = System.currentTimeMillis();
- if ((timeNow - closeFirstCalledTime) < CLOSE_FAIL_TIMEOUT) {
- throw new WrongStateException();
- }
- }
-
- _passed = true;
- }
-
- public void cancel () throws WrongStateException, SystemException, FaultedException
- {
- System.out.println("FailureBusinessParticipant.cancel for "+this);
-
- if (_failurePoint == FAIL_IN_CANCEL)
- throw new FaultedException();
-
- _passed = true;
- }
-
- public void compensate () throws WrongStateException, SystemException, FaultedException
- {
- System.out.println("FailureBusinessParticipant.compensate for "+this);
-
- if (_failurePoint == FAIL_IN_COMPENSATE)
- throw new FaultedException();
-
- _passed = true;
- }
-
- public void forget () throws WrongStateException, SystemException
- {
- }
-
- public void unknown () throws SystemException
- {
- }
-
- public void error () throws SystemException
- {
- }
-
- public String status () throws SystemException
- {
- return "Unknown";
- }
-
- public String toString ()
- {
- try
- {
- return identifier();
- }
- catch (SystemException ex)
- {
- return "Unknown";
-
- }
- }
-
- public String identifier () throws SystemException
- {
- return _id;
- }
-
- private boolean _passed = false;
- private String _id = null;
- private int _failurePoint;
-
-}
-
Deleted: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/FailureParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/FailureParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/FailureParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -1,155 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags.
- * See the copyright.txt 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.
- */
-/*
- * Copyright (C) 2002,
- *
- * Arjuna Technologies Limited,
- * Newcastle upon Tyne,
- * Tyne and Wear,
- * UK.
- *
- * $Id: FailureParticipant.java,v 1.5 2004/09/09 08:48:40 kconner Exp $
- */
-
-package com.arjuna.wst.tests;
-
-import com.arjuna.wst.*;
-
-/**
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: FailureParticipant.java,v 1.5 2004/09/09 08:48:40 kconner Exp $
- * @since 1.0.
- */
-
-public class FailureParticipant implements Durable2PCParticipant
-{
-
- public static final int FAIL_IN_PREPARE = 0;
- public static final int FAIL_IN_ROLLBACK = 1;
- public static final int FAIL_IN_COMMIT = 2;
- public static final int FAIL_IN_ONE_PHASE = 3;
-
- public static final int WRONG_STATE = 20;
- public static final int SYSTEM = 21;
- public static final int NONE = 22;
-
- public FailureParticipant (int failurePoint, int failureType)
- {
- _failurePoint = failurePoint;
- _failureType = failureType;
- _prepared = false;
- _resolved = false;
- }
-
- public final boolean passed ()
- {
- return _passed;
- }
-
- public final boolean prepared ()
- {
- return _prepared;
- }
-
- public final boolean resolved ()
- {
- return _resolved;
- }
-
- public Vote prepare () throws WrongStateException, SystemException
- {
- System.out.println("FailureParticipant.prepare");
-
- _prepared = true;
- if (_failurePoint == FAIL_IN_PREPARE)
- {
- generateException();
-
- return new Aborted();
- }
- else
- return new Prepared();
- }
-
- public void commit () throws WrongStateException, SystemException
- {
- System.out.println("FailureParticipant.commit");
-
- _resolved = true;
- if (_failurePoint == FAIL_IN_COMMIT)
- generateException();
-
- if (_failurePoint == FAIL_IN_PREPARE)
- _passed = false;
- }
-
- public void rollback () throws WrongStateException, SystemException
- {
- _resolved = true;
- System.out.println("FailureParticipant.rollback");
-
- if (_failurePoint == FAIL_IN_ROLLBACK)
- generateException();
-
- if (_failurePoint == FAIL_IN_PREPARE)
- _passed = true;
- }
-
- public void commitOnePhase () throws WrongStateException, SystemException
- {
- _resolved = true;
- System.out.println("FailureParticipant.commitOnePhase");
-
- if (_failurePoint == FAIL_IN_ONE_PHASE)
- generateException();
-
- _passed = true;
- }
-
- public void unknown () throws SystemException
- {
- }
-
- public void error () throws SystemException
- {
- }
-
- private void generateException () throws WrongStateException, SystemException
- {
- switch (_failureType)
- {
- case WRONG_STATE:
- throw new WrongStateException();
- case SYSTEM:
- throw new SystemException();
- default:
- break;
- }
- }
-
- private int _failurePoint;
- private int _failureType;
- private boolean _passed;
- private boolean _prepared;
- private boolean _resolved;
-
-}
-
Copied: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoBusinessParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoBusinessParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoBusinessParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoBusinessParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,146 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (C) 2002,
+ *
+ * Arjuna Technologies Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: DemoBusinessParticipant.java,v 1.5 2004/09/09 08:48:39 kconner Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: DemoBusinessParticipant.java,v 1.5 2004/09/09 08:48:39 kconner Exp $
+ * @since 1.0.
+ */
+
+public class DemoBusinessParticipant implements com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
+{
+
+ public static final int COMPENSATE = 0;
+ public static final int CANCEL = 1;
+ public static final int CLOSE = 2;
+ public static final int EXIT = 3;
+
+ /*
+ * TODO does EXIT imply a memory leak? How does the participant
+ * get unregistered from the dispatcher if it isn't called during
+ * termination?
+ */
+
+ public DemoBusinessParticipant (int outcome, String id)
+ {
+ _outcome = outcome;
+ _id = id;
+ }
+
+ public final boolean passed ()
+ {
+ /*
+ * If we get a passed result and our status was EXIT then this
+ * means that one of our methods was called, which is wrong if
+ * we exited!
+ */
+
+ switch (_outcome)
+ {
+ case EXIT:
+ return !_passed;
+ default:
+ return _passed;
+ }
+ }
+
+ public void close () throws WrongStateException, SystemException
+ {
+ System.out.println(this.getClass().getName()+".close for "+this);
+
+ if (_outcome == CLOSE)
+ _passed = true;
+ }
+
+ public void cancel () throws WrongStateException, SystemException
+ {
+ System.out.println(this.getClass().getName()+".cancel for "+this);
+
+ if (_outcome == CANCEL)
+ _passed = true;
+ }
+
+ public void compensate () throws FaultedException, WrongStateException, SystemException
+ {
+ System.out.println(this.getClass().getName()+".compensate for "+this);
+
+ if (_outcome == COMPENSATE)
+ _passed = true;
+ }
+
+ public void forget () throws WrongStateException, SystemException
+ {
+ }
+
+ public void unknown () throws SystemException
+ {
+ }
+
+ public void error () throws SystemException
+ {
+ }
+
+ public String toString ()
+ {
+ try
+ {
+ return identifier();
+ }
+ catch (SystemException ex)
+ {
+ return "Unknown";
+ }
+ }
+
+ public String identifier () throws SystemException
+ {
+ return _id;
+ }
+
+ /**
+ * @return the status value.
+ */
+
+ public String status () throws SystemException
+ {
+ return "Unknown";
+ }
+
+ protected boolean _passed = false;
+ protected String _id = null;
+ protected int _outcome;
+
+}
+
Copied: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoBusinessParticipantWithComplete.java (from rev 25709, labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoBusinessParticipantWithComplete.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoBusinessParticipantWithComplete.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoBusinessParticipantWithComplete.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,100 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (C) 2002, 2003, 2004,
+ *
+ * Arjuna Technologies Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: DemoBusinessParticipantWithComplete.java,v 1.5 2004/09/09 08:48:40 kconner Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: DemoBusinessParticipantWithComplete.java,v 1.5 2004/09/09 08:48:40 kconner Exp $
+ * @since 1.0.
+ *
+ * Requires complete to be sent before the transaction terminates.
+ */
+
+public class DemoBusinessParticipantWithComplete extends DemoBusinessParticipant implements com.arjuna.wst.BusinessAgreementWithCoordinatorCompletionParticipant
+{
+
+ public static final int COMPLETE = 4;
+
+ public DemoBusinessParticipantWithComplete (int outcome, String id)
+ {
+ super(outcome, id);
+ }
+
+ public void close () throws WrongStateException, SystemException
+ {
+ System.out.println(this.getClass().getName()+".close for "+this);
+
+ if (!_completed)
+ throw new SystemException();
+
+ if (_outcome == CLOSE)
+ _passed = true;
+ }
+
+ public void cancel () throws WrongStateException, SystemException
+ {
+ System.out.println(this.getClass().getName()+".cancel for "+this);
+
+ if (!_completed)
+ throw new SystemException();
+
+ if (_outcome == CANCEL)
+ _passed = true;
+ }
+
+ public void compensate () throws FaultedException, WrongStateException, SystemException
+ {
+ System.out.println(this.getClass().getName()+".compensate for "+this);
+
+ if (!_completed)
+ throw new SystemException();
+
+ if (_outcome == COMPENSATE)
+ _passed = true;
+ }
+
+ public void complete () throws WrongStateException, SystemException
+ {
+ System.out.println(this.getClass().getName()+".complete for "+this);
+
+ if (_outcome == COMPLETE)
+ _passed = true;
+
+ _completed = true;
+ }
+
+ private boolean _completed = false;
+
+}
+
Copied: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoDurableParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoDurableParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoDurableParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoDurableParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,121 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (C) 2002,
+ *
+ * Arjuna Technologies Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: DemoDurableParticipant.java,v 1.1.2.1 2004/08/09 12:34:30 nmcl Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.ats.arjuna.common.Uid;
+
+import com.arjuna.wst.*;
+
+//import com.arjuna.mw.wst.vote.*;
+
+//import com.arjuna.mw.wst.exceptions.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: DemoDurableParticipant.java,v 1.1.2.1 2004/08/09 12:34:30 nmcl Exp $
+ * @since 1.0.
+ */
+
+public class DemoDurableParticipant implements Durable2PCParticipant
+{
+
+ public DemoDurableParticipant ()
+ {
+ _passed = false;
+ _prepared = false;
+ _resolved = false;
+ }
+
+ public final boolean resolved ()
+ {
+ return _resolved;
+ }
+
+ public final boolean prepared ()
+ {
+ return _prepared;
+ }
+
+ public final boolean passed ()
+ {
+ return _passed;
+ }
+
+ public Vote prepare () throws WrongStateException, SystemException
+ {
+ System.out.println("DemoDurableParticipant.prepare for "+this);
+
+ _prepared = true;
+ return new Prepared();
+ }
+
+ public void commit () throws WrongStateException, SystemException
+ {
+ System.out.println("DemoDurableParticipant.commit for "+this);
+
+ _resolved = true;
+ _passed = true;
+ }
+
+ public void rollback () throws WrongStateException, SystemException
+ {
+ System.out.println("DemoDurableParticipant.rollback for "+this);
+
+ _resolved = true;
+ _passed = false;
+ }
+
+ public void unknown () throws SystemException
+ {
+ }
+
+ public void error () throws SystemException
+ {
+ }
+
+ public String toString ()
+ {
+ return identifier();
+ }
+
+ public String identifier ()
+ {
+ return _id.stringForm();
+ }
+
+ private boolean _passed;
+ private boolean _prepared;
+ private boolean _resolved;
+ private Uid _id = new Uid();
+
+}
+
Copied: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoVolatileParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/DemoVolatileParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoVolatileParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/DemoVolatileParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,120 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (C) 2002,
+ *
+ * Arjuna Technologies Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: DemoVolatileParticipant.java,v 1.1.2.1 2004/08/09 12:34:30 nmcl Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.ats.arjuna.common.Uid;
+
+import com.arjuna.wst.*;
+
+//import com.arjuna.mw.wst.vote.*;
+
+//import com.arjuna.mw.wst.exceptions.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: DemoVolatileParticipant.java,v 1.1.2.1 2004/08/09 12:34:30 nmcl Exp $
+ * @since 1.0.
+ */
+
+public class DemoVolatileParticipant implements Volatile2PCParticipant
+{
+ public DemoVolatileParticipant ()
+ {
+ _passed = false;
+ _prepared = false;
+ _resolved = false;
+ }
+
+ public final boolean resolved ()
+ {
+ return _resolved;
+ }
+
+ public final boolean prepared ()
+ {
+ return _prepared;
+ }
+
+ public final boolean passed ()
+ {
+ return _passed;
+ }
+
+ public Vote prepare () throws WrongStateException, SystemException
+ {
+ System.out.println("DemoVolatileParticipant.prepare for "+this);
+
+ _prepared = true;
+ return new Prepared();
+ }
+
+ public void commit () throws WrongStateException, SystemException
+ {
+ System.out.println("DemoVolatileParticipant.commit for "+this);
+
+ _resolved = true;
+ _passed = true;
+ }
+
+ public void rollback () throws WrongStateException, SystemException
+ {
+ System.out.println("DemoVolatileParticipant.rollback for "+this);
+
+ _resolved = true;
+ _passed = false;
+ }
+
+ public void unknown () throws SystemException
+ {
+ }
+
+ public void error () throws SystemException
+ {
+ }
+
+ public String toString ()
+ {
+ return identifier();
+ }
+
+ public String identifier ()
+ {
+ return _id.stringForm();
+ }
+
+ private boolean _passed;
+ private boolean _prepared;
+ private boolean _resolved;
+ private Uid _id = new Uid();
+
+}
+
Copied: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/FailureBusinessParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/FailureBusinessParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/FailureBusinessParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/FailureBusinessParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,149 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (C) 2002,
+ *
+ * Arjuna Technologies Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: FailureBusinessParticipant.java,v 1.4 2004/09/09 08:48:39 kconner Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: FailureBusinessParticipant.java,v 1.4 2004/09/09 08:48:39 kconner Exp $
+ * @since 1.0.
+ */
+
+public class FailureBusinessParticipant implements com.arjuna.wst.BusinessAgreementWithParticipantCompletionParticipant
+{
+
+ public static final int FAIL_IN_CLOSE = 0;
+ public static final int FAIL_IN_CANCEL = 1;
+ public static final int FAIL_IN_COMPENSATE = 2;
+
+ public FailureBusinessParticipant (int failurePoint, String id)
+ {
+ _failurePoint = failurePoint;
+ _id = id;
+ }
+
+ public final boolean passed ()
+ {
+ return _passed;
+ }
+
+ /**
+ * we use this to time out the failure behaviour for close because otherwise the transaction will keep
+ * retrying -- that's as per the sepc but a pain in the proverbial
+ */
+ private static long closeFirstCalledTime = 0;
+
+ /**
+ * timeout for the close failure in milliseconds. this must be bigger than the BA coordinator
+ * wait timeout and any timeout used by a test when it waits for the transaction to complete.
+ * A few minutes should be adequate.
+ */
+ private final long CLOSE_FAIL_TIMEOUT = (3 * 60 * 1000);
+
+ public void close () throws WrongStateException, SystemException
+ {
+ System.out.println("FailureBusinessParticipant.close for "+this);
+ if (closeFirstCalledTime == 0) {
+ closeFirstCalledTime = System.currentTimeMillis();
+ }
+ if (_failurePoint == FAIL_IN_CLOSE) {
+ long timeNow = System.currentTimeMillis();
+ if ((timeNow - closeFirstCalledTime) < CLOSE_FAIL_TIMEOUT) {
+ throw new WrongStateException();
+ }
+ }
+
+ _passed = true;
+ }
+
+ public void cancel () throws WrongStateException, SystemException, FaultedException
+ {
+ System.out.println("FailureBusinessParticipant.cancel for "+this);
+
+ if (_failurePoint == FAIL_IN_CANCEL)
+ throw new FaultedException();
+
+ _passed = true;
+ }
+
+ public void compensate () throws WrongStateException, SystemException, FaultedException
+ {
+ System.out.println("FailureBusinessParticipant.compensate for "+this);
+
+ if (_failurePoint == FAIL_IN_COMPENSATE)
+ throw new FaultedException();
+
+ _passed = true;
+ }
+
+ public void forget () throws WrongStateException, SystemException
+ {
+ }
+
+ public void unknown () throws SystemException
+ {
+ }
+
+ public void error () throws SystemException
+ {
+ }
+
+ public String status () throws SystemException
+ {
+ return "Unknown";
+ }
+
+ public String toString ()
+ {
+ try
+ {
+ return identifier();
+ }
+ catch (SystemException ex)
+ {
+ return "Unknown";
+
+ }
+ }
+
+ public String identifier () throws SystemException
+ {
+ return _id;
+ }
+
+ private boolean _passed = false;
+ private String _id = null;
+ private int _failurePoint;
+
+}
+
Copied: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/FailureParticipant.java (from rev 25709, labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/FailureParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/FailureParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/common/FailureParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,155 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt 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.
+ */
+/*
+ * Copyright (C) 2002,
+ *
+ * Arjuna Technologies Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: FailureParticipant.java,v 1.5 2004/09/09 08:48:40 kconner Exp $
+ */
+
+package com.arjuna.wst.tests.common;
+
+import com.arjuna.wst.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: FailureParticipant.java,v 1.5 2004/09/09 08:48:40 kconner Exp $
+ * @since 1.0.
+ */
+
+public class FailureParticipant implements Durable2PCParticipant
+{
+
+ public static final int FAIL_IN_PREPARE = 0;
+ public static final int FAIL_IN_ROLLBACK = 1;
+ public static final int FAIL_IN_COMMIT = 2;
+ public static final int FAIL_IN_ONE_PHASE = 3;
+
+ public static final int WRONG_STATE = 20;
+ public static final int SYSTEM = 21;
+ public static final int NONE = 22;
+
+ public FailureParticipant (int failurePoint, int failureType)
+ {
+ _failurePoint = failurePoint;
+ _failureType = failureType;
+ _prepared = false;
+ _resolved = false;
+ }
+
+ public final boolean passed ()
+ {
+ return _passed;
+ }
+
+ public final boolean prepared ()
+ {
+ return _prepared;
+ }
+
+ public final boolean resolved ()
+ {
+ return _resolved;
+ }
+
+ public Vote prepare () throws WrongStateException, SystemException
+ {
+ System.out.println("FailureParticipant.prepare");
+
+ _prepared = true;
+ if (_failurePoint == FAIL_IN_PREPARE)
+ {
+ generateException();
+
+ return new Aborted();
+ }
+ else
+ return new Prepared();
+ }
+
+ public void commit () throws WrongStateException, SystemException
+ {
+ System.out.println("FailureParticipant.commit");
+
+ _resolved = true;
+ if (_failurePoint == FAIL_IN_COMMIT)
+ generateException();
+
+ if (_failurePoint == FAIL_IN_PREPARE)
+ _passed = false;
+ }
+
+ public void rollback () throws WrongStateException, SystemException
+ {
+ _resolved = true;
+ System.out.println("FailureParticipant.rollback");
+
+ if (_failurePoint == FAIL_IN_ROLLBACK)
+ generateException();
+
+ if (_failurePoint == FAIL_IN_PREPARE)
+ _passed = true;
+ }
+
+ public void commitOnePhase () throws WrongStateException, SystemException
+ {
+ _resolved = true;
+ System.out.println("FailureParticipant.commitOnePhase");
+
+ if (_failurePoint == FAIL_IN_ONE_PHASE)
+ generateException();
+
+ _passed = true;
+ }
+
+ public void unknown () throws SystemException
+ {
+ }
+
+ public void error () throws SystemException
+ {
+ }
+
+ private void generateException () throws WrongStateException, SystemException
+ {
+ switch (_failureType)
+ {
+ case WRONG_STATE:
+ throw new WrongStateException();
+ case SYSTEM:
+ throw new SystemException();
+ default:
+ break;
+ }
+ }
+
+ private int _failurePoint;
+ private int _failureType;
+ private boolean _passed;
+ private boolean _prepared;
+ private boolean _resolved;
+
+}
+
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Cancel.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Cancel.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Cancel.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,7 +33,7 @@
import com.arjuna.mw.wst.BusinessActivityManager;
import com.arjuna.mw.wst.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipant;
+import com.arjuna.wst.tests.common.DemoBusinessParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Close.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Close.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Close.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,7 +33,7 @@
import com.arjuna.mw.wst.BusinessActivityManager;
import com.arjuna.mw.wst.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipant;
+import com.arjuna.wst.tests.common.DemoBusinessParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Compensate.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Compensate.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Compensate.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,7 +33,7 @@
import com.arjuna.mw.wst.BusinessActivityManager;
import com.arjuna.mw.wst.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipant;
+import com.arjuna.wst.tests.common.DemoBusinessParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/ConfirmWithComplete.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/ConfirmWithComplete.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/ConfirmWithComplete.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,7 +33,7 @@
import com.arjuna.mw.wst.BusinessActivityManager;
import com.arjuna.mw.wst.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipantWithComplete;
+import com.arjuna.wst.tests.common.DemoBusinessParticipantWithComplete;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Exit.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Exit.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/Exit.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,7 +33,7 @@
import com.arjuna.mw.wst.BusinessActivityManager;
import com.arjuna.mw.wst.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipant;
+import com.arjuna.wst.tests.common.DemoBusinessParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/MultiCancel.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/MultiCancel.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/MultiCancel.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,8 +33,8 @@
import com.arjuna.mw.wst.BusinessActivityManager;
import com.arjuna.mw.wst.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipant;
-import com.arjuna.wst.tests.FailureBusinessParticipant;
+import com.arjuna.wst.tests.common.DemoBusinessParticipant;
+import com.arjuna.wst.tests.common.FailureBusinessParticipant;
import com.arjuna.wst.SystemException;
import junit.framework.TestCase;
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/MultiClose.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/MultiClose.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/MultiClose.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,9 +33,8 @@
import com.arjuna.mw.wst.BusinessActivityManager;
import com.arjuna.mw.wst.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipant;
-import com.arjuna.wst.tests.FailureBusinessParticipant;
-import com.arjuna.wst.SystemException;
+import com.arjuna.wst.tests.common.DemoBusinessParticipant;
+import com.arjuna.wst.tests.common.FailureBusinessParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/MultiCompensate.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/MultiCompensate.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/ba/MultiCompensate.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,9 +33,8 @@
import com.arjuna.mw.wst.BusinessActivityManager;
import com.arjuna.mw.wst.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipant;
-import com.arjuna.wst.tests.FailureBusinessParticipant;
-import com.arjuna.wst.SystemException;
+import com.arjuna.wst.tests.common.DemoBusinessParticipant;
+import com.arjuna.wst.tests.common.FailureBusinessParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/CommitExceptionInCommit.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/CommitExceptionInCommit.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/CommitExceptionInCommit.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,8 +33,8 @@
import com.arjuna.mw.wst.TransactionManager;
import com.arjuna.mw.wst.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.FailureParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.FailureParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/CommitExceptionInPrepare.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/CommitExceptionInPrepare.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/CommitExceptionInPrepare.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,8 +33,8 @@
import com.arjuna.mw.wst.TransactionManager;
import com.arjuna.mw.wst.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.FailureParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.FailureParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/CommitRollbackInPrepare.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/CommitRollbackInPrepare.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/CommitRollbackInPrepare.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,8 +33,8 @@
import com.arjuna.mw.wst.TransactionManager;
import com.arjuna.mw.wst.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.FailureParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.FailureParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/MultiParticipants.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/MultiParticipants.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/MultiParticipants.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,7 +33,7 @@
import com.arjuna.mw.wst.TransactionManager;
import com.arjuna.mw.wst.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/RollbackExceptionInRollback.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/RollbackExceptionInRollback.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/RollbackExceptionInRollback.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,8 +33,8 @@
import com.arjuna.mw.wst.TransactionManager;
import com.arjuna.mw.wst.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.FailureParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.FailureParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SingleParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SingleParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SingleParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,7 +33,7 @@
import com.arjuna.mw.wst.TransactionManager;
import com.arjuna.mw.wst.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionCommit.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionCommit.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionCommit.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -26,8 +26,8 @@
import com.arjuna.mw.wst.UserTransaction;
import com.arjuna.mw.wst.TxContext;
import com.arjuna.mw.wst.UserTransactionFactory;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.DemoVolatileParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoVolatileParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionCommitFailInPrepare.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionCommitFailInPrepare.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionCommitFailInPrepare.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -25,9 +25,9 @@
import com.arjuna.mw.wst.UserTransaction;
import com.arjuna.mw.wst.TxContext;
import com.arjuna.mw.wst.UserTransactionFactory;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.DemoVolatileParticipant;
-import com.arjuna.wst.tests.FailureParticipant;
+import com.arjuna.wst.tests.common.FailureParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoVolatileParticipant;
import com.arjuna.wst.TransactionRolledBackException;
import junit.framework.TestCase;
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionCommitRollbackInPrepare.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionCommitRollbackInPrepare.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionCommitRollbackInPrepare.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -25,9 +25,9 @@
import com.arjuna.mw.wst.UserTransaction;
import com.arjuna.mw.wst.TxContext;
import com.arjuna.mw.wst.UserTransactionFactory;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.DemoVolatileParticipant;
-import com.arjuna.wst.tests.FailureParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoVolatileParticipant;
+import com.arjuna.wst.tests.common.FailureParticipant;
import com.arjuna.wst.TransactionRolledBackException;
import junit.framework.TestCase;
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionRollback.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionRollback.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SubtransactionRollback.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -25,8 +25,8 @@
import com.arjuna.mw.wst.UserTransaction;
import com.arjuna.mw.wst.TxContext;
import com.arjuna.mw.wst.UserTransactionFactory;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.DemoVolatileParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoVolatileParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SuspendResumeParticipants.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SuspendResumeParticipants.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SuspendResumeParticipants.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -34,7 +34,7 @@
import com.arjuna.mw.wst.TransactionManager;
import com.arjuna.mw.wst.TxContext;
import com.arjuna.mw.wst.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SuspendResumeSingleParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SuspendResumeSingleParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SuspendResumeSingleParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -34,7 +34,7 @@
import com.arjuna.mw.wst.TransactionManager;
import com.arjuna.mw.wst.TxContext;
import com.arjuna.mw.wst.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SynchronizationParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SynchronizationParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst/tests/junit/basic/SynchronizationParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,8 +33,8 @@
import com.arjuna.mw.wst.TransactionManager;
import com.arjuna.mw.wst.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.DemoVolatileParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoVolatileParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Cancel.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Cancel.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Cancel.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,7 +33,7 @@
import com.arjuna.mw.wst11.BusinessActivityManager;
import com.arjuna.mw.wst11.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipant;
+import com.arjuna.wst.tests.common.DemoBusinessParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Close.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Close.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Close.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,7 +33,7 @@
import com.arjuna.mw.wst11.BusinessActivityManager;
import com.arjuna.mw.wst11.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipant;
+import com.arjuna.wst.tests.common.DemoBusinessParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Compensate.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Compensate.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Compensate.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,7 +33,7 @@
import com.arjuna.mw.wst11.BusinessActivityManager;
import com.arjuna.mw.wst11.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipant;
+import com.arjuna.wst.tests.common.DemoBusinessParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/ConfirmWithComplete.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/ConfirmWithComplete.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/ConfirmWithComplete.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,7 +33,7 @@
import com.arjuna.mw.wst11.BusinessActivityManager;
import com.arjuna.mw.wst11.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipantWithComplete;
+import com.arjuna.wst.tests.common.DemoBusinessParticipantWithComplete;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Exit.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Exit.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/Exit.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,7 +33,7 @@
import com.arjuna.mw.wst11.BusinessActivityManager;
import com.arjuna.mw.wst11.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipant;
+import com.arjuna.wst.tests.common.DemoBusinessParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/MultiCancel.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/MultiCancel.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/MultiCancel.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,8 +33,8 @@
import com.arjuna.mw.wst11.BusinessActivityManager;
import com.arjuna.mw.wst11.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipant;
-import com.arjuna.wst.tests.FailureBusinessParticipant;
+import com.arjuna.wst.tests.common.DemoBusinessParticipant;
+import com.arjuna.wst.tests.common.FailureBusinessParticipant;
import com.arjuna.wst.SystemException;
import junit.framework.TestCase;
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/MultiClose.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/MultiClose.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/MultiClose.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,9 +33,8 @@
import com.arjuna.mw.wst11.BusinessActivityManager;
import com.arjuna.mw.wst11.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipant;
-import com.arjuna.wst.tests.FailureBusinessParticipant;
-import com.arjuna.wst.SystemException;
+import com.arjuna.wst.tests.common.DemoBusinessParticipant;
+import com.arjuna.wst.tests.common.FailureBusinessParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/MultiCompensate.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/MultiCompensate.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/ba/MultiCompensate.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,9 +33,8 @@
import com.arjuna.mw.wst11.BusinessActivityManager;
import com.arjuna.mw.wst11.UserBusinessActivity;
-import com.arjuna.wst.tests.DemoBusinessParticipant;
-import com.arjuna.wst.tests.FailureBusinessParticipant;
-import com.arjuna.wst.SystemException;
+import com.arjuna.wst.tests.common.DemoBusinessParticipant;
+import com.arjuna.wst.tests.common.FailureBusinessParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/CommitExceptionInPrepare.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/CommitExceptionInPrepare.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/CommitExceptionInPrepare.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,8 +33,8 @@
import com.arjuna.mw.wst11.TransactionManager;
import com.arjuna.mw.wst11.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.FailureParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.FailureParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/CommitRollbackInPrepare.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/CommitRollbackInPrepare.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/CommitRollbackInPrepare.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,8 +33,8 @@
import com.arjuna.mw.wst11.TransactionManager;
import com.arjuna.mw.wst11.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.FailureParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.FailureParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/MultiParticipants.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/MultiParticipants.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/MultiParticipants.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,7 +33,7 @@
import com.arjuna.mw.wst11.TransactionManager;
import com.arjuna.mw.wst11.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/RollbackExceptionInRollback.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/RollbackExceptionInRollback.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/RollbackExceptionInRollback.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,8 +33,8 @@
import com.arjuna.mw.wst11.TransactionManager;
import com.arjuna.mw.wst11.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.FailureParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.FailureParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SingleParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SingleParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SingleParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -33,7 +33,7 @@
import com.arjuna.mw.wst11.TransactionManager;
import com.arjuna.mw.wst11.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionCommit.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionCommit.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionCommit.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -25,8 +25,8 @@
import com.arjuna.mw.wst11.UserTransaction;
import com.arjuna.mw.wst11.UserTransactionFactory;
import com.arjuna.mw.wst.TxContext;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.DemoVolatileParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoVolatileParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionCommitFailInPrepare.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionCommitFailInPrepare.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionCommitFailInPrepare.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -25,9 +25,9 @@
import com.arjuna.mw.wst11.UserTransaction;
import com.arjuna.mw.wst11.UserTransactionFactory;
import com.arjuna.mw.wst.TxContext;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.DemoVolatileParticipant;
-import com.arjuna.wst.tests.FailureParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoVolatileParticipant;
+import com.arjuna.wst.tests.common.FailureParticipant;
import com.arjuna.wst.TransactionRolledBackException;
import junit.framework.TestCase;
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionCommitRollbackInPrepare.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionCommitRollbackInPrepare.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionCommitRollbackInPrepare.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -25,9 +25,9 @@
import com.arjuna.mw.wst11.UserTransaction;
import com.arjuna.mw.wst11.UserTransactionFactory;
import com.arjuna.mw.wst.TxContext;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.DemoVolatileParticipant;
-import com.arjuna.wst.tests.FailureParticipant;
+import com.arjuna.wst.tests.common.FailureParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoVolatileParticipant;
import com.arjuna.wst.TransactionRolledBackException;
import junit.framework.TestCase;
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionRollback.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionRollback.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SubtransactionRollback.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -25,8 +25,8 @@
import com.arjuna.mw.wst11.UserTransaction;
import com.arjuna.mw.wst11.UserTransactionFactory;
import com.arjuna.mw.wst.TxContext;
-import com.arjuna.wst.tests.DemoDurableParticipant;
-import com.arjuna.wst.tests.DemoVolatileParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoVolatileParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SuspendResumeParticipants.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SuspendResumeParticipants.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SuspendResumeParticipants.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -34,7 +34,7 @@
import com.arjuna.mw.wst11.TransactionManager;
import com.arjuna.mw.wst.TxContext;
import com.arjuna.mw.wst11.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
import junit.framework.TestCase;
/**
Modified: labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SuspendResumeSingleParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SuspendResumeSingleParticipant.java 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/classes/com/arjuna/wst11/tests/junit/basic/SuspendResumeSingleParticipant.java 2009-03-19 15:27:39 UTC (rev 25741)
@@ -34,7 +34,7 @@
import com.arjuna.mw.wst11.TransactionManager;
import com.arjuna.mw.wst.TxContext;
import com.arjuna.mw.wst11.UserTransaction;
-import com.arjuna.wst.tests.DemoDurableParticipant;
+import com.arjuna.wst.tests.common.DemoDurableParticipant;
import junit.framework.TestCase;
/**
Copied: labs/jbosstm/trunk/XTS/WSTX/tests/dd/wstx11-tests_application.xml (from rev 25709, labs/jbosstm/trunk/XTS/WSTX/tests/dd/wstx-tests_application.xml)
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/tests/dd/wstx11-tests_application.xml (rev 0)
+++ labs/jbosstm/trunk/XTS/WSTX/tests/dd/wstx11-tests_application.xml 2009-03-19 15:27:39 UTC (rev 25741)
@@ -0,0 +1,44 @@
+<!--
+ JBoss, Home of Professional Open Source
+ Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ as indicated by the @author tags.
+ See the copyright.txt 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.
+-->
+
+<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
+
+<application>
+ <display-name>Arjuna WSTX 1.1 Tests</display-name>
+
+ <description>Arjuna WSTX 1.1 Tests</description>
+
+ <module>
+ <web>
+ <web-uri>wstx11-tests.war</web-uri>
+ <context-root>/wstx11-tests</context-root>
+ </web>
+ </module>
+
+ <module>
+ <java>junit.jar</java>
+ </module>
+
+ <module>
+ <java>wstx-tests.jar</java>
+ </module>
+</application>
Modified: labs/jbosstm/trunk/XTS/build.xml
===================================================================
--- labs/jbosstm/trunk/XTS/build.xml 2009-03-19 15:21:13 UTC (rev 25740)
+++ labs/jbosstm/trunk/XTS/build.xml 2009-03-19 15:27:39 UTC (rev 25741)
@@ -163,6 +163,10 @@
</target>
+ <target name="build-tests" depends="install-projects, com.arjuna.mwlabs.xts.tests.build">
+
+ </target>
+
<target name="htdocs" depends="com.arjuna.mwlabs.xts.init">
<echo message="Building htdocs "/>
<mkdir dir="${com.arjuna.mwlabs.xts.htdocs.dest}"/>
@@ -265,13 +269,32 @@
</copy>
</target>
+ <target name="install-tests" depends="build-tests">
+ <echo message="Installing service tests"/>
+ <mkdir dir="${com.arjuna.mwlabs.installationdirectory}/tests"/>
+ <copy todir="${com.arjuna.mwlabs.installationdirectory}/tests">
+ <!-- ears providing test servlets -->
+ <fileset dir="WSAS/tests/build/webapps" includes="wsas-tests.ear"/>
+ <fileset dir="WSCF/tests/build/webapps" includes="wscf-tests.ear"/>
+ <fileset dir="WS-C/build/tests/webapps" includes="ws-c-tests.ear"/>
+ <fileset dir="WS-T/build/tests/webapps" includes="ws-t-tests.ear"/>
+ <fileset dir="WSTX/tests/build/webapps" includes="wstx-tests.ear"/>
+ <!-- ant script and client jar used to exercise servlets-->
+ <fileset dir="localjunit/build/" includes="localjunit.jar"/>
+ <fileset dir="localjunit" includes="run-tests.xml"/>
+ </copy>
+ <zip destfile="${com.arjuna.mwlabs.installationdirectory}/tests/jbossxts-tests.zip">
+ <fileset dir="${com.arjuna.mwlabs.installationdirectory}/tests" includes="*.ear *.jar *.xml"/>
+ </zip>
+ </target>
+
<!-- build target just builds the main projects but not the sar since
the latter cannot be built until after the projects have been installed -->
<target name="build" depends="build-projects"/>
<!-- install target builds and installs the main projects
then builds and installs the sar then installs the demo -->
- <target name="install" depends="install-sar, install-demo"/>
+ <target name="install" depends="install-sar, install-tests, install-demo"/>
<target name="clean" depends="com.arjuna.mwlabs.xts.init,
com.arjuna.mwlabs.xts.wsas.clean,
@@ -321,6 +344,19 @@
<ant dir="sar" target="${sartype}"/>
</target>
+ <target name="com.arjuna.mwlabs.xts.tests.build">
+ <!-- by default we build 1.0 and 1.1 for ease of testing,
+ but release bundles should use -Dtesttype=tests-11 so that
+ thay contain only the supported version. -->
+ <property name="testtype" value="tests-both"/>
+ <ant dir="WSAS" target="${testtype}"/>
+ <ant dir="WSCF" target="${testtype}"/>
+ <ant dir="WS-C" target="${testtype}"/>
+ <ant dir="WS-T" target="${testtype}"/>
+ <ant dir="WSTX" target="${testtype}"/>
+ <ant dir="localjunit" target="all"/>
+ </target>
+
<target name="com.arjuna.mwlabs.xts.wsas.clean">
<ant dir="WSAS" target="clean"/>
</target>
More information about the jboss-svn-commits
mailing list