[jboss-svn-commits] JBL Code SVN: r37736 - in labs/jbosstm/trunk/XTS: localjunit and 20 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Nov 24 02:28:25 EST 2011


Author: zhfeng
Date: 2011-11-24 02:28:25 -0500 (Thu, 24 Nov 2011)
New Revision: 37736

Added:
   labs/jbosstm/trunk/XTS/localjunit/WSCF/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/pom.xml
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/SagasParticipant.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/TestInitialisation.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/TwoPhaseParticipant.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/TwoPhaseSynchronization.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/WSCF11TestSuite.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/WSCF11TestUtils.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/AddParticipant.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/BeginCancel.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/BeginClose.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/CancelOnlyCancel.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/CancelOnlyClose.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/ParticipantCannotCompleteClose.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/ParticipantExitedClose.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/ParticipantFaultedClose.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/Suspend.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/SuspendClose.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/SuspendResume.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/SuspendResumeMultiParticipant.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/AddParticipant.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/AddSynchronization.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/BeginCancel.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/BeginConfirm.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/CancelOnlyCancel.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/CancelOnlyConfirm.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/ParticipantSynchronization.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/Suspend.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/SuspendConfirm.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/SuspendParticipant.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/SuspendResume.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/com/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/com/arjuna/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/com/arjuna/wscf11/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/com/arjuna/wscf11/tests/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/com/arjuna/wscf11/tests/WarDeployment.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/com/arjuna/wscf11/tests/model/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/com/arjuna/wscf11/tests/model/twophase/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/com/arjuna/wscf11/tests/model/twophase/BeginConfirmTest.java
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/resources/
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/resources/arquillian.xml
   labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/resources/web.xml
Modified:
   labs/jbosstm/trunk/XTS/pom.xml
Log:
JBTM-954 update to add wscf11 tests


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WSCF
___________________________________________________________________
Added: svn:ignore
   + target
.project
.classpath
.settings


Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/pom.xml
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/pom.xml	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/pom.xml	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated by the @authors tag. All rights reserved. See the copyright.txt in the distribution 
+	for a full listing of individual contributors. This copyrighted material is made available to anyone wishing to use, modify, copy, or redistribute it subject to the terms and conditions of the GNU Lesser 
+	General Public License, v. 2.1. This program is distributed in the hope that it will be useful, but WITHOUT A WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+	PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License, v.2.1 along with this distribution; if not, write to the Free 
+	Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<groupId>org.jboss.narayana.xts</groupId>
+	<modelVersion>4.0.0</modelVersion>
+	<artifactId>localjunit-wscf11-tests</artifactId>
+	<packaging>jar</packaging>
+	<name>wscf11 unit tests</name>
+	<description>wscf11 unit tests</description>
+	<version>5.0.0.M2-SNAPSHOT</version>
+	<build>
+		<plugins>
+			<plugin>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<version>2.3.1</version>
+				<configuration>
+					<source>1.6</source>
+					<target>1.6</target>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+	<dependencies>
+		<dependency>
+			<groupId>org.jboss.narayana.xts</groupId>
+			<artifactId>jbossxts</artifactId>
+			<version>5.0.0.M2-SNAPSHOT</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>4.8.1</version>
+		</dependency>
+		<dependency>
+			<groupId>javax.inject</groupId>
+			<artifactId>javax.inject</artifactId>
+			<version>1</version>
+			<scope>provided</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.jboss.arquillian.junit</groupId>
+			<artifactId>arquillian-junit-container</artifactId>
+			<version>1.0.0.CR5</version>
+			<scope>test</scope>
+		</dependency>
+	</dependencies>
+	<profiles>
+		<profile>
+			<!-- The default profile skips all tests, though you can tune it 
+			to run just unit tests based on a custom pattern -->
+			<!-- Seperate profiles are provided for running all tests, including 
+			Arquillian tests that execute in the specified container -->
+		 <id>default</id>
+		 <activation>
+			 <activeByDefault>true</activeByDefault>
+		 </activation>
+		 <build>
+			 <plugins>
+				 <plugin>
+					 <artifactId>maven-surefire-plugin</artifactId>
+					 <version>2.7.2</version>
+					 <configuration>
+						 <skip>false</skip>
+					 </configuration>
+				 </plugin>
+			 </plugins>
+		 </build>
+		 <dependencies>
+			 <dependency>
+				 <groupId>org.jboss.as</groupId>
+				 <artifactId>jboss-as-arquillian-container-managed</artifactId>
+				 <version>7.0.2.Final</version>
+				 <scope>test</scope>
+			 </dependency>
+		 </dependencies>
+	 </profile>
+ </profiles>
+</project>


Property changes on: labs/jbosstm/trunk/XTS/localjunit/WSCF/pom.xml
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/SagasParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/SagasParticipant.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/SagasParticipant.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,105 @@
+/*
+ * 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.sagas.exceptions.CompensateFailedException;
+import com.arjuna.mw.wscf.model.sagas.participants.Participant;
+import com.arjuna.mw.wscf.model.sagas.participants.ParticipantWithComplete;
+
+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 SagasParticipant implements ParticipantWithComplete
+{
+    public SagasParticipant(String id)
+    {
+	_id = id;
+    }
+
+    public void close() throws InvalidParticipantException, WrongStateException, SystemException {
+        System.out.println("SagasParticipant.close");
+    }
+
+    public void cancel () throws InvalidParticipantException, InvalidParticipantException, WrongStateException, SystemException
+    {
+        System.out.println("SagasParticipant.cancel");
+    }
+
+    public void compensate() throws CompensateFailedException, InvalidParticipantException, WrongStateException, SystemException
+    {
+        System.out.println("SagasParticipant.compensate");
+    }
+
+    public void forget() throws InvalidParticipantException, WrongStateException, SystemException {
+        System.out.println("SagasParticipant.forget");
+    }
+
+    public void complete() throws InvalidParticipantException, WrongStateException, SystemException {
+        System.out.println("SagasParticipant.complete");
+    }
+    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

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/TestInitialisation.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/TestInitialisation.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/TestInitialisation.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,18 @@
+package com.arjuna.wscf11.tests;
+
+import javax.servlet.ServletContextListener;
+import javax.servlet.ServletContextEvent;
+
+/**
+ * perform any setup required for the 1.1 WSCF tests
+ */
+public class TestInitialisation implements ServletContextListener
+{
+    public void contextInitialized(ServletContextEvent servletContextEvent) {
+        // do nothing for now
+    }
+
+    public void contextDestroyed(ServletContextEvent servletContextEvent) {
+        // do nothing for now
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/TwoPhaseParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/TwoPhaseParticipant.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/TwoPhaseParticipant.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -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

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/TwoPhaseSynchronization.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/TwoPhaseSynchronization.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/TwoPhaseSynchronization.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -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

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/WSCF11TestSuite.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/WSCF11TestSuite.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/WSCF11TestSuite.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,59 @@
+/*
+ * 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-2008,
+ * @author JBoss Inc.
+ */
+/*
+ * TestSuite.java
+ */
+
+package com.arjuna.wscf11.tests;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+ at RunWith(Suite.class)
+    @Suite.SuiteClasses({
+//            com.arjuna.wscf11.tests.model.twophase.StartEnd.class,
+            com.arjuna.wscf11.tests.model.twophase.BeginConfirm.class,
+            com.arjuna.wscf11.tests.model.twophase.BeginCancel.class,
+            com.arjuna.wscf11.tests.model.twophase.Suspend.class,
+            com.arjuna.wscf11.tests.model.twophase.SuspendResume.class,
+            com.arjuna.wscf11.tests.model.twophase.SuspendConfirm.class,
+            com.arjuna.wscf11.tests.model.twophase.CancelOnlyCancel.class,
+            com.arjuna.wscf11.tests.model.twophase.CancelOnlyConfirm.class,
+            com.arjuna.wscf11.tests.model.twophase.AddParticipant.class,
+            com.arjuna.wscf11.tests.model.twophase.SuspendParticipant.class,
+            com.arjuna.wscf11.tests.model.twophase.AddSynchronization.class,
+            com.arjuna.wscf11.tests.model.twophase.ParticipantSynchronization.class,
+            com.arjuna.wscf11.tests.model.sagas.BeginClose.class,
+            com.arjuna.wscf11.tests.model.sagas.BeginCancel.class,
+            com.arjuna.wscf11.tests.model.sagas.Suspend.class,
+            com.arjuna.wscf11.tests.model.sagas.SuspendResume.class,
+            com.arjuna.wscf11.tests.model.sagas.SuspendClose.class,
+            com.arjuna.wscf11.tests.model.sagas.CancelOnlyCancel.class,
+            com.arjuna.wscf11.tests.model.sagas.CancelOnlyClose.class,
+            com.arjuna.wscf11.tests.model.sagas.ParticipantExitedClose.class,
+            com.arjuna.wscf11.tests.model.sagas.ParticipantCannotCompleteClose.class,
+            com.arjuna.wscf11.tests.model.sagas.ParticipantFaultedClose.class,
+            com.arjuna.wscf11.tests.model.sagas.AddParticipant.class,
+            com.arjuna.wscf11.tests.model.sagas.SuspendResumeMultiParticipant.class
+    })
+public class WSCF11TestSuite
+{
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/WSCF11TestUtils.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/WSCF11TestUtils.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/WSCF11TestUtils.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,55 @@
+package com.arjuna.wscf11.tests;
+
+import com.arjuna.mw.wscf.model.sagas.api.UserCoordinator;
+
+/**
+ * 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.model.twophase.api.CoordinatorManager cm)
+    {
+        try {
+            while (cm.currentActivity() != null) {
+                cm.cancel();
+            }
+        } catch (Exception e) {
+            // do nothing -- caller will be dealing with exceptions
+        }
+    }
+
+
+    public static void cleanup(com.arjuna.mw.wscf.model.sagas.api.CoordinatorManager cm) {
+        try {
+            while (cm.currentActivity() != null) {
+                cm.cancel();
+            }
+        } catch (Exception e) {
+            // do nothing -- caller will be dealing with exceptions
+        }
+    }
+
+    public static void cleanup(com.arjuna.mw.wscf.model.sagas.api.UserCoordinator uc) {
+        try {
+            while (uc.currentActivity() != null) {
+                uc.cancel();
+            }
+        } catch (Exception e) {
+            // do nothing -- caller will be dealing with exceptions
+        }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/AddParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/AddParticipant.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/AddParticipant.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,41 @@
+package com.arjuna.wscf11.tests.model.sagas;
+
+import javax.inject.Named;
+
+import com.arjuna.mw.wscf.model.sagas.api.CoordinatorManager;
+import com.arjuna.mw.wscf11.model.sagas.CoordinatorManagerFactory;
+import com.arjuna.wscf11.tests.SagasParticipant;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+
+/**
+ */
+
+ at Named
+public class AddParticipant
+{
+    public void testAddParticipant()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
+
+	try
+	{
+	    cm.begin("Sagas11HLS");
+
+	    cm.enlistParticipant(new SagasParticipant(null));
+
+	    System.out.println("Started: "+cm.identifier()+"\n");
+
+        cm.complete();
+
+        cm.close();
+	}
+	catch (Exception ex)
+	{
+	    WSCF11TestUtils.cleanup(cm);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/BeginCancel.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/BeginCancel.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/BeginCancel.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,28 @@
+package com.arjuna.wscf11.tests.model.sagas;
+
+import com.arjuna.mw.wscf.model.sagas.api.UserCoordinator;
+import com.arjuna.mw.wscf11.model.sagas.UserCoordinatorFactory;
+import org.junit.Test;
+
+/**
+ */
+
+public class BeginCancel
+{
+    @Test
+    public void testBeginCancel()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        UserCoordinator ua = UserCoordinatorFactory.userCoordinator();
+
+	    ua.begin("Sagas11HLS");
+
+	    System.out.println("Started: "+ua.identifier()+"\n");
+
+	    ua.cancel();
+
+        System.out.println("Cancelled");
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/BeginClose.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/BeginClose.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/BeginClose.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,35 @@
+package com.arjuna.wscf11.tests.model.sagas;
+
+import com.arjuna.mw.wscf.model.sagas.api.UserCoordinator;
+import com.arjuna.mw.wscf11.model.sagas.UserCoordinatorFactory;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+import org.junit.Test;
+
+/**
+ */
+
+public class BeginClose
+{
+    @Test
+    public void testBeginClose()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        UserCoordinator ua = UserCoordinatorFactory.userCoordinator();
+
+	try
+	{
+	    ua.begin("Sagas11HLS");
+
+	    System.out.println("Started: "+ua.identifier()+"\n");
+
+	    ua.close();
+	}
+	catch (Exception ex)
+	{
+	    WSCF11TestUtils.cleanup(ua);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/CancelOnlyCancel.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/CancelOnlyCancel.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/CancelOnlyCancel.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,43 @@
+package com.arjuna.wscf11.tests.model.sagas;
+
+import com.arjuna.mw.wscf.model.sagas.api.UserCoordinator;
+import com.arjuna.mw.wscf.model.sagas.exceptions.CoordinatorCancelledException;
+import com.arjuna.mw.wscf11.model.sagas.UserCoordinatorFactory;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+import org.junit.Test;
+
+/**
+ */
+
+public class CancelOnlyCancel
+{
+    @Test
+    public void testCancelOnlyCancel()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        UserCoordinator ua = UserCoordinatorFactory.userCoordinator();
+
+	try
+	{
+	    ua.begin("Sagas11HLS");
+
+	    System.out.println("Started: "+ua.identifier()+"\n");
+
+	    ua.setCancelOnly();
+
+	    ua.cancel();
+	}
+	catch (CoordinatorCancelledException ex)
+	{
+        // why is it ok to get here?
+        WSCF11TestUtils.cleanup(ua);
+    }
+	catch (Exception ex)
+	{
+        WSCF11TestUtils.cleanup(ua);
+        throw ex;
+	}
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/CancelOnlyClose.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/CancelOnlyClose.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/CancelOnlyClose.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,47 @@
+package com.arjuna.wscf11.tests.model.sagas;
+
+import com.arjuna.mw.wscf.model.sagas.api.UserCoordinator;
+import com.arjuna.mw.wscf.model.sagas.exceptions.CoordinatorCancelledException;
+import com.arjuna.mw.wscf11.model.sagas.UserCoordinatorFactory;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+import org.junit.Test;
+
+import static org.junit.Assert.fail;
+
+/**
+ */
+
+public class CancelOnlyClose
+{
+    @Test
+    public void testCancelOnlyClose()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        UserCoordinator ua = UserCoordinatorFactory.userCoordinator();
+
+	try
+	{
+	    ua.begin("Sagas11HLS");
+
+	    System.out.println("Started: "+ua.identifier()+"\n");
+
+	    ua.setCancelOnly();
+
+	    ua.close();
+
+        fail("Close succeeded after setCancelOnly");
+    }
+	catch (CoordinatorCancelledException ex)
+	{
+	    // we should get here
+        WSCF11TestUtils.cleanup(ua);
+    }
+	catch (Exception ex)
+	{
+	    WSCF11TestUtils.cleanup(ua);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/ParticipantCannotCompleteClose.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/ParticipantCannotCompleteClose.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/ParticipantCannotCompleteClose.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,53 @@
+package com.arjuna.wscf11.tests.model.sagas;
+
+import com.arjuna.mw.wscf.model.sagas.api.CoordinatorManager;
+import com.arjuna.mw.wscf.model.sagas.exceptions.CoordinatorCancelledException;
+import com.arjuna.mw.wscf11.model.sagas.CoordinatorManagerFactory;
+import com.arjuna.wscf11.tests.SagasParticipant;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+import org.junit.Test;
+
+import static org.junit.Assert.fail;
+
+/**
+ */
+
+public class ParticipantCannotCompleteClose
+{
+    @Test
+    public void testParticipantCannotCompleteClose()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
+
+	try
+	{
+        String id = "1234";
+
+	    cm.begin("Sagas11HLS");
+
+        SagasParticipant participant = new SagasParticipant(id);
+
+	    cm.enlistParticipant(participant);
+
+	    cm.participantCannotComplete(id);
+
+	    System.out.println("Started: "+cm.identifier()+"\n");
+
+	    cm.close();
+
+        fail("Close succeeded after participantFaulted");
+	}
+    catch (CoordinatorCancelledException ex)
+    {
+        WSCF11TestUtils.cleanup(cm);
+    }
+    catch (Exception ex)
+    {
+        WSCF11TestUtils.cleanup(cm);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/ParticipantExitedClose.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/ParticipantExitedClose.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/ParticipantExitedClose.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,47 @@
+package com.arjuna.wscf11.tests.model.sagas;
+
+import com.arjuna.mw.wscf.model.sagas.api.CoordinatorManager;
+import com.arjuna.mw.wscf.model.sagas.exceptions.CoordinatorCancelledException;
+import com.arjuna.mw.wscf11.model.sagas.CoordinatorManagerFactory;
+import com.arjuna.wscf11.tests.SagasParticipant;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+import org.junit.Test;
+
+import static org.junit.Assert.fail;
+
+/**
+ */
+
+public class ParticipantExitedClose
+{
+    @Test
+    public void testParticipantExitedClose()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
+
+	try
+	{
+        String id = "1235";
+
+	    cm.begin("Sagas11HLS");
+
+        SagasParticipant participant = new SagasParticipant(id);
+
+	    cm.enlistParticipant(participant);
+
+	    cm.delistParticipant(id);
+
+	    System.out.println("Started: "+cm.identifier()+"\n");
+
+	    cm.close();
+	}
+    catch (Exception ex)
+    {
+        WSCF11TestUtils.cleanup(cm);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/ParticipantFaultedClose.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/ParticipantFaultedClose.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/ParticipantFaultedClose.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,53 @@
+package com.arjuna.wscf11.tests.model.sagas;
+
+import com.arjuna.mw.wscf.model.sagas.api.CoordinatorManager;
+import com.arjuna.mw.wscf.model.sagas.exceptions.CoordinatorCancelledException;
+import com.arjuna.mw.wscf11.model.sagas.CoordinatorManagerFactory;
+import com.arjuna.wscf11.tests.SagasParticipant;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+import org.junit.Test;
+
+import static org.junit.Assert.fail;
+
+/**
+ */
+
+public class ParticipantFaultedClose
+{
+    @Test
+    public void testParticipantFaultedClose()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
+
+	try
+	{
+        String id = "1236";
+
+	    cm.begin("Sagas11HLS");
+
+        SagasParticipant participant = new SagasParticipant(id);
+
+	    cm.enlistParticipant(participant);
+
+	    cm.participantFaulted(id);
+
+	    System.out.println("Started: "+cm.identifier()+"\n");
+
+	    cm.close();
+
+        fail("Close succeeded after participantFaulted");
+	}
+    catch (CoordinatorCancelledException ex)
+    {
+        WSCF11TestUtils.cleanup(cm);
+    }
+    catch (Exception ex)
+    {
+        WSCF11TestUtils.cleanup(cm);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/Suspend.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/Suspend.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/Suspend.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,50 @@
+package com.arjuna.wscf11.tests.model.sagas;
+
+import com.arjuna.mw.wsas.activity.ActivityHierarchy;
+import com.arjuna.mw.wscf.exceptions.NoCoordinatorException;
+import com.arjuna.mw.wscf.model.sagas.api.UserCoordinator;
+import com.arjuna.mw.wscf11.model.sagas.UserCoordinatorFactory;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+import org.junit.Test;
+
+import static org.junit.Assert.fail;
+
+/**
+ */
+
+public class Suspend
+{
+    @Test
+    public void testSuspend()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        UserCoordinator ua = UserCoordinatorFactory.userCoordinator();
+
+	try
+	{
+	    ua.begin("Sagas11HLS");
+
+	    System.out.println("Started: "+ua.identifier()+"\n");
+
+	    ActivityHierarchy hier = ua.suspend();
+
+	    System.out.println("Suspended: "+hier+"\n");
+
+	    if (ua.currentActivity() != null) {
+            WSCF11TestUtils.cleanup(ua);
+            fail("Hierarchy still active.");
+        }
+	}
+	catch (NoCoordinatorException ex)
+	{
+        // why is it ok to get here?
+    }
+	catch (Exception ex)
+	{
+        WSCF11TestUtils.cleanup(ua);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/SuspendClose.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/SuspendClose.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/SuspendClose.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,52 @@
+package com.arjuna.wscf11.tests.model.sagas;
+
+import com.arjuna.mw.wsas.activity.ActivityHierarchy;
+import com.arjuna.mw.wscf.exceptions.NoCoordinatorException;
+import com.arjuna.mw.wscf.model.sagas.api.UserCoordinator;
+import com.arjuna.mw.wscf11.model.sagas.UserCoordinatorFactory;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+import org.junit.Test;
+
+import static org.junit.Assert.fail;
+
+/**
+ */
+
+public class SuspendClose
+{
+    @Test
+    public void testSuspendClose()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        UserCoordinator ua = UserCoordinatorFactory.userCoordinator();
+
+	try
+	{
+	    ua.begin("Sagas11HLS");
+
+	    System.out.println("Started: "+ua.identifier()+"\n");
+
+	    ActivityHierarchy hier = ua.suspend();
+
+	    System.out.println("Suspended: "+hier+"\n");
+
+	    if (ua.currentActivity() != null) {
+            WSCF11TestUtils.cleanup(ua);
+            fail("Hierarchy still active.");
+        }
+
+        ua.close();
+	}
+	catch (NoCoordinatorException ex)
+	{
+        WSCF11TestUtils.cleanup(ua);
+    }
+	catch (Exception ex)
+	{
+	    WSCF11TestUtils.cleanup(ua);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/SuspendResume.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/SuspendResume.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/SuspendResume.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,56 @@
+package com.arjuna.wscf11.tests.model.sagas;
+
+import com.arjuna.mw.wsas.activity.ActivityHierarchy;
+import com.arjuna.mw.wscf.model.sagas.api.UserCoordinator;
+import com.arjuna.mw.wscf11.model.sagas.UserCoordinatorFactory;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+import org.junit.Test;
+
+import static org.junit.Assert.fail;
+
+/**
+ */
+
+public class SuspendResume
+{
+    @Test
+    public void testSuspendResume()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        UserCoordinator ua = UserCoordinatorFactory.userCoordinator();
+
+	try
+	{
+	    ua.begin("Sagas11HLS");
+
+	    System.out.println("Started: "+ua.identifier()+"\n");
+
+	    ActivityHierarchy hier = ua.suspend();
+
+	    System.out.println("Suspended: "+hier+"\n");
+
+	    if (ua.currentActivity() != null)
+	    {
+            WSCF11TestUtils.cleanup(ua);
+            fail("Hierarchy still active");
+        }
+	    else
+	    {
+            ua.resume(hier);
+
+            System.out.println("Resumed: "+hier+"\n");
+
+            ua.cancel();
+
+            System.out.println("Cancelled");
+	    }
+	}
+	catch (Exception ex)
+	{
+        WSCF11TestUtils.cleanup(ua);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/SuspendResumeMultiParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/SuspendResumeMultiParticipant.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/sagas/SuspendResumeMultiParticipant.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,57 @@
+package com.arjuna.wscf11.tests.model.sagas;
+
+import com.arjuna.mw.wsas.activity.ActivityHierarchy;
+import com.arjuna.mw.wscf.model.sagas.api.CoordinatorManager;
+import com.arjuna.mw.wscf11.model.sagas.CoordinatorManagerFactory;
+import com.arjuna.wscf11.tests.SagasParticipant;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+import org.junit.Test;
+
+import static org.junit.Assert.fail;
+
+/**
+ */
+
+public class SuspendResumeMultiParticipant
+{
+    @Test
+    public void testSuspendResumeMultiParticipant()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
+
+	try
+	{
+	    cm.begin("Sagas11HLS");
+
+	    cm.enlistParticipant(new SagasParticipant("p1"));
+	    cm.enlistParticipant(new SagasParticipant("p2"));
+
+	    System.out.println("Started: "+cm.identifier()+"\n");
+
+	    ActivityHierarchy hier = cm.suspend();
+
+	    System.out.println("Suspended: "+hier+"\n");
+
+	    if (cm.currentActivity() != null)
+	    {
+            WSCF11TestUtils.cleanup(cm);
+
+            fail("Hierarchy still active.");
+	    }
+		cm.resume(hier);
+
+        System.out.println("Resumed: "+hier+"\n");
+
+		cm.close();
+	}
+	catch (Exception ex)
+	{
+	    WSCF11TestUtils.cleanup(cm);
+
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/AddParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/AddParticipant.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/AddParticipant.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,76 @@
+/*
+ * 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: AddParticipant.java,v 1.2 2005/01/15 21:21:03 kconner Exp $
+ */
+
+package com.arjuna.wscf11.tests.model.twophase;
+
+import com.arjuna.mw.wscf.model.twophase.api.CoordinatorManager;
+
+import com.arjuna.mw.wscf11.model.twophase.CoordinatorManagerFactory;
+
+import com.arjuna.wscf11.tests.TwoPhaseParticipant;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: AddParticipant.java,v 1.2 2005/01/15 21:21:03 kconner Exp $
+ * @since 1.0.
+ */
+
+public class AddParticipant
+{
+    @Test
+    public void testAddParticipant()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
+
+	try
+	{
+	    cm.begin("TwoPhase11HLS");
+
+	    cm.enlistParticipant(new TwoPhaseParticipant(null));
+
+	    System.out.println("Started: "+cm.identifier()+"\n");
+
+	    cm.confirm();
+	}
+	catch (Exception ex)
+	{
+	    WSCF11TestUtils.cleanup(cm);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/AddSynchronization.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/AddSynchronization.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/AddSynchronization.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,76 @@
+/*
+ * 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: AddSynchronization.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
+ */
+
+package com.arjuna.wscf11.tests.model.twophase;
+
+import com.arjuna.mw.wscf.model.twophase.api.CoordinatorManager;
+
+import com.arjuna.mw.wscf11.model.twophase.CoordinatorManagerFactory;
+
+import com.arjuna.wscf11.tests.TwoPhaseSynchronization;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: AddSynchronization.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
+ * @since 1.0.
+ */
+
+public class AddSynchronization
+{
+    @Test
+    public void testAddSynchronization()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
+
+	try
+	{
+	    cm.begin("TwoPhase11HLS");
+
+	    cm.enlistSynchronization(new TwoPhaseSynchronization());
+
+	    System.out.println("Started: "+cm.identifier()+"\n");
+
+	    cm.confirm();
+	}
+	catch (Exception ex)
+	{
+        WSCF11TestUtils.cleanup(cm);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/BeginCancel.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/BeginCancel.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/BeginCancel.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,65 @@
+/*
+ * 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: BeginCancel.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
+ */
+
+package com.arjuna.wscf11.tests.model.twophase;
+
+import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
+
+import com.arjuna.mw.wscf11.model.twophase.UserCoordinatorFactory;
+
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: BeginCancel.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
+ * @since 1.0.
+ */
+
+public class BeginCancel
+{
+    @Test
+    public void testBeginCancel()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        UserCoordinator ua = UserCoordinatorFactory.userCoordinator();
+
+	    ua.begin("TwoPhase11HLS");
+
+	    System.out.println("Started: "+ua.identifier()+"\n");
+
+	    ua.cancel();
+
+        System.out.println("Cancelled");
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/BeginConfirm.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/BeginConfirm.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/BeginConfirm.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -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) 2002,
+ *
+ * Arjuna Technologies Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: BeginConfirm.java,v 1.2 2003/01/17 15:39:35 nmcl Exp $
+ */
+
+package com.arjuna.wscf11.tests.model.twophase;
+
+import javax.inject.Named;
+
+import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
+
+import com.arjuna.mw.wscf11.model.twophase.UserCoordinatorFactory;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: BeginConfirm.java,v 1.2 2003/01/17 15:39:35 nmcl Exp $
+ * @since 1.0.
+ */
+
+ at Named
+public class BeginConfirm
+{
+    public void testBeginConfirm()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        UserCoordinator ua = UserCoordinatorFactory.userCoordinator();
+
+	try
+	{
+	    ua.begin("TwoPhase11HLS");
+
+	    System.out.println("Started: "+ua.identifier()+"\n");
+
+	    ua.confirm();
+	}
+	catch (Exception ex)
+	{
+	    WSCF11TestUtils.cleanup(ua);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/CancelOnlyCancel.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/CancelOnlyCancel.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/CancelOnlyCancel.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,81 @@
+/*
+ * 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: CancelOnlyCancel.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
+ */
+
+package com.arjuna.wscf11.tests.model.twophase;
+
+import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
+
+import com.arjuna.mw.wscf11.model.twophase.UserCoordinatorFactory;
+
+import com.arjuna.mw.wscf.model.twophase.exceptions.*;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: CancelOnlyCancel.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
+ * @since 1.0.
+ */
+
+public class CancelOnlyCancel
+{
+    @Test
+    public void testCancelOnlyCancel()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        UserCoordinator ua = UserCoordinatorFactory.userCoordinator();
+
+	try
+	{
+	    ua.begin("TwoPhase11HLS");
+
+	    System.out.println("Started: "+ua.identifier()+"\n");
+
+	    ua.setCancelOnly();
+
+	    ua.cancel();
+	}
+	catch (CoordinatorCancelledException ex)
+	{
+        // why is it ok to get here?
+        WSCF11TestUtils.cleanup(ua);
+    }
+	catch (Exception ex)
+	{
+        WSCF11TestUtils.cleanup(ua);
+        throw ex;
+	}
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/CancelOnlyConfirm.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/CancelOnlyConfirm.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/CancelOnlyConfirm.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,83 @@
+/*
+ * 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: CancelOnlyConfirm.java,v 1.1 2003/01/07 10:34:01 nmcl Exp $
+ */
+
+package com.arjuna.wscf11.tests.model.twophase;
+
+import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
+
+import com.arjuna.mw.wscf11.model.twophase.UserCoordinatorFactory;
+
+import com.arjuna.mw.wscf.model.twophase.exceptions.*;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: CancelOnlyConfirm.java,v 1.1 2003/01/07 10:34:01 nmcl Exp $
+ * @since 1.0.
+ */
+
+public class CancelOnlyConfirm
+{
+    @Test
+    public void testCancelOnlyConfirm()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        UserCoordinator ua = UserCoordinatorFactory.userCoordinator();
+
+	try
+	{
+	    ua.begin("TwoPhase11HLS");
+
+	    System.out.println("Started: "+ua.identifier()+"\n");
+
+	    ua.setCancelOnly();
+
+	    ua.confirm();
+
+        fail("Confirm succeeded after setCancelOnly");
+    }
+	catch (CoordinatorCancelledException ex)
+	{
+	    // we should get here
+        WSCF11TestUtils.cleanup(ua);
+    }
+	catch (Exception ex)
+	{
+	    WSCF11TestUtils.cleanup(ua);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/ParticipantSynchronization.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/ParticipantSynchronization.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/ParticipantSynchronization.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,79 @@
+/*
+ * 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: ParticipantSynchronization.java,v 1.2 2005/01/15 21:21:03 kconner Exp $
+ */
+
+package com.arjuna.wscf11.tests.model.twophase;
+
+import com.arjuna.mw.wscf.model.twophase.api.CoordinatorManager;
+
+import com.arjuna.mw.wscf11.model.twophase.CoordinatorManagerFactory;
+
+import com.arjuna.wscf11.tests.TwoPhaseParticipant;
+import com.arjuna.wscf11.tests.TwoPhaseSynchronization;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: ParticipantSynchronization.java,v 1.2 2005/01/15 21:21:03 kconner Exp $
+ * @since 1.0.
+ */
+
+public class ParticipantSynchronization
+{
+    @Test
+    public void testParticipantSynchronization()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
+
+	try
+	{
+	    cm.begin("TwoPhase11HLS");
+
+	    cm.enlistParticipant(new TwoPhaseParticipant(null));
+	    cm.enlistParticipant(new TwoPhaseParticipant(null));
+	    cm.enlistSynchronization(new TwoPhaseSynchronization());
+
+	    System.out.println("Started: "+cm.identifier()+"\n");
+
+	    cm.confirm();
+	}
+	catch (Exception ex)
+	{
+	    WSCF11TestUtils.cleanup(cm);
+        throw ex;
+	}
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/Suspend.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/Suspend.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/Suspend.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,87 @@
+/*
+ * 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: Suspend.java,v 1.1 2003/01/07 10:34:01 nmcl Exp $
+ */
+
+package com.arjuna.wscf11.tests.model.twophase;
+
+import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
+
+import com.arjuna.mw.wscf11.model.twophase.UserCoordinatorFactory;
+
+import com.arjuna.mw.wsas.activity.*;
+
+import com.arjuna.mw.wscf.exceptions.*;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: Suspend.java,v 1.1 2003/01/07 10:34:01 nmcl Exp $
+ * @since 1.0.
+ */
+
+public class Suspend
+{
+    @Test
+    public void testSuspend()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        UserCoordinator ua = UserCoordinatorFactory.userCoordinator();
+
+	try
+	{
+	    ua.begin("TwoPhase11HLS");
+
+	    System.out.println("Started: "+ua.identifier()+"\n");
+
+	    ActivityHierarchy hier = ua.suspend();
+
+	    System.out.println("Suspended: "+hier+"\n");
+
+	    if (ua.currentActivity() != null) {
+            WSCF11TestUtils.cleanup(ua);
+            fail("Hierarchy still active.");
+        }
+	}
+	catch (NoCoordinatorException ex)
+	{
+        // why is it ok to get here?
+    }
+	catch (Exception ex)
+	{
+        WSCF11TestUtils.cleanup(ua);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/SuspendConfirm.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/SuspendConfirm.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/SuspendConfirm.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,90 @@
+/*
+ * 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: SuspendConfirm.java,v 1.1 2003/01/07 10:34:01 nmcl Exp $
+ */
+
+package com.arjuna.wscf11.tests.model.twophase;
+
+import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
+
+import com.arjuna.mw.wscf11.model.twophase.UserCoordinatorFactory;
+
+import com.arjuna.mw.wsas.activity.*;
+
+import com.arjuna.mw.wscf.exceptions.*;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: SuspendConfirm.java,v 1.1 2003/01/07 10:34:01 nmcl Exp $
+ * @since 1.0.
+ */
+
+public class SuspendConfirm
+{
+    @Test
+    public void testSuspendConfirm()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        UserCoordinator ua = UserCoordinatorFactory.userCoordinator();
+
+	try
+	{
+	    ua.begin("TwoPhase11HLS");
+
+	    System.out.println("Started: "+ua.identifier()+"\n");
+
+	    ActivityHierarchy hier = ua.suspend();
+
+	    System.out.println("Suspended: "+hier+"\n");
+
+	    if (ua.currentActivity() != null) {
+            WSCF11TestUtils.cleanup(ua);
+            fail("Hierarchy still active.");
+        }
+
+        ua.confirm();
+	}
+	catch (NoCoordinatorException ex)
+	{
+	    // why is it ok to get here?
+        WSCF11TestUtils.cleanup(ua);
+    }
+	catch (Exception ex)
+	{
+	    WSCF11TestUtils.cleanup(ua);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/SuspendParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/SuspendParticipant.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/SuspendParticipant.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,96 @@
+/*
+ * 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: SuspendParticipant.java,v 1.2 2005/01/15 21:21:03 kconner Exp $
+ */
+
+package com.arjuna.wscf11.tests.model.twophase;
+
+import com.arjuna.mw.wscf.model.twophase.api.CoordinatorManager;
+
+import com.arjuna.mw.wscf11.model.twophase.CoordinatorManagerFactory;
+
+import com.arjuna.mw.wsas.activity.*;
+
+import com.arjuna.wscf11.tests.TwoPhaseParticipant;
+import com.arjuna.wscf11.tests.TwoPhaseSynchronization;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: SuspendParticipant.java,v 1.2 2005/01/15 21:21:03 kconner Exp $
+ * @since 1.0.
+ */
+
+public class SuspendParticipant
+{
+    @Test
+    public void testSuspendParticipant()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        CoordinatorManager cm = CoordinatorManagerFactory.coordinatorManager();
+
+	try
+	{
+	    cm.begin("TwoPhase11HLS");
+
+	    cm.enlistParticipant(new TwoPhaseParticipant("p1"));
+	    cm.enlistParticipant(new TwoPhaseParticipant("p2"));
+	    cm.enlistSynchronization(new TwoPhaseSynchronization());
+
+	    System.out.println("Started: "+cm.identifier()+"\n");
+
+	    ActivityHierarchy hier = cm.suspend();
+
+	    System.out.println("Suspended: "+hier+"\n");
+
+	    if (cm.currentActivity() != null)
+	    {
+            WSCF11TestUtils.cleanup(cm);
+
+            fail("Hierarchy still active.");
+	    }
+		cm.resume(hier);
+
+        System.out.println("Resumed: "+hier+"\n");
+
+		cm.confirm();
+	}
+	catch (Exception ex)
+	{
+	    WSCF11TestUtils.cleanup(cm);
+
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/SuspendResume.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/SuspendResume.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/main/java/com/arjuna/wscf11/tests/model/twophase/SuspendResume.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,92 @@
+/*
+ * 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: SuspendResume.java,v 1.1 2003/01/07 10:34:01 nmcl Exp $
+ */
+
+package com.arjuna.wscf11.tests.model.twophase;
+
+import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
+
+import com.arjuna.mw.wscf11.model.twophase.UserCoordinatorFactory;
+
+import com.arjuna.mw.wsas.activity.*;
+import com.arjuna.wscf11.tests.WSCF11TestUtils;
+
+import org.junit.Test;
+import static org.junit.Assert.*;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: SuspendResume.java,v 1.1 2003/01/07 10:34:01 nmcl Exp $
+ * @since 1.0.
+ */
+
+public class SuspendResume
+{
+    @Test
+    public void testSuspendResume()
+            throws Exception
+    {
+        System.out.println("Running test : " + this.getClass().getName());
+
+        UserCoordinator ua = UserCoordinatorFactory.userCoordinator();
+
+	try
+	{
+	    ua.begin("TwoPhase11HLS");
+
+	    System.out.println("Started: "+ua.identifier()+"\n");
+
+	    ActivityHierarchy hier = ua.suspend();
+
+	    System.out.println("Suspended: "+hier+"\n");
+
+	    if (ua.currentActivity() != null)
+	    {
+            WSCF11TestUtils.cleanup(ua);
+            fail("Hierarchy still active");
+        }
+	    else
+	    {
+            ua.resume(hier);
+
+            System.out.println("Resumed: "+hier+"\n");
+
+            ua.cancel();
+
+            System.out.println("Cancelled");
+	    }
+	}
+	catch (Exception ex)
+	{
+        WSCF11TestUtils.cleanup(ua);
+        throw ex;
+    }
+    }
+}
\ No newline at end of file

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/com/arjuna/wscf11/tests/WarDeployment.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/com/arjuna/wscf11/tests/WarDeployment.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/com/arjuna/wscf11/tests/WarDeployment.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,34 @@
+package com.arjuna.wscf11.tests;
+
+import java.io.File;
+
+import org.jboss.shrinkwrap.api.ArchivePaths;
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.asset.EmptyAsset;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+
+public class WarDeployment {
+	public static WebArchive getDeployment(Class<?>...args){
+		WebArchive archive = ShrinkWrap
+		.create(WebArchive.class, "test.war")
+		.addClass(TestInitialisation.class)
+		.addClass(SagasParticipant.class)
+		.addClass(TwoPhaseParticipant.class)
+		.addClass(TwoPhaseSynchronization.class)
+		.addClass(WSCF11TestUtils.class)
+		.addClasses(args)
+		.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml")
+		.setWebXML(new File("src/test/resources/web.xml"));
+
+		archive.delete(ArchivePaths.create("META-INF/MANIFEST.MF"));
+
+		final String ManifestMF = "Manifest-Version: 1.0\n"
+			+ "Dependencies: org.jboss.modules,deployment.arquillian-service,org.jboss.msc,"
+			+ "org.jboss.jts,org.jboss.ws.api,javax.xml.ws.api,org.jboss.xts,"
+			+ "org.jboss.ws.jaxws-client services export,org.jboss.ws.cxf.jbossws-cxf-client services export\n";
+		archive.setManifest(new StringAsset(ManifestMF));
+
+		return archive;
+	}
+}

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/com/arjuna/wscf11/tests/model/twophase/BeginConfirmTest.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/com/arjuna/wscf11/tests/model/twophase/BeginConfirmTest.java	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/java/com/arjuna/wscf11/tests/model/twophase/BeginConfirmTest.java	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,28 @@
+package com.arjuna.wscf11.tests.model.twophase;
+
+import javax.inject.Inject;
+
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.junit.Arquillian;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import com.arjuna.wscf11.tests.WarDeployment;
+
+
+ at RunWith(Arquillian.class)
+public class BeginConfirmTest {
+	@Inject
+	BeginConfirm test;
+	
+	@Deployment
+	public static WebArchive createDeployment() {
+		return WarDeployment.getDeployment(BeginConfirm.class);
+	}
+	
+	@Test
+	public void testBeginConfirm() throws Exception {
+		test.testBeginConfirm();
+	}
+}

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/resources/arquillian.xml
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/resources/arquillian.xml	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/resources/arquillian.xml	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<arquillian xmlns="http://jboss.org/schema/arquillian" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.org/schema/arquillian
+	http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
+	<!-- Example configuration for a remote JBoss AS 7 instance -->
+	<container qualifier="jboss-as" default="true">
+		<protocol type="jmx-as7">
+			<property name="executionType">REMOTE</property>
+		</protocol>
+		<configuration>
+			<property name="serverConfig">standalone-xts.xml</property>
+		</configuration>
+	</container>
+</arquillian>

Added: labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/resources/web.xml
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/resources/web.xml	                        (rev 0)
+++ labs/jbosstm/trunk/XTS/localjunit/WSCF/src/test/resources/web.xml	2011-11-24 07:28:25 UTC (rev 37736)
@@ -0,0 +1,38 @@
+<!--
+  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.
+-->
+
+<web-app version="2.5"
+	xmlns="http://java.sun.com/xml/ns/javaee"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+	metadata-complete="false">
+
+	<display-name>Arjuna WSCF 1.1 Tests</display-name>
+
+	<description>Arjuna WSCF 1.1 Tests</description>
+
+	<!--  Initialise the tests -->
+	<listener>
+		<listener-class>com.arjuna.wscf11.tests.TestInitialisation</listener-class>
+	</listener>
+
+</web-app>

Modified: labs/jbosstm/trunk/XTS/pom.xml
===================================================================
--- labs/jbosstm/trunk/XTS/pom.xml	2011-11-24 07:26:33 UTC (rev 37735)
+++ labs/jbosstm/trunk/XTS/pom.xml	2011-11-24 07:28:25 UTC (rev 37736)
@@ -51,6 +51,7 @@
     <module>recovery</module>
     <module>bridge</module>
     <module>sar</module>
+	<module>sar/tests</module>
     <module>demo</module>
     <module>docs</module>
     <module>jbossxts</module>



More information about the jboss-svn-commits mailing list