[jboss-svn-commits] JBL Code SVN: r18927 - in labs/jbosstm/trunk: XTS/WSCF and 17 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Mar 13 11:50:06 EDT 2008
Author: adinn
Date: 2008-03-13 11:50:06 -0400 (Thu, 13 Mar 2008)
New Revision: 18927
Added:
labs/jbosstm/trunk/XTS/WSCF/tests/
labs/jbosstm/trunk/XTS/WSCF/tests/classes/
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/qa/
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/qa/junit/
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/qa/junit/WSCFTestRunnerServlet.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/DemoParticipant.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/DemoXAParticipant.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/DemoXAResource.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/FailureParticipant.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/JTASynchronization.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/TestInitialisation.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/TwoPhaseParticipant.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/TwoPhaseSynchronization.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/WSCFTestSuite.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/xml/
labs/jbosstm/trunk/XTS/WSCF/tests/dd/
labs/jbosstm/trunk/XTS/WSCF/tests/dd/wscf-tests_application.xml
labs/jbosstm/trunk/XTS/WSCF/tests/dd/wscf-tests_web-app.xml
Removed:
labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoParticipant.java
labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoXAParticipant.java
labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoXAResource.java
labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/FailureParticipant.java
labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/JTASynchronization.java
labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/TwoPhaseParticipant.java
labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/TwoPhaseSynchronization.java
labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/
labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/xml/
Modified:
labs/jbosstm/trunk/ArjunaJTS/INSTALL
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/jta/TopLevel1.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/jta/TopLevel2.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/jta/TopLevel3.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Context.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested1.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested2.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested3.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested4.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested5.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested6.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested7.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested8.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/NullParticipant.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel1.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel2.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel3.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel4.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel5.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/AddParticipant.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/AddSynchronization.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/BeginCommit.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/BeginRollback.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/ParticipantSynchronization.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/Suspend.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/SuspendConfirm.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/SuspendParticipant.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/SuspendResume.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/WscContext.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/WscTranslateContext.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/AddParticipant.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/AddSynchronization.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/BeginCancel.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/BeginConfirm.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/CancelOnlyCancel.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/CancelOnlyConfirm.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/ContextOutput.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/ParticipantSynchronization.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/StartEnd.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/Suspend.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/SuspendConfirm.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/SuspendParticipant.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/SuspendResume.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/WscContext.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/WscNestedContext.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/WscTranslateContext.java
labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/xml/SchemaName.java
Log:
updated instructions for sar deployment to enable hostname and port to be set
Modified: labs/jbosstm/trunk/ArjunaJTS/INSTALL
===================================================================
--- labs/jbosstm/trunk/ArjunaJTS/INSTALL 2008-03-13 15:33:43 UTC (rev 18926)
+++ labs/jbosstm/trunk/ArjunaJTS/INSTALL 2008-03-13 15:50:06 UTC (rev 18927)
@@ -123,8 +123,15 @@
(2) change to the sar subdirectory in the XTS source tree
-(3) execute ant deploy
+(3) execute 'ant deploy'
+ the build.xml script assumes that the desired web listener hostname
+ and port are "localhost" and "8080". if JBossAS is using an alternative
+ port or host name e.g. server www.example.com and port 9090, override
+ these defaults on the commmand line e.g.
+
+(3) execute 'ant -Dhostname="www.example.com" -Dport="9090"
+
(n.b. the instructions above assume you have first built the rest of
the XTS code by executing command 'ant clean install' in the XTS
source root directory).
Deleted: labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoParticipant.java 2008-03-13 15:33:43 UTC (rev 18926)
+++ labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoParticipant.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -1,156 +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 General Public License, v. 2.0.
- * 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 General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 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: DemoParticipant.java,v 1.4 2004/03/15 13:25:14 nmcl Exp $
- */
-
-package com.arjuna.mwtests.wscf.common;
-
-import com.arjuna.ats.arjuna.ObjectType;
-import com.arjuna.ats.arjuna.coordinator.*;
-import com.arjuna.ats.arjuna.common.*;
-import com.arjuna.ats.arjuna.state.*;
-import com.arjuna.ats.arjuna.gandiva.ClassName;
-
-import com.arjuna.mw.wsas.activity.Outcome;
-
-import com.arjuna.mw.wscf.model.as.coordinator.Participant;
-
-import com.arjuna.mw.wscf.model.as.coordinator.Message;
-
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.messages.*;
-
-import com.arjuna.mw.wscf.model.twophase.common.*;
-import com.arjuna.mw.wscf.model.twophase.outcomes.*;
-
-import com.arjuna.mw.wsas.exceptions.SystemException;
-import com.arjuna.mw.wsas.exceptions.WrongStateException;
-import com.arjuna.mw.wsas.exceptions.ProtocolViolationException;
-
-import java.util.Hashtable;
-
-/**
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: DemoParticipant.java,v 1.4 2004/03/15 13:25:14 nmcl Exp $
- * @since 1.0.
- */
-
-public class DemoParticipant implements Participant
-{
-
- public DemoParticipant ()
- {
- this(true);
- }
-
- public DemoParticipant (boolean readonly)
- {
- _readonly = readonly;
- _id = new Uid();
- }
-
- public Outcome processMessage (Message notification) throws WrongStateException, ProtocolViolationException, SystemException
- {
- System.out.println("DemoParticipant.processMessage ( "+notification+" ) : "+_id);
-
- if ((notification instanceof NestedPrepare) || (notification instanceof TopLevelPrepare))
- {
- if (_readonly)
- {
- System.out.println("\nReturning read-only");
-
- return new VoteReadOnly();
- }
- else
- {
- System.out.println("\nReturning commit");
-
- return new VoteConfirm();
- }
- }
- else
- {
- if ((notification instanceof NestedConfirm) || (notification instanceof TopLevelConfirm))
- {
- System.out.println("\nReturning finish-ok");
-
- return new CoordinationOutcome(TwoPhaseOutcome.FINISH_OK);
- }
- else
- {
- if ((notification instanceof NestedCancel) || (notification instanceof TopLevelCancel))
- {
- System.out.println("\nReturning finish-ok");
-
- return new CoordinationOutcome(TwoPhaseOutcome.FINISH_OK);
- }
- else
- {
- if ((notification instanceof TopLevelOnePhaseCommit) || (notification instanceof NestedOnePhaseCommit))
- {
- System.out.println("\nOne-phase commit ok");
-
- return new CoordinationOutcome(TwoPhaseOutcome.FINISH_OK);
- }
- else
- {
- System.out.println("\nReturning finish-error");
-
- return new CoordinationOutcome(TwoPhaseOutcome.FINISH_ERROR);
- }
- }
- }
- }
- }
-
- public String identity () throws SystemException
- {
- return "DemoParticipant: "+_id;
- }
-
- /**
- * These methods are required so that the coordinator can serialise and
- * de-serialise information about the inferior during completion and
- * recovery.
- */
-
- public boolean packState (OutputObjectState os)
- {
- return true;
- }
-
- public boolean unpackState (InputObjectState os)
- {
- return true;
- }
-
- private boolean _readonly;
- private Uid _id;
-
-}
Deleted: labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoXAParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoXAParticipant.java 2008-03-13 15:33:43 UTC (rev 18926)
+++ labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoXAParticipant.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -1,171 +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 General Public License, v. 2.0.
- * 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 General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 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: DemoXAParticipant.java,v 1.4 2004/03/15 13:25:14 nmcl Exp $
- */
-
-package com.arjuna.mwtests.wscf.common;
-
-import com.arjuna.ats.arjuna.common.*;
-import com.arjuna.ats.arjuna.state.*;
-
-import com.arjuna.mw.wsas.completionstatus.Failure;
-
-import com.arjuna.mw.wsas.activity.Outcome;
-
-import com.arjuna.mw.wscf.model.as.coordinator.Participant;
-import com.arjuna.mw.wscf.model.as.coordinator.Message;
-
-import com.arjuna.mw.wscf.model.as.coordinator.xa.outcomes.*;
-import com.arjuna.mw.wscf.model.as.coordinator.xa.messages.*;
-
-import com.arjuna.mw.wsas.exceptions.SystemException;
-import com.arjuna.mw.wsas.exceptions.WrongStateException;
-import com.arjuna.mw.wsas.exceptions.ProtocolViolationException;
-
-import javax.transaction.xa.*;
-
-import java.util.Hashtable;
-
-/**
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: DemoXAParticipant.java,v 1.4 2004/03/15 13:25:14 nmcl Exp $
- * @since 1.0.
- */
-
-public class DemoXAParticipant implements Participant
-{
-
- public DemoXAParticipant ()
- {
- this(true);
- }
-
- public DemoXAParticipant (boolean readonly)
- {
- _readonly = readonly;
- _id = new Uid();
- }
-
- public Outcome processMessage (Message notification) throws WrongStateException, ProtocolViolationException, SystemException
- {
- System.out.println("DemoXAParticipant.processMessage ( "+notification+" ) : "+_id);
-
- if (notification instanceof XAPrepare)
- {
- if (_readonly)
- {
- System.out.println("\nReturning read-only to prepare");
-
- return new XAPrepareOutcome(XAResource.XA_RDONLY);
- }
- else
- {
- System.out.println("\nReturning commit to prepare");
-
- return new XAPrepareOutcome(XAResource.XA_OK);
- }
- }
- else
- {
- if (notification instanceof XACommit)
- {
- if (((XACommit) notification).onePhaseCommit())
- {
- System.out.println("\nOne-phase commit ok");
-
- return new XAOutcome();
- }
- else
- {
- System.out.println("\nCommit ok");
-
- return new XAOutcome();
- }
- }
- else
- {
- if (notification instanceof XAStart)
- {
- System.out.println("\nStarting ok");
-
- return new XAOutcome();
- }
- else
- {
- if (notification instanceof XAEnd)
- {
- System.out.println("\nEnding ok");
-
- return new XAOutcome();
- }
- else
- {
- if (notification instanceof XARollback)
- {
- System.out.println("\nRolling back ok");
-
- return new XAOutcome(Failure.instance());
- }
- else
- {
- System.out.println("\nReturning finish-error for "+notification);
-
- return new XAOutcome(new XAException(XAException.XAER_INVAL));
- }
- }
- }
- }
- }
- }
-
- public String identity () throws SystemException
- {
- return "DemoXAParticipant: "+_id;
- }
-
- /**
- * These methods are required so that the coordinator can serialise and
- * de-serialise information about the inferior during completion and
- * recovery.
- */
-
- public boolean packState (OutputObjectState os)
- {
- return true;
- }
-
- public boolean unpackState (InputObjectState os)
- {
- return true;
- }
-
- private boolean _readonly;
- private Uid _id;
-
-}
Deleted: labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoXAResource.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoXAResource.java 2008-03-13 15:33:43 UTC (rev 18926)
+++ labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoXAResource.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -1,103 +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 General Public License, v. 2.0.
- * 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 General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 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: DemoXAResource.java,v 1.1 2003/01/07 10:37:17 nmcl Exp $
- */
-
-package com.arjuna.mwtests.wscf.common;
-
-import javax.transaction.xa.*;
-
-public class DemoXAResource implements XAResource
-{
-
- public DemoXAResource ()
- {
- }
-
- public void commit (Xid xid, boolean onePhase) throws XAException
- {
- System.out.println("DemoXAResource.commit "+xid);
- }
-
- public void end (Xid xid, int flags) throws XAException
- {
- System.out.println("DemoXAResource.end "+xid);
- }
-
- public void forget (Xid xid) throws XAException
- {
- System.out.println("DemoXAResource.forget "+xid);
- }
-
- public int getTransactionTimeout () throws XAException
- {
- System.out.println("DemoXAResource.getTransactionTimeout");
-
- return 0;
- }
-
- public int prepare (Xid xid) throws XAException
- {
- System.out.println("DemoXAResource.prepare "+xid);
-
- return XAResource.XA_OK;
- }
-
- public Xid[] recover (int flag) throws XAException
- {
- System.out.println("DemoXAResource.recover "+flag);
-
- return null;
- }
-
- public void rollback (Xid xid) throws XAException
- {
- System.out.println("DemoXAResource.rollback "+xid);
- }
-
- public boolean setTransactionTimeout (int seconds) throws XAException
- {
- System.out.println("DemoXAResource.setTransactionTimeout "+seconds);
-
- return true;
- }
-
- public void start (Xid xid, int flags) throws XAException
- {
- System.out.println("DemoXAResource.start "+xid);
- }
-
- public boolean isSameRM (XAResource xares) throws XAException
- {
- System.out.println("DemoXAResource.isSameRM "+xares);
-
- return (xares == this);
- }
-
-}
Deleted: labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/FailureParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/FailureParticipant.java 2008-03-13 15:33:43 UTC (rev 18926)
+++ labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/FailureParticipant.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -1,197 +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 General Public License, v. 2.0.
- * 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 General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 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.4 2004/03/15 13:25:14 nmcl Exp $
- */
-
-package com.arjuna.mwtests.wscf.common;
-
-import com.arjuna.ats.arjuna.ObjectType;
-import com.arjuna.ats.arjuna.coordinator.*;
-import com.arjuna.ats.arjuna.common.*;
-import com.arjuna.ats.arjuna.state.*;
-import com.arjuna.ats.arjuna.gandiva.ClassName;
-
-import com.arjuna.mw.wsas.activity.Outcome;
-
-import com.arjuna.mw.wscf.model.as.coordinator.Participant;
-import com.arjuna.mw.wscf.model.as.coordinator.Message;
-
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.messages.*;
-
-import com.arjuna.mw.wscf.model.twophase.common.*;
-import com.arjuna.mw.wscf.model.twophase.outcomes.*;
-
-import com.arjuna.mw.wsas.exceptions.SystemException;
-import com.arjuna.mw.wsas.exceptions.WrongStateException;
-import com.arjuna.mw.wsas.exceptions.ProtocolViolationException;
-
-import java.util.Hashtable;
-
-/**
- * @author Mark Little (mark.little at arjuna.com)
- * @version $Id: FailureParticipant.java,v 1.4 2004/03/15 13:25:14 nmcl Exp $
- * @since 1.0.
- */
-
-public class FailureParticipant implements Participant
-{
-
- public static final int NESTED_PREPARE = 0;
- public static final int NESTED_CONFIRM = 1;
- public static final int NESTED_CANCEL = 2;
- public static final int TOPLEVEL_PREPARE = 3;
- public static final int TOPLEVEL_CONFIRM = 4;
- public static final int TOPLEVEL_CANCEL = 5;
-
- public FailureParticipant (int failure)
- {
- this(true, failure);
- }
-
- public FailureParticipant (boolean readonly, int failure)
- {
- _readonly = readonly;
- _id = new Uid();
- _failurePoint = failure;
- }
-
- public Outcome processMessage (Message notification) throws WrongStateException, ProtocolViolationException, SystemException
- {
- System.out.println("FailureParticipant.processMessage ( "+notification+" ) : "+_id);
-
- if ((notification instanceof NestedPrepare) || (notification instanceof TopLevelPrepare))
- {
- if ((_failurePoint == NESTED_PREPARE) && (notification instanceof NestedPrepare))
- {
- System.out.println("\nReturning cancel");
-
- return new VoteCancel();
- }
-
- if ((_failurePoint == TOPLEVEL_PREPARE) && (notification instanceof TopLevelPrepare))
- {
- System.out.println("\nReturning cancel");
-
- return new VoteCancel();
- }
-
- if (_readonly)
- {
- System.out.println("\nReturning read-only");
-
- return new VoteReadOnly();
- }
- else
- {
- System.out.println("\nReturning commit");
-
- return new VoteConfirm();
- }
- }
- else
- {
- if ((notification instanceof NestedConfirm) || (notification instanceof TopLevelConfirm))
- {
- if ((_failurePoint == NESTED_CONFIRM) && (notification instanceof NestedConfirm))
- {
- System.out.println("\nReturning finish-error");
-
- return new CoordinationOutcome(TwoPhaseOutcome.FINISH_ERROR);
- }
-
- if ((_failurePoint == TOPLEVEL_CONFIRM) && (notification instanceof TopLevelConfirm))
- {
- System.out.println("\nReturning finish-error");
-
- return new CoordinationOutcome(TwoPhaseOutcome.FINISH_ERROR);
- }
-
- System.out.println("\nReturning finish-ok");
-
- return new CoordinationOutcome(TwoPhaseOutcome.FINISH_OK);
- }
- else
- {
- if ((notification instanceof NestedCancel) || (notification instanceof TopLevelCancel))
- {
- if ((_failurePoint == NESTED_CANCEL) && (notification instanceof NestedCancel))
- {
- System.out.println("\nReturning finish-error");
-
- return new CoordinationOutcome(TwoPhaseOutcome.FINISH_ERROR);
- }
-
- if ((_failurePoint == TOPLEVEL_CANCEL) && (notification instanceof TopLevelCancel))
- {
- System.out.println("\nReturning finish-error");
-
- return new CoordinationOutcome(TwoPhaseOutcome.FINISH_ERROR);
- }
-
- System.out.println("\nReturning finish-ok");
-
- return new CoordinationOutcome(TwoPhaseOutcome.FINISH_OK);
- }
- else
- {
- System.out.println("\nReturning finish-error");
-
- return new CoordinationOutcome(TwoPhaseOutcome.FINISH_ERROR);
- }
- }
- }
- }
-
- public String identity () throws SystemException
- {
- return "FailureParticipant: "+_id;
- }
-
- /**
- * These methods are required so that the coordinator can serialise and
- * de-serialise information about the inferior during completion and
- * recovery.
- */
-
- public boolean packState (OutputObjectState os)
- {
- return true;
- }
-
- public boolean unpackState (InputObjectState os)
- {
- return true;
- }
-
- private boolean _readonly;
- private Uid _id;
- private int _failurePoint;
-
-}
Deleted: labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/JTASynchronization.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/JTASynchronization.java 2008-03-13 15:33:43 UTC (rev 18926)
+++ labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/JTASynchronization.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -1,49 +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 General Public License, v. 2.0.
- * 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 General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 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: JTASynchronization.java,v 1.1 2003/01/07 10:37:17 nmcl Exp $
- */
-
-package com.arjuna.mwtests.wscf.common;
-
-import javax.transaction.xa.*;
-
-public class JTASynchronization implements javax.transaction.Synchronization
-{
-
- public void beforeCompletion ()
- {
- System.out.println("beforeCompletion");
- }
-
- public void afterCompletion (int status)
- {
- System.out.println("afterCompletion :"+status);
- }
-
-}
Deleted: labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/TwoPhaseParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/TwoPhaseParticipant.java 2008-03-13 15:33:43 UTC (rev 18926)
+++ labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/TwoPhaseParticipant.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -1,104 +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 General Public License, v. 2.0.
- * 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 General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 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.mwtests.wscf.common;
-
-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;
-
-/**
- * @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)
- {
- return false ;
- }
-
- public boolean restore_state(InputObjectState os)
- {
- return false ;
- }
-
- private String _id;
-
-}
Deleted: labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/TwoPhaseSynchronization.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/TwoPhaseSynchronization.java 2008-03-13 15:33:43 UTC (rev 18926)
+++ labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/TwoPhaseSynchronization.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -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 General Public License, v. 2.0.
- * 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 General Public License for more details.
- * You should have received a copy of the GNU General Public License,
- * v. 2.0 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.mwtests.wscf.common;
-
-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)+" )");
- }
-
-}
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/qa/junit/WSCFTestRunnerServlet.java (from rev 18918, labs/jbosstm/trunk/XTS/WSAS/tests/classes/com/arjuna/qa/junit/WSASTestRunnerServlet.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/qa/junit/WSCFTestRunnerServlet.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/qa/junit/WSCFTestRunnerServlet.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -0,0 +1,607 @@
+/*
+ * 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 General Public License, v. 2.0.
+ * 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 General Public License for more details.
+ * You should have received a copy of the GNU General Public License,
+ * v. 2.0 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, Arjuna Technologies Limited.
+ *
+ * WSTXTestRunnerServlet.java
+ */
+
+package com.arjuna.qa.junit;
+
+import java.io.*;
+import java.util.*;
+import javax.servlet.*;
+import javax.servlet.http.*;
+import junit.framework.*;
+
+public class WSCFTestRunnerServlet extends HttpServlet
+{
+ public void init(ServletConfig config) throws ServletException
+ {
+ super.init(config);
+
+ _testSuiteClassName = config.getInitParameter("TestSuiteClassName");
+ }
+
+ public void doGet(HttpServletRequest request, HttpServletResponse response)
+ throws ServletException, IOException
+ {
+ try
+ {
+ PrintWriter writer = response.getWriter();
+
+ response.setContentType("text/html");
+ response.setHeader("Cache-Control", "no-cache");
+
+ if (request.getParameter("failednumber") != null)
+ doStatusFailed(writer, request, response);
+ else if (request.getParameter("errornumber") != null)
+ doStatusError(writer, request, response);
+ else
+ doStatus(writer, request, response);
+ }
+ catch (Exception exception)
+ {
+ log("Test Runner: doGet failed", exception);
+
+ response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, exception.toString());
+ }
+ catch (Error error)
+ {
+ log("Test Runner: doGet failed", error);
+
+ response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, error.toString());
+ }
+ }
+
+ public void doPost(HttpServletRequest request, HttpServletResponse response)
+ throws ServletException, IOException
+ {
+ try
+ {
+ PrintWriter writer = response.getWriter();
+
+ response.setContentType("text/html");
+ response.setHeader("Cache-Control", "no-cache");
+
+ if ((_runnerThread == null) || (! _runnerThread.isAlive()))
+ {
+ _runnerThread = new RunnerThread();
+ _runnerThread.start();
+ }
+
+ if (request.getParameter("failednumber") != null)
+ doStatusFailed(writer, request, response);
+ else if (request.getParameter("errornumber") != null)
+ doStatusError(writer, request, response);
+ else
+ doStatus(writer, request, response);
+ }
+ catch (Exception exception)
+ {
+ log("Test Runner: doPost failed", exception);
+
+ response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, exception.toString());
+ }
+ catch (Error error)
+ {
+ log("Test Runner: doPost failed", error);
+
+ response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, error.toString());
+ }
+ }
+
+ public void doStatus(PrintWriter writer, HttpServletRequest request, HttpServletResponse response)
+ throws ServletException
+ {
+ writer.println("<HTML>");
+ writer.println("<HEAD>");
+ writer.println("<TITLE>Test Runner</TITLE>");
+ writer.println("</HEAD>");
+ writer.println("<BODY bgcolor=\"white\" style=\"font-family: Arial, Helvetica, sans-serif\">");
+ writer.println("<DIV style=\"font-family: Arial, Helvetica, sans-serif; font-size: large\"> <BR>Test Runner: Status<BR> </DIV>");
+
+ writer.println("<TABLE width=\"100%\">");
+
+ writer.println("<TR><TD colspan=\"3\" align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Status</TD></TR>");
+ writer.println("<TR>");
+ writer.println("<TD style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Test suite class:</TD>");
+ writer.println("<TD style=\"font-family: Arial, Helvetica, sans-serif\">" + _testSuiteClassName + "</TD>");
+ writer.println("</TR>");
+
+ if ((_runnerThread == null) || (! _runnerThread.isAlive()))
+ {
+ writer.println("<TR>");
+ writer.println("<TD style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Action:</TD>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif\">");
+ writer.print("<FORM method=\"POST\" action=\"" + request.getRequestURL() + "\">");
+ writer.print("<INPUT type=\"button\" value=\"run\" onclick=\"this.form.submit()\">");
+ writer.print("</FORM>");
+ writer.println("</TD>");
+ writer.println("</TR>");
+ }
+ else
+ {
+ writer.println("<TR>");
+ writer.println("<TD style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Action:</TD>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif\">");
+ writer.print("<FORM method=\"GET\" action=\"" + request.getRequestURL() + "\">");
+ writer.print("<INPUT type=\"button\" value=\"reload\" onclick=\"this.form.submit()\">");
+ writer.print("</FORM>");
+ writer.println("</TD>");
+ writer.println("</TR>");
+
+ if (_currentTest != null)
+ {
+ writer.println("<TR>");
+ writer.println("<TD style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Current test:</TD>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif\">");
+ encode(writer, _currentTest.toString());
+ writer.println("</TD>");
+ writer.println("</TR>");
+ }
+ }
+ writer.println("</TR>");
+ writer.println("<TR>");
+ writer.println("<TD style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Passed count:</TD>");
+ writer.println("<TD style=\"font-family: Arial, Helvetica, sans-serif\">" + _passedTests.size() + "</TD>");
+ writer.println("</TR>");
+ writer.println("<TR>");
+ writer.println("<TD style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Failed count:</TD>");
+ writer.println("<TD style=\"font-family: Arial, Helvetica, sans-serif\">" + _failedTests.size() + "</TD>");
+ writer.println("</TR>");
+ writer.println("<TR>");
+ writer.println("<TD style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Error count:</TD>");
+ writer.println("<TD style=\"font-family: Arial, Helvetica, sans-serif\">" + _errorTests.size() + "</TD>");
+ writer.println("</TR>");
+
+ writer.println("</TABLE>");
+
+ if (! _passedTests.isEmpty())
+ {
+ writer.println("<BR>");
+
+ writer.println("<TABLE width=\"100%\">");
+
+ writer.println("<TR><TD colspan=\"3\" align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Passes</TD></TR>");
+
+ writer.println("<TR>");
+ writer.println("<TD align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Test</TD>");
+ writer.println("<TD align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Duration</TD>");
+ writer.println("</TR>");
+
+ Iterator passedTestsIterator = _passedTests.iterator();
+ while (passedTestsIterator.hasNext())
+ {
+ PassedTest passedTest = (PassedTest) passedTestsIterator.next();
+ writer.println("<TR>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif\">");
+ encode(writer, passedTest.test.toString());
+ writer.println("</TD>");
+ writer.print("<TD align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif\">" + passedTest.duration + " ms</TD>");
+ writer.println("</TR>");
+ }
+
+ writer.println("</TABLE>");
+ }
+
+ if (! _failedTests.isEmpty())
+ {
+ writer.println("<BR>");
+
+ writer.println("<TABLE width=\"100%\">");
+
+ writer.println("<TR><TD colspan=\"3\" align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Failures</TD></TR>");
+ writer.println("<TR>");
+ writer.println("<TD align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Test</TD>");
+ writer.println("<TD align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Duration</TD>");
+ writer.println("<TD align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Message</TD>");
+ writer.println("</TR>");
+
+ int failedNumber = 0;
+ Iterator failedTestsIterator = _failedTests.iterator();
+ while (failedTestsIterator.hasNext())
+ {
+ FailedTest failedTest = (FailedTest) failedTestsIterator.next();
+ writer.println("<TR>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif\">");
+ writer.print("<A href=\"" + request.getRequestURL() + "?failednumber=" + failedNumber + "\">");
+ encode(writer, failedTest.test.toString());
+ writer.print("</A>");
+ writer.println("</TD>");
+ writer.print("<TD align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif\">" + failedTest.duration + " ms</TD>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif\">");
+ encode(writer, failedTest.assertionFailedError.getMessage());
+ writer.println("</TD>");
+ writer.println("</TR>");
+ failedNumber++;
+ }
+
+ writer.println("</TABLE>");
+
+ writer.println("<BR>");
+ }
+
+ if (! _errorTests.isEmpty())
+ {
+ writer.println("<TABLE width=\"100%\">");
+ writer.println("<TR>");
+ writer.println("<TR><TD colspan=\"3\" align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Errors</TD></TR>");
+ writer.println("<TD align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Test</TD>");
+ writer.println("<TD align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Duration</TD>");
+ writer.println("<TD align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Exception/Error</TD>");
+ writer.println("</TR>");
+
+ int errorNumber = 0;
+ Iterator errorTestsIterator = _errorTests.iterator();
+ while (errorTestsIterator.hasNext())
+ {
+ ErrorTest errorTest = (ErrorTest) errorTestsIterator.next();
+ writer.println("<TR>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif\">");
+ writer.print("<A href=\"" + request.getRequestURL() + "?errornumber=" + errorNumber + "\">");
+ encode(writer, errorTest.test.toString());
+ writer.print("</A>");
+ writer.println("</TD>");
+ writer.print("<TD align=\"center\" style=\"font-family: Arial, Helvetica, sans-serif\">" + errorTest.duration + " ms</TD>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif\">");
+ encode(writer, errorTest.throwable.toString());
+ writer.println("</TD>");
+ writer.println("</TR>");
+ errorNumber++;
+ }
+
+ writer.println("</TABLE>");
+ }
+
+ writer.println("</BODY>");
+ writer.println("</HTML>");
+ }
+
+ public void doStatusFailed(PrintWriter writer, HttpServletRequest request, HttpServletResponse response)
+ throws ServletException
+ {
+ int failedIndex = 0;
+ FailedTest failedTest = null;
+
+ try
+ {
+ String failedIndexString = (String) request.getParameter("failednumber");
+
+ failedIndex = Integer.parseInt(failedIndexString);
+ failedTest = (FailedTest) _failedTests.get(failedIndex);
+ }
+ catch (Exception exception)
+ {
+ failedTest = null;
+ }
+
+ if (failedTest != null)
+ {
+ writer.println("<HTML>");
+ writer.println("<HEAD>");
+ writer.println("<TITLE>Test Runner</TITLE>");
+ writer.println("</HEAD>");
+ writer.println("<BODY bgcolor=\"white\" style=\"font-family: Arial, Helvetica, sans-serif\">");
+ writer.println("<DIV style=\"font-family: Arial, Helvetica, sans-serif; font-size: large\"> <BR>Test Runner: Failed Status<BR> </DIV>");
+
+ writer.println("<TABLE>");
+
+ writer.print("<TR>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Test:</TD>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif\">");
+ encode(writer, failedTest.test.toString());
+ writer.println("</TD>");
+ writer.println("</TR>");
+
+ writer.println("<TR>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Duration:</TD>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif\">" + failedTest.duration + " ms</TD>");
+ writer.println("</TR>");
+
+ writer.println("<TR>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Message:</TD>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif\">");
+ encode(writer, failedTest.assertionFailedError.getMessage());
+ writer.println("</TD>");
+ writer.println("</TR>");
+
+ writer.print("<TR>");
+ writer.print("<TD colspan=\"2\" style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Stack trace:</TD>");
+ writer.println("</TR>");
+ writer.println("<TR>");
+ writer.println("<TD colspan=\"2\" style=\"font-family: Arial, Helvetica, sans-serif\">");
+ writer.println("<PRE>");
+ CharArrayWriter charArrayWriter = new CharArrayWriter();
+ PrintWriter printWriter = new PrintWriter(charArrayWriter, true);
+ failedTest.assertionFailedError.printStackTrace(printWriter);
+ printWriter.close();
+ charArrayWriter.close();
+ encode(writer, charArrayWriter.toString());
+ writer.println("</PRE>");
+ writer.println("</TD>");
+ writer.println("</TR>");
+
+ writer.println("</TABLE>");
+
+ writer.println("<TABLE width=\"100%\">");
+ writer.println("<TR>");
+ writer.println("<TD align=\"left\" width=\"33%\" style=\"font-family: Arial, Helvetica, sans-serif\">");
+ if (failedIndex > 0)
+ writer.println("<A href=\"" + request.getRequestURL() + "?failednumber=" + (failedIndex - 1)+ "\">previous</A>");
+ else
+ writer.print(" ");
+ writer.println("</TD>");
+ writer.println("<TD align=\"center\" width=\"33%\" style=\"font-family: Arial, Helvetica, sans-serif\">");
+ writer.println("<A href=\"" + request.getRequestURL() + "\">all</A>");
+ writer.println("</TD>");
+ writer.println("<TD align=\"right\" width=\"33%\" style=\"font-family: Arial, Helvetica, sans-serif\">");
+ if (failedIndex < (_failedTests.size() - 1))
+ writer.println("<A href=\"" + request.getRequestURL() + "?failednumber=" + (failedIndex + 1)+ "\">next</A>");
+ else
+ writer.print(" ");
+ writer.println("</TD>");
+ writer.println("</TR>");
+ writer.println("</TABLE>");
+
+ writer.println("</BODY>");
+ writer.println("</HTML>");
+ }
+ else
+ doStatus(writer, request, response);
+ }
+
+ public void doStatusError(PrintWriter writer, HttpServletRequest request, HttpServletResponse response)
+ throws ServletException
+ {
+ int errorIndex = 0;
+ ErrorTest errorTest = null;
+
+ try
+ {
+ String errorIndexString = (String) request.getParameter("errornumber");
+
+ errorIndex = Integer.parseInt(errorIndexString);
+ errorTest = (ErrorTest) _errorTests.get(errorIndex);
+ }
+ catch (Exception exception)
+ {
+ errorTest = null;
+ }
+
+ if (errorTest != null)
+ {
+ writer.println("<HTML>");
+ writer.println("<HEAD>");
+ writer.println("<TITLE>Test Runner</TITLE>");
+ writer.println("</HEAD>");
+ writer.println("<BODY bgcolor=\"white\" style=\"font-family: Arial, Helvetica, sans-serif\">");
+ writer.println("<DIV style=\"font-family: Arial, Helvetica, sans-serif; font-size: large\"> <BR>Test Runner: Error Status<BR> </DIV>");
+
+ writer.println("<TABLE>");
+
+ writer.print("<TR>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Test:</TD>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif\">");
+ encode(writer, errorTest.test.toString());
+ writer.println("</TD>");
+ writer.println("</TR>");
+
+ writer.println("<TR>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Duration:</TD>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif\">" + errorTest.duration + " ms</TD>");
+ writer.println("</TR>");
+
+ writer.println("<TR>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Exception/error:</TD>");
+ writer.print("<TD style=\"font-family: Arial, Helvetica, sans-serif\">");
+ encode(writer, errorTest.throwable.toString());
+ writer.println("</TD>");
+ writer.println("</TR>");
+
+ writer.print("<TR>");
+ writer.print("<TD colspan=\"2\" style=\"font-family: Arial, Helvetica, sans-serif; font-weight: bold\">Stack trace:</TD>");
+ writer.println("</TR>");
+ writer.println("<TR>");
+ writer.println("<TD colspan=\"2\" style=\"font-family: Arial, Helvetica, sans-serif\">");
+ writer.println("<PRE>");
+ CharArrayWriter charArrayWriter = new CharArrayWriter();
+ PrintWriter printWriter = new PrintWriter(charArrayWriter, true);
+ errorTest.throwable.printStackTrace(printWriter);
+ printWriter.close();
+ charArrayWriter.close();
+ encode(writer, charArrayWriter.toString());
+ writer.println("</PRE>");
+ writer.println("</TD>");
+ writer.println("</TR>");
+
+ writer.println("</TABLE>");
+
+ writer.println("<TABLE width=\"100%\">");
+ writer.println("<TR>");
+ writer.println("<TD align=\"left\" width=\"33%\" style=\"font-family: Arial, Helvetica, sans-serif\">");
+ if (errorIndex > 0)
+ writer.println("<A href=\"" + request.getRequestURL() + "?errornumber=" + (errorIndex - 1)+ "\">previous</A>");
+ else
+ writer.print(" ");
+ writer.println("</TD>");
+ writer.println("<TD align=\"center\" width=\"33%\" style=\"font-family: Arial, Helvetica, sans-serif\">");
+ writer.println("<A href=\"" + request.getRequestURL() + "\">all</A>");
+ writer.println("</TD>");
+ writer.println("<TD align=\"right\" width=\"33%\" style=\"font-family: Arial, Helvetica, sans-serif\">");
+ if (errorIndex < (_errorTests.size() - 1))
+ writer.println("<A href=\"" + request.getRequestURL() + "?errornumber=" + (errorIndex + 1)+ "\">next</A>");
+ else
+ writer.print(" ");
+ writer.println("</TD>");
+ writer.println("</TR>");
+ writer.println("</TABLE>");
+
+ writer.println("</BODY>");
+ writer.println("</HTML>");
+ }
+ else
+ doStatus(writer, request, response);
+ }
+
+ private class PassedTest
+ {
+ public Test test;
+ public long duration;
+ }
+
+ private class FailedTest
+ {
+ public Test test;
+ public long duration;
+ public AssertionFailedError assertionFailedError;
+ }
+
+ private class ErrorTest
+ {
+ public Test test;
+ public long duration;
+ public Throwable throwable;
+ }
+
+ private class RunnerThread extends Thread
+ {
+ public void run()
+ {
+ try
+ {
+ _passedTests.clear();
+ _failedTests.clear();
+ _errorTests.clear();
+
+ Class testSuiteClass = Class.forName(_testSuiteClassName);
+ TestListener testListener = new BasicTestListener();
+
+ _testResult = new TestResult();
+ _testSuite = (TestSuite) testSuiteClass.newInstance();
+
+ _testResult.addListener(testListener);
+ _testSuite.run(_testResult);
+ _testResult.removeListener(testListener);
+ }
+ catch (Exception exception)
+ {
+ log("Runner Thread: run failed", exception);
+ }
+ catch (Error error)
+ {
+ log("Runner Thread: run failed", error);
+ }
+ }
+ }
+
+ private class BasicTestListener implements TestListener
+ {
+ public void startTest(Test test)
+ {
+ _startTime = System.currentTimeMillis();
+ _failed = false;
+ _error = false;
+ _assertionFailedError = null;
+ _throwable = null;
+ _currentTest = test;
+ }
+
+ public void addError(Test test, Throwable throwable)
+ {
+ _error = true;
+ _throwable = throwable;
+ throwable.printStackTrace(System.out);
+ }
+
+ public void addFailure(Test test, AssertionFailedError assertionFailedError)
+ {
+ _failed = true;
+ _assertionFailedError = assertionFailedError;
+ assertionFailedError.printStackTrace(System.out);
+ }
+
+ public void endTest(Test test)
+ {
+ if (_failed)
+ {
+ FailedTest failedTest = new FailedTest();
+ failedTest.test = test;
+ failedTest.duration = System.currentTimeMillis() - _startTime;
+ failedTest.assertionFailedError = _assertionFailedError;
+ _failedTests.add(failedTest);
+ }
+ else if (_error)
+ {
+ ErrorTest errorTest = new ErrorTest();
+ errorTest.test = test;
+ errorTest.duration = System.currentTimeMillis() - _startTime;
+ errorTest.throwable = _throwable;
+ _errorTests.add(errorTest);
+ }
+ else
+ {
+ PassedTest passedTest = new PassedTest();
+ passedTest.test = test;
+ passedTest.duration = System.currentTimeMillis() - _startTime;
+ _passedTests.add(passedTest);
+ }
+
+ _currentTest = null;
+ }
+
+ private long _startTime = 0;
+ private boolean _failed = false;
+ private boolean _error = false;
+ private AssertionFailedError _assertionFailedError = null;
+ private Throwable _throwable = null;
+ }
+
+ private static void encode(PrintWriter writer, String string)
+ {
+ if (string != null)
+ {
+ char[] chars = string.toCharArray();
+
+ for (int index = 0; index < chars.length; index++)
+ if (chars[index] == '<')
+ writer.print("<");
+ else if (chars[index] == '>')
+ writer.print(">");
+ else if (chars[index] == '&')
+ writer.print("&");
+ else
+ writer.print(chars[index]);
+ }
+ else
+ writer.print("null");
+ }
+
+ private List _passedTests = new LinkedList();
+ private List _failedTests = new LinkedList();
+ private List _errorTests = new LinkedList();
+ private Test _currentTest = null;
+ private String _testSuiteClassName = null;
+ private RunnerThread _runnerThread = null;
+ private TestResult _testResult = null;
+ private TestSuite _testSuite = null;
+
+}
\ No newline at end of file
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/DemoParticipant.java (from rev 18923, labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/DemoParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/DemoParticipant.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -0,0 +1,156 @@
+/*
+ * 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 General Public License, v. 2.0.
+ * 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 General Public License for more details.
+ * You should have received a copy of the GNU General Public License,
+ * v. 2.0 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: DemoParticipant.java,v 1.4 2004/03/15 13:25:14 nmcl Exp $
+ */
+
+package com.arjuna.wscf.tests;
+
+import com.arjuna.ats.arjuna.ObjectType;
+import com.arjuna.ats.arjuna.coordinator.*;
+import com.arjuna.ats.arjuna.common.*;
+import com.arjuna.ats.arjuna.state.*;
+import com.arjuna.ats.arjuna.gandiva.ClassName;
+
+import com.arjuna.mw.wsas.activity.Outcome;
+
+import com.arjuna.mw.wscf.model.as.coordinator.Participant;
+
+import com.arjuna.mw.wscf.model.as.coordinator.Message;
+
+import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
+import com.arjuna.mw.wscf.model.as.coordinator.twophase.messages.*;
+
+import com.arjuna.mw.wscf.model.twophase.common.*;
+import com.arjuna.mw.wscf.model.twophase.outcomes.*;
+
+import com.arjuna.mw.wsas.exceptions.SystemException;
+import com.arjuna.mw.wsas.exceptions.WrongStateException;
+import com.arjuna.mw.wsas.exceptions.ProtocolViolationException;
+
+import java.util.Hashtable;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: DemoParticipant.java,v 1.4 2004/03/15 13:25:14 nmcl Exp $
+ * @since 1.0.
+ */
+
+public class DemoParticipant implements Participant
+{
+
+ public DemoParticipant ()
+ {
+ this(true);
+ }
+
+ public DemoParticipant (boolean readonly)
+ {
+ _readonly = readonly;
+ _id = new Uid();
+ }
+
+ public Outcome processMessage (Message notification) throws WrongStateException, ProtocolViolationException, SystemException
+ {
+ System.out.println("DemoParticipant.processMessage ( "+notification+" ) : "+_id);
+
+ if ((notification instanceof NestedPrepare) || (notification instanceof TopLevelPrepare))
+ {
+ if (_readonly)
+ {
+ System.out.println("\nReturning read-only");
+
+ return new VoteReadOnly();
+ }
+ else
+ {
+ System.out.println("\nReturning commit");
+
+ return new VoteConfirm();
+ }
+ }
+ else
+ {
+ if ((notification instanceof NestedConfirm) || (notification instanceof TopLevelConfirm))
+ {
+ System.out.println("\nReturning finish-ok");
+
+ return new CoordinationOutcome(TwoPhaseOutcome.FINISH_OK);
+ }
+ else
+ {
+ if ((notification instanceof NestedCancel) || (notification instanceof TopLevelCancel))
+ {
+ System.out.println("\nReturning finish-ok");
+
+ return new CoordinationOutcome(TwoPhaseOutcome.FINISH_OK);
+ }
+ else
+ {
+ if ((notification instanceof TopLevelOnePhaseCommit) || (notification instanceof NestedOnePhaseCommit))
+ {
+ System.out.println("\nOne-phase commit ok");
+
+ return new CoordinationOutcome(TwoPhaseOutcome.FINISH_OK);
+ }
+ else
+ {
+ System.out.println("\nReturning finish-error");
+
+ return new CoordinationOutcome(TwoPhaseOutcome.FINISH_ERROR);
+ }
+ }
+ }
+ }
+ }
+
+ public String identity () throws SystemException
+ {
+ return "DemoParticipant: "+_id;
+ }
+
+ /**
+ * These methods are required so that the coordinator can serialise and
+ * de-serialise information about the inferior during completion and
+ * recovery.
+ */
+
+ public boolean packState (OutputObjectState os)
+ {
+ return true;
+ }
+
+ public boolean unpackState (InputObjectState os)
+ {
+ return true;
+ }
+
+ private boolean _readonly;
+ private Uid _id;
+
+}
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/DemoXAParticipant.java (from rev 18923, labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoXAParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/DemoXAParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/DemoXAParticipant.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -0,0 +1,171 @@
+/*
+ * 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 General Public License, v. 2.0.
+ * 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 General Public License for more details.
+ * You should have received a copy of the GNU General Public License,
+ * v. 2.0 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: DemoXAParticipant.java,v 1.4 2004/03/15 13:25:14 nmcl Exp $
+ */
+
+package com.arjuna.wscf.tests;
+
+import com.arjuna.ats.arjuna.common.*;
+import com.arjuna.ats.arjuna.state.*;
+
+import com.arjuna.mw.wsas.completionstatus.Failure;
+
+import com.arjuna.mw.wsas.activity.Outcome;
+
+import com.arjuna.mw.wscf.model.as.coordinator.Participant;
+import com.arjuna.mw.wscf.model.as.coordinator.Message;
+
+import com.arjuna.mw.wscf.model.as.coordinator.xa.outcomes.*;
+import com.arjuna.mw.wscf.model.as.coordinator.xa.messages.*;
+
+import com.arjuna.mw.wsas.exceptions.SystemException;
+import com.arjuna.mw.wsas.exceptions.WrongStateException;
+import com.arjuna.mw.wsas.exceptions.ProtocolViolationException;
+
+import javax.transaction.xa.*;
+
+import java.util.Hashtable;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: DemoXAParticipant.java,v 1.4 2004/03/15 13:25:14 nmcl Exp $
+ * @since 1.0.
+ */
+
+public class DemoXAParticipant implements Participant
+{
+
+ public DemoXAParticipant ()
+ {
+ this(true);
+ }
+
+ public DemoXAParticipant (boolean readonly)
+ {
+ _readonly = readonly;
+ _id = new Uid();
+ }
+
+ public Outcome processMessage (Message notification) throws WrongStateException, ProtocolViolationException, SystemException
+ {
+ System.out.println("DemoXAParticipant.processMessage ( "+notification+" ) : "+_id);
+
+ if (notification instanceof XAPrepare)
+ {
+ if (_readonly)
+ {
+ System.out.println("\nReturning read-only to prepare");
+
+ return new XAPrepareOutcome(XAResource.XA_RDONLY);
+ }
+ else
+ {
+ System.out.println("\nReturning commit to prepare");
+
+ return new XAPrepareOutcome(XAResource.XA_OK);
+ }
+ }
+ else
+ {
+ if (notification instanceof XACommit)
+ {
+ if (((XACommit) notification).onePhaseCommit())
+ {
+ System.out.println("\nOne-phase commit ok");
+
+ return new XAOutcome();
+ }
+ else
+ {
+ System.out.println("\nCommit ok");
+
+ return new XAOutcome();
+ }
+ }
+ else
+ {
+ if (notification instanceof XAStart)
+ {
+ System.out.println("\nStarting ok");
+
+ return new XAOutcome();
+ }
+ else
+ {
+ if (notification instanceof XAEnd)
+ {
+ System.out.println("\nEnding ok");
+
+ return new XAOutcome();
+ }
+ else
+ {
+ if (notification instanceof XARollback)
+ {
+ System.out.println("\nRolling back ok");
+
+ return new XAOutcome(Failure.instance());
+ }
+ else
+ {
+ System.out.println("\nReturning finish-error for "+notification);
+
+ return new XAOutcome(new XAException(XAException.XAER_INVAL));
+ }
+ }
+ }
+ }
+ }
+ }
+
+ public String identity () throws SystemException
+ {
+ return "DemoXAParticipant: "+_id;
+ }
+
+ /**
+ * These methods are required so that the coordinator can serialise and
+ * de-serialise information about the inferior during completion and
+ * recovery.
+ */
+
+ public boolean packState (OutputObjectState os)
+ {
+ return true;
+ }
+
+ public boolean unpackState (InputObjectState os)
+ {
+ return true;
+ }
+
+ private boolean _readonly;
+ private Uid _id;
+
+}
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/DemoXAResource.java (from rev 18923, labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/DemoXAResource.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/DemoXAResource.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/DemoXAResource.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -0,0 +1,103 @@
+/*
+ * 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 General Public License, v. 2.0.
+ * 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 General Public License for more details.
+ * You should have received a copy of the GNU General Public License,
+ * v. 2.0 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: DemoXAResource.java,v 1.1 2003/01/07 10:37:17 nmcl Exp $
+ */
+
+package com.arjuna.wscf.tests;
+
+import javax.transaction.xa.*;
+
+public class DemoXAResource implements XAResource
+{
+
+ public DemoXAResource ()
+ {
+ }
+
+ public void commit (Xid xid, boolean onePhase) throws XAException
+ {
+ System.out.println("DemoXAResource.commit "+xid);
+ }
+
+ public void end (Xid xid, int flags) throws XAException
+ {
+ System.out.println("DemoXAResource.end "+xid);
+ }
+
+ public void forget (Xid xid) throws XAException
+ {
+ System.out.println("DemoXAResource.forget "+xid);
+ }
+
+ public int getTransactionTimeout () throws XAException
+ {
+ System.out.println("DemoXAResource.getTransactionTimeout");
+
+ return 0;
+ }
+
+ public int prepare (Xid xid) throws XAException
+ {
+ System.out.println("DemoXAResource.prepare "+xid);
+
+ return XAResource.XA_OK;
+ }
+
+ public Xid[] recover (int flag) throws XAException
+ {
+ System.out.println("DemoXAResource.recover "+flag);
+
+ return null;
+ }
+
+ public void rollback (Xid xid) throws XAException
+ {
+ System.out.println("DemoXAResource.rollback "+xid);
+ }
+
+ public boolean setTransactionTimeout (int seconds) throws XAException
+ {
+ System.out.println("DemoXAResource.setTransactionTimeout "+seconds);
+
+ return true;
+ }
+
+ public void start (Xid xid, int flags) throws XAException
+ {
+ System.out.println("DemoXAResource.start "+xid);
+ }
+
+ public boolean isSameRM (XAResource xares) throws XAException
+ {
+ System.out.println("DemoXAResource.isSameRM "+xares);
+
+ return (xares == this);
+ }
+
+}
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/FailureParticipant.java (from rev 18923, labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/FailureParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/FailureParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/FailureParticipant.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -0,0 +1,197 @@
+/*
+ * 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 General Public License, v. 2.0.
+ * 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 General Public License for more details.
+ * You should have received a copy of the GNU General Public License,
+ * v. 2.0 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.4 2004/03/15 13:25:14 nmcl Exp $
+ */
+
+package com.arjuna.wscf.tests;
+
+import com.arjuna.ats.arjuna.ObjectType;
+import com.arjuna.ats.arjuna.coordinator.*;
+import com.arjuna.ats.arjuna.common.*;
+import com.arjuna.ats.arjuna.state.*;
+import com.arjuna.ats.arjuna.gandiva.ClassName;
+
+import com.arjuna.mw.wsas.activity.Outcome;
+
+import com.arjuna.mw.wscf.model.as.coordinator.Participant;
+import com.arjuna.mw.wscf.model.as.coordinator.Message;
+
+import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
+import com.arjuna.mw.wscf.model.as.coordinator.twophase.messages.*;
+
+import com.arjuna.mw.wscf.model.twophase.common.*;
+import com.arjuna.mw.wscf.model.twophase.outcomes.*;
+
+import com.arjuna.mw.wsas.exceptions.SystemException;
+import com.arjuna.mw.wsas.exceptions.WrongStateException;
+import com.arjuna.mw.wsas.exceptions.ProtocolViolationException;
+
+import java.util.Hashtable;
+
+/**
+ * @author Mark Little (mark.little at arjuna.com)
+ * @version $Id: FailureParticipant.java,v 1.4 2004/03/15 13:25:14 nmcl Exp $
+ * @since 1.0.
+ */
+
+public class FailureParticipant implements Participant
+{
+
+ public static final int NESTED_PREPARE = 0;
+ public static final int NESTED_CONFIRM = 1;
+ public static final int NESTED_CANCEL = 2;
+ public static final int TOPLEVEL_PREPARE = 3;
+ public static final int TOPLEVEL_CONFIRM = 4;
+ public static final int TOPLEVEL_CANCEL = 5;
+
+ public FailureParticipant (int failure)
+ {
+ this(true, failure);
+ }
+
+ public FailureParticipant (boolean readonly, int failure)
+ {
+ _readonly = readonly;
+ _id = new Uid();
+ _failurePoint = failure;
+ }
+
+ public Outcome processMessage (Message notification) throws WrongStateException, ProtocolViolationException, SystemException
+ {
+ System.out.println("FailureParticipant.processMessage ( "+notification+" ) : "+_id);
+
+ if ((notification instanceof NestedPrepare) || (notification instanceof TopLevelPrepare))
+ {
+ if ((_failurePoint == NESTED_PREPARE) && (notification instanceof NestedPrepare))
+ {
+ System.out.println("\nReturning cancel");
+
+ return new VoteCancel();
+ }
+
+ if ((_failurePoint == TOPLEVEL_PREPARE) && (notification instanceof TopLevelPrepare))
+ {
+ System.out.println("\nReturning cancel");
+
+ return new VoteCancel();
+ }
+
+ if (_readonly)
+ {
+ System.out.println("\nReturning read-only");
+
+ return new VoteReadOnly();
+ }
+ else
+ {
+ System.out.println("\nReturning commit");
+
+ return new VoteConfirm();
+ }
+ }
+ else
+ {
+ if ((notification instanceof NestedConfirm) || (notification instanceof TopLevelConfirm))
+ {
+ if ((_failurePoint == NESTED_CONFIRM) && (notification instanceof NestedConfirm))
+ {
+ System.out.println("\nReturning finish-error");
+
+ return new CoordinationOutcome(TwoPhaseOutcome.FINISH_ERROR);
+ }
+
+ if ((_failurePoint == TOPLEVEL_CONFIRM) && (notification instanceof TopLevelConfirm))
+ {
+ System.out.println("\nReturning finish-error");
+
+ return new CoordinationOutcome(TwoPhaseOutcome.FINISH_ERROR);
+ }
+
+ System.out.println("\nReturning finish-ok");
+
+ return new CoordinationOutcome(TwoPhaseOutcome.FINISH_OK);
+ }
+ else
+ {
+ if ((notification instanceof NestedCancel) || (notification instanceof TopLevelCancel))
+ {
+ if ((_failurePoint == NESTED_CANCEL) && (notification instanceof NestedCancel))
+ {
+ System.out.println("\nReturning finish-error");
+
+ return new CoordinationOutcome(TwoPhaseOutcome.FINISH_ERROR);
+ }
+
+ if ((_failurePoint == TOPLEVEL_CANCEL) && (notification instanceof TopLevelCancel))
+ {
+ System.out.println("\nReturning finish-error");
+
+ return new CoordinationOutcome(TwoPhaseOutcome.FINISH_ERROR);
+ }
+
+ System.out.println("\nReturning finish-ok");
+
+ return new CoordinationOutcome(TwoPhaseOutcome.FINISH_OK);
+ }
+ else
+ {
+ System.out.println("\nReturning finish-error");
+
+ return new CoordinationOutcome(TwoPhaseOutcome.FINISH_ERROR);
+ }
+ }
+ }
+ }
+
+ public String identity () throws SystemException
+ {
+ return "FailureParticipant: "+_id;
+ }
+
+ /**
+ * These methods are required so that the coordinator can serialise and
+ * de-serialise information about the inferior during completion and
+ * recovery.
+ */
+
+ public boolean packState (OutputObjectState os)
+ {
+ return true;
+ }
+
+ public boolean unpackState (InputObjectState os)
+ {
+ return true;
+ }
+
+ private boolean _readonly;
+ private Uid _id;
+ private int _failurePoint;
+
+}
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/JTASynchronization.java (from rev 18923, labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/JTASynchronization.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/JTASynchronization.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/JTASynchronization.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -0,0 +1,49 @@
+/*
+ * 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 General Public License, v. 2.0.
+ * 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 General Public License for more details.
+ * You should have received a copy of the GNU General Public License,
+ * v. 2.0 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: JTASynchronization.java,v 1.1 2003/01/07 10:37:17 nmcl Exp $
+ */
+
+package com.arjuna.wscf.tests;
+
+import javax.transaction.xa.*;
+
+public class JTASynchronization implements javax.transaction.Synchronization
+{
+
+ public void beforeCompletion ()
+ {
+ System.out.println("beforeCompletion");
+ }
+
+ public void afterCompletion (int status)
+ {
+ System.out.println("afterCompletion :"+status);
+ }
+
+}
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/TestInitialisation.java (from rev 18918, labs/jbosstm/trunk/XTS/WSAS/tests/classes/com/arjuna/wsas/tests/TestInitialisation.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/TestInitialisation.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/TestInitialisation.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -0,0 +1,11 @@
+package com.arjuna.wscf.tests;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: adinn
+ * Date: Mar 7, 2008
+ * Time: 1:50:50 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class TestInitialisation {
+}
\ No newline at end of file
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/TwoPhaseParticipant.java (from rev 18923, labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/TwoPhaseParticipant.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/TwoPhaseParticipant.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/TwoPhaseParticipant.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -0,0 +1,104 @@
+/*
+ * 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 General Public License, v. 2.0.
+ * 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 General Public License for more details.
+ * You should have received a copy of the GNU General Public License,
+ * v. 2.0 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.wscf.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;
+
+/**
+ * @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)
+ {
+ return false ;
+ }
+
+ public boolean restore_state(InputObjectState os)
+ {
+ return false ;
+ }
+
+ private String _id;
+
+}
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/TwoPhaseSynchronization.java (from rev 18923, labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/common/TwoPhaseSynchronization.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/TwoPhaseSynchronization.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/TwoPhaseSynchronization.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -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 General Public License, v. 2.0.
+ * 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 General Public License for more details.
+ * You should have received a copy of the GNU General Public License,
+ * v. 2.0 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.wscf.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)+" )");
+ }
+
+}
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/WSCFTestSuite.java (from rev 18920, labs/jbosstm/trunk/XTS/WSAS/tests/classes/com/arjuna/wsas/tests/WSASTestSuite.java)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/WSCFTestSuite.java (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/WSCFTestSuite.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -0,0 +1,34 @@
+/*
+ * 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 General Public License, v. 2.0.
+ * 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 General Public License for more details.
+ * You should have received a copy of the GNU General Public License,
+ * v. 2.0 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.wscf.tests;
+
+public class WSCFTestSuite extends junit.framework.TestSuite
+{
+ public WSCFTestSuite()
+ {
+ // wscf basic tests
+ addTest(new junit.framework.TestSuite(com.arjuna.wscf.tests.junit.model.as.jta.TopLevel1.class));
+ }
+}
\ No newline at end of file
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model (from rev 18923, labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model)
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/jta/TopLevel1.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/jta/TopLevel1.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/jta/TopLevel1.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,7 +29,7 @@
* $Id: TopLevel1.java,v 1.3.22.1 2005/11/22 10:34:12 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.jta;
+package com.arjuna.wscf.tests.junit.model.as.jta;
import javax.transaction.xa.XAException;
import javax.xml.parsers.DocumentBuilder;
@@ -48,7 +48,8 @@
import com.arjuna.mw.wscf.model.as.coordinator.xa.outcomes.XAOutcome;
import com.arjuna.mw.wscf.utils.DomUtil;
import com.arjuna.mwlabs.wscf.utils.ProtocolLocator;
-import com.arjuna.mwtests.wscf.common.DemoXAParticipant;
+import com.arjuna.wscf.tests.DemoXAParticipant;
+import junit.framework.TestCase;
/**
* @author Mark Little (mark.little at arjuna.com)
@@ -56,30 +57,34 @@
* @since 1.0.
*/
-public class TopLevel1
+public class TopLevel1 extends TestCase
{
+ private static final String PROTOCOL_IMPLEMENTATION_PROPERTY = "com.arjuna.mw.wscf.protocolImplementation";
+ private static final String testProtocolClassName = "com.arjuna.mwlabs.wscf.generic.coordinator.jta.JTAHLS";
+ private String origProtocolClassName;
- public static void main (String[] args)
+ public void setup()
{
- boolean passed = false;
- String className = "com.arjuna.mwlabs.wscf.generic.coordinator.jta.JTAHLS";
- org.w3c.dom.Document implementationDoc = null;
-
- System.setProperty("com.arjuna.mw.wscf.protocolImplementation", className);
-
- try
- {
- ProtocolLocator pl = new ProtocolLocator(className);
+ origProtocolClassName = System.getProperty(PROTOCOL_IMPLEMENTATION_PROPERTY);
- implementationDoc = pl.getProtocol();
- }
- catch (Exception ex)
- {
- ex.printStackTrace();
-
- System.exit(0);
- }
+ System.setProperty(PROTOCOL_IMPLEMENTATION_PROPERTY, testProtocolClassName);
+ }
+
+ public void tearDown()
+ {
+ System.setProperty(PROTOCOL_IMPLEMENTATION_PROPERTY, origProtocolClassName);
+ }
+
+ public static void testTopLevel1()
+ throws Exception
+ {
+
+ org.w3c.dom.Document implementationDoc = null;
+ ProtocolLocator pl = new ProtocolLocator(testProtocolClassName);
+
+ implementationDoc = pl.getProtocol();
+
try
{
UserCoordinator ua = UserCoordinatorFactory.userCoordinator(implementationDoc);
@@ -112,29 +117,20 @@
if (res instanceof XAOutcome)
{
- XAOutcome out = (XAOutcome) res;
+ XAOutcome out = (XAOutcome) res;
- if (out.data() == null)
- passed = true;
- else
- System.out.println("Result is: "+((XAException) out.data()));
- }
- else
- System.out.println("Outcome is: "+res);
- }
+ if (out.data() == null) {
+ System.out.println("Result is "+((XAException) out.data()));
+ } else {
+ fail("XAOutcome has non-null data " + out.data());
+ }
+ } else {
+ fail("Non-XAOutcome result " + res);
+ }
+ }
catch (NoActivityException ex)
{
- passed = true;
+ // it's ok if we arrive here?
}
- catch (Exception ex)
- {
- ex.printStackTrace();
- }
-
- if (passed)
- System.out.println("\nPassed.");
- else
- System.out.println("\nFailed.");
}
-
}
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/jta/TopLevel2.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/jta/TopLevel2.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/jta/TopLevel2.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,7 +29,7 @@
* $Id: TopLevel2.java,v 1.3.22.1 2005/11/22 10:34:12 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.jta;
+package com.arjuna.wscf.tests.junit.model.as.jta;
import javax.transaction.xa.XAException;
import javax.xml.parsers.DocumentBuilder;
@@ -48,7 +48,7 @@
import com.arjuna.mw.wscf.model.as.coordinator.xa.outcomes.XAOutcome;
import com.arjuna.mw.wscf.utils.DomUtil;
import com.arjuna.mwlabs.wscf.utils.ProtocolLocator;
-import com.arjuna.mwtests.wscf.common.DemoXAParticipant;
+import com.arjuna.wscf.tests.DemoXAParticipant;
/**
* @author Mark Little (mark.little at arjuna.com)
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/jta/TopLevel3.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/jta/TopLevel3.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/jta/TopLevel3.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,7 +29,7 @@
* $Id: TopLevel3.java,v 1.3.22.1 2005/11/22 10:34:12 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.jta;
+package com.arjuna.wscf.tests.junit.model.as.jta;
import javax.transaction.xa.XAException;
import javax.xml.parsers.DocumentBuilder;
@@ -49,7 +49,7 @@
import com.arjuna.mw.wscf.model.as.coordinator.xa.outcomes.XAOutcome;
import com.arjuna.mw.wscf.utils.DomUtil;
import com.arjuna.mwlabs.wscf.utils.ProtocolLocator;
-import com.arjuna.mwtests.wscf.common.DemoXAParticipant;
+import com.arjuna.wscf.tests.DemoXAParticipant;
/**
* @author Mark Little (mark.little at arjuna.com)
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Context.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/Context.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Context.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,13 +29,11 @@
* $Id: Context.java,v 1.2 2004/08/10 15:10:25 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
import com.arjuna.mw.wscf.UserCoordinator;
import com.arjuna.mw.wscf.UserCoordinatorFactory;
-import com.arjuna.mw.wsas.activity.ActivityHierarchy;
-
import com.arjuna.mw.wsas.context.ContextManager;
import com.arjuna.mw.wsas.exceptions.NoActivityException;
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested1.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/Nested1.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested1.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,7 +29,7 @@
* $Id: Nested1.java,v 1.2.22.1 2005/11/22 10:34:15 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
@@ -47,7 +47,7 @@
import com.arjuna.mw.wscf.model.as.coordinator.twophase.common.Priorities;
import com.arjuna.mw.wscf.model.twophase.common.TwoPhaseResult;
import com.arjuna.mw.wscf.model.twophase.outcomes.CoordinationOutcome;
-import com.arjuna.mwtests.wscf.common.DemoParticipant;
+import com.arjuna.wscf.tests.DemoParticipant;
/**
* @author Mark Little (mark.little at arjuna.com)
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested2.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/Nested2.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested2.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,9 +29,9 @@
* $Id: Nested2.java,v 1.2 2003/01/17 15:39:35 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
-import com.arjuna.mwtests.wscf.common.DemoParticipant;
+import com.arjuna.wscf.tests.DemoParticipant;
import com.arjuna.mw.wscf.UserCoordinator;
import com.arjuna.mw.wscf.UserCoordinatorFactory;
@@ -40,22 +40,18 @@
import com.arjuna.mw.wscf.model.as.CoordinatorManagerFactory;
import com.arjuna.mw.wscf.model.as.coordinator.twophase.common.*;
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
import com.arjuna.mw.wscf.model.twophase.common.*;
import com.arjuna.mw.wscf.model.twophase.outcomes.*;
import com.arjuna.mw.wsas.activity.*;
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
import com.arjuna.mw.wsas.completionstatus.Success;
import com.arjuna.mw.wsas.context.ContextManager;
import com.arjuna.mw.wsas.exceptions.NoActivityException;
-import javax.xml.parsers.*;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: Nested2.java,v 1.2 2003/01/17 15:39:35 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested3.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/Nested3.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested3.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,9 +29,9 @@
* $Id: Nested3.java,v 1.2 2003/01/17 15:39:35 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
-import com.arjuna.mwtests.wscf.common.DemoParticipant;
+import com.arjuna.wscf.tests.DemoParticipant;
import com.arjuna.mw.wscf.UserCoordinator;
import com.arjuna.mw.wscf.UserCoordinatorFactory;
@@ -40,22 +40,18 @@
import com.arjuna.mw.wscf.model.as.CoordinatorManagerFactory;
import com.arjuna.mw.wscf.model.as.coordinator.twophase.common.*;
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
import com.arjuna.mw.wscf.model.twophase.common.*;
import com.arjuna.mw.wscf.model.twophase.outcomes.*;
import com.arjuna.mw.wsas.activity.*;
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
import com.arjuna.mw.wsas.completionstatus.Success;
import com.arjuna.mw.wsas.context.ContextManager;
import com.arjuna.mw.wsas.exceptions.NoActivityException;
-import javax.xml.parsers.*;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: Nested3.java,v 1.2 2003/01/17 15:39:35 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested4.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/Nested4.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested4.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,9 +29,9 @@
* $Id: Nested4.java,v 1.1 2003/01/07 10:33:58 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
-import com.arjuna.mwtests.wscf.common.DemoParticipant;
+import com.arjuna.wscf.tests.DemoParticipant;
import com.arjuna.mw.wscf.UserCoordinator;
import com.arjuna.mw.wscf.UserCoordinatorFactory;
@@ -40,14 +40,12 @@
import com.arjuna.mw.wscf.model.as.CoordinatorManagerFactory;
import com.arjuna.mw.wscf.model.as.coordinator.twophase.common.*;
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
import com.arjuna.mw.wscf.model.twophase.common.*;
import com.arjuna.mw.wscf.model.twophase.outcomes.*;
import com.arjuna.mw.wsas.activity.*;
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
import com.arjuna.mw.wsas.completionstatus.Success;
import com.arjuna.mw.wsas.context.ContextManager;
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested5.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/Nested5.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested5.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,9 +29,9 @@
* $Id: Nested5.java,v 1.1 2003/01/07 10:33:58 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
-import com.arjuna.mwtests.wscf.common.DemoParticipant;
+import com.arjuna.wscf.tests.DemoParticipant;
import com.arjuna.mw.wscf.UserCoordinator;
import com.arjuna.mw.wscf.UserCoordinatorFactory;
@@ -40,14 +40,12 @@
import com.arjuna.mw.wscf.model.as.CoordinatorManagerFactory;
import com.arjuna.mw.wscf.model.as.coordinator.twophase.common.*;
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
import com.arjuna.mw.wscf.model.twophase.common.*;
import com.arjuna.mw.wscf.model.twophase.outcomes.*;
import com.arjuna.mw.wsas.activity.*;
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
import com.arjuna.mw.wsas.completionstatus.Success;
import com.arjuna.mw.wsas.context.ContextManager;
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested6.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/Nested6.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested6.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,10 +29,10 @@
* $Id: Nested6.java,v 1.1 2003/01/07 10:33:58 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
-import com.arjuna.mwtests.wscf.common.DemoParticipant;
-import com.arjuna.mwtests.wscf.common.FailureParticipant;
+import com.arjuna.wscf.tests.DemoParticipant;
+import com.arjuna.wscf.tests.FailureParticipant;
import com.arjuna.mw.wscf.UserCoordinator;
import com.arjuna.mw.wscf.UserCoordinatorFactory;
@@ -41,14 +41,12 @@
import com.arjuna.mw.wscf.model.as.CoordinatorManagerFactory;
import com.arjuna.mw.wscf.model.as.coordinator.twophase.common.*;
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
import com.arjuna.mw.wscf.model.twophase.common.*;
import com.arjuna.mw.wscf.model.twophase.outcomes.*;
import com.arjuna.mw.wsas.activity.*;
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
import com.arjuna.mw.wsas.completionstatus.Success;
import com.arjuna.mw.wsas.context.ContextManager;
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested7.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/Nested7.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested7.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,10 +29,10 @@
* $Id: Nested7.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
-import com.arjuna.mwtests.wscf.common.DemoParticipant;
-import com.arjuna.mwtests.wscf.common.FailureParticipant;
+import com.arjuna.wscf.tests.DemoParticipant;
+import com.arjuna.wscf.tests.FailureParticipant;
import com.arjuna.mw.wscf.UserCoordinator;
import com.arjuna.mw.wscf.UserCoordinatorFactory;
@@ -41,14 +41,12 @@
import com.arjuna.mw.wscf.model.as.CoordinatorManagerFactory;
import com.arjuna.mw.wscf.model.as.coordinator.twophase.common.*;
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
import com.arjuna.mw.wscf.model.twophase.common.*;
import com.arjuna.mw.wscf.model.twophase.outcomes.*;
import com.arjuna.mw.wsas.activity.*;
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
import com.arjuna.mw.wsas.completionstatus.Success;
import com.arjuna.mw.wsas.context.ContextManager;
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested8.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/Nested8.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/Nested8.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,10 +29,10 @@
* $Id: Nested8.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
-import com.arjuna.mwtests.wscf.common.DemoParticipant;
-import com.arjuna.mwtests.wscf.common.FailureParticipant;
+import com.arjuna.wscf.tests.DemoParticipant;
+import com.arjuna.wscf.tests.FailureParticipant;
import com.arjuna.mw.wscf.UserCoordinator;
import com.arjuna.mw.wscf.UserCoordinatorFactory;
@@ -41,14 +41,12 @@
import com.arjuna.mw.wscf.model.as.CoordinatorManagerFactory;
import com.arjuna.mw.wscf.model.as.coordinator.twophase.common.*;
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
import com.arjuna.mw.wscf.model.twophase.common.*;
import com.arjuna.mw.wscf.model.twophase.outcomes.*;
import com.arjuna.mw.wsas.activity.*;
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
import com.arjuna.mw.wsas.completionstatus.Success;
import com.arjuna.mw.wsas.context.ContextManager;
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/NullParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/NullParticipant.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/NullParticipant.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,13 +29,11 @@
* $Id: NullParticipant.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
import com.arjuna.mw.wscf.UserCoordinator;
import com.arjuna.mw.wscf.UserCoordinatorFactory;
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: NullParticipant.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel1.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/TopLevel1.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel1.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,7 +29,7 @@
* $Id: TopLevel1.java,v 1.2.22.1 2005/11/22 10:34:15 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
@@ -47,7 +47,7 @@
import com.arjuna.mw.wscf.model.as.coordinator.twophase.common.Priorities;
import com.arjuna.mw.wscf.model.twophase.common.TwoPhaseResult;
import com.arjuna.mw.wscf.model.twophase.outcomes.CoordinationOutcome;
-import com.arjuna.mwtests.wscf.common.DemoParticipant;
+import com.arjuna.wscf.tests.DemoParticipant;
/**
* @author Mark Little (mark.little at arjuna.com)
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel2.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/TopLevel2.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel2.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,9 +29,9 @@
* $Id: TopLevel2.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
-import com.arjuna.mwtests.wscf.common.DemoParticipant;
+import com.arjuna.wscf.tests.DemoParticipant;
import com.arjuna.mw.wscf.UserCoordinator;
import com.arjuna.mw.wscf.UserCoordinatorFactory;
@@ -40,14 +40,12 @@
import com.arjuna.mw.wscf.model.as.CoordinatorManagerFactory;
import com.arjuna.mw.wscf.model.as.coordinator.twophase.common.*;
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
import com.arjuna.mw.wscf.model.twophase.common.*;
import com.arjuna.mw.wscf.model.twophase.outcomes.*;
import com.arjuna.mw.wsas.activity.Outcome;
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
import com.arjuna.mw.wsas.completionstatus.Success;
import com.arjuna.mw.wsas.context.ContextManager;
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel3.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/TopLevel3.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel3.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,9 +29,9 @@
* $Id: TopLevel3.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
-import com.arjuna.mwtests.wscf.common.DemoParticipant;
+import com.arjuna.wscf.tests.DemoParticipant;
import com.arjuna.mw.wscf.UserCoordinator;
import com.arjuna.mw.wscf.UserCoordinatorFactory;
@@ -40,14 +40,12 @@
import com.arjuna.mw.wscf.model.as.CoordinatorManagerFactory;
import com.arjuna.mw.wscf.model.as.coordinator.twophase.common.*;
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
import com.arjuna.mw.wscf.model.twophase.common.*;
import com.arjuna.mw.wscf.model.twophase.outcomes.*;
import com.arjuna.mw.wsas.activity.Outcome;
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
import com.arjuna.mw.wsas.completionstatus.Success;
import com.arjuna.mw.wsas.context.ContextManager;
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel4.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/TopLevel4.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel4.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,9 +29,9 @@
* $Id: TopLevel4.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
-import com.arjuna.mwtests.wscf.common.DemoParticipant;
+import com.arjuna.wscf.tests.DemoParticipant;
import com.arjuna.mw.wscf.UserCoordinator;
import com.arjuna.mw.wscf.UserCoordinatorFactory;
@@ -40,14 +40,12 @@
import com.arjuna.mw.wscf.model.as.CoordinatorManagerFactory;
import com.arjuna.mw.wscf.model.as.coordinator.twophase.common.*;
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
import com.arjuna.mw.wscf.model.twophase.common.*;
import com.arjuna.mw.wscf.model.twophase.outcomes.*;
import com.arjuna.mw.wsas.activity.Outcome;
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
import com.arjuna.mw.wsas.completionstatus.Success;
import com.arjuna.mw.wsas.context.ContextManager;
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel5.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/as/twophase/TopLevel5.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/as/twophase/TopLevel5.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,9 +29,9 @@
* $Id: TopLevel5.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.as.twophase;
+package com.arjuna.wscf.tests.junit.model.as.twophase;
-import com.arjuna.mwtests.wscf.common.DemoParticipant;
+import com.arjuna.wscf.tests.DemoParticipant;
import com.arjuna.mw.wscf.UserCoordinator;
import com.arjuna.mw.wscf.UserCoordinatorFactory;
@@ -40,14 +40,12 @@
import com.arjuna.mw.wscf.model.as.CoordinatorManagerFactory;
import com.arjuna.mw.wscf.model.as.coordinator.twophase.common.*;
-import com.arjuna.mw.wscf.model.as.coordinator.twophase.outcomes.*;
import com.arjuna.mw.wscf.model.twophase.common.*;
import com.arjuna.mw.wscf.model.twophase.outcomes.*;
import com.arjuna.mw.wsas.activity.Outcome;
-import com.arjuna.mw.wsas.completionstatus.CompletionStatus;
import com.arjuna.mw.wsas.completionstatus.Success;
import com.arjuna.mw.wsas.context.ContextManager;
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/AddParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/jta/AddParticipant.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/AddParticipant.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,16 +29,12 @@
* $Id: AddParticipant.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.jta;
+package com.arjuna.wscf.tests.junit.model.jta;
-import com.arjuna.mwtests.wscf.common.*;
-
import com.arjuna.mw.wscf.model.xa.*;
-import com.arjuna.mw.wsas.activity.*;
+import com.arjuna.wscf.tests.DemoXAResource;
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: AddParticipant.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/AddSynchronization.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/jta/AddSynchronization.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/AddSynchronization.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,16 +29,12 @@
* $Id: AddSynchronization.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.jta;
+package com.arjuna.wscf.tests.junit.model.jta;
-import com.arjuna.mwtests.wscf.common.*;
-
import com.arjuna.mw.wscf.model.xa.*;
-import com.arjuna.mw.wsas.activity.*;
+import com.arjuna.wscf.tests.JTASynchronization;
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: AddSynchronization.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/BeginCommit.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/jta/BeginCommit.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/BeginCommit.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,19 +29,12 @@
* $Id: BeginCommit.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.jta;
+package com.arjuna.wscf.tests.junit.model.jta;
import com.arjuna.mw.wscf.model.xa.*;
import javax.transaction.*;
-import javax.transaction.xa.*;
-import com.arjuna.mw.wscf.common.*;
-
-import com.arjuna.mw.wsas.activity.*;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: BeginCommit.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/BeginRollback.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/jta/BeginRollback.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/BeginRollback.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,19 +29,12 @@
* $Id: BeginRollback.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.jta;
+package com.arjuna.wscf.tests.junit.model.jta;
import com.arjuna.mw.wscf.model.xa.*;
import javax.transaction.*;
-import javax.transaction.xa.*;
-import com.arjuna.mw.wscf.common.*;
-
-import com.arjuna.mw.wsas.activity.*;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: BeginRollback.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/ParticipantSynchronization.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/jta/ParticipantSynchronization.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/ParticipantSynchronization.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,16 +29,13 @@
* $Id: ParticipantSynchronization.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.jta;
+package com.arjuna.wscf.tests.junit.model.jta;
-import com.arjuna.mwtests.wscf.common.*;
-
import com.arjuna.mw.wscf.model.xa.*;
-import com.arjuna.mw.wsas.activity.*;
+import com.arjuna.wscf.tests.DemoXAResource;
+import com.arjuna.wscf.tests.JTASynchronization;
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: ParticipantSynchronization.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/Suspend.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/jta/Suspend.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/Suspend.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,16 +29,10 @@
* $Id: Suspend.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.jta;
+package com.arjuna.wscf.tests.junit.model.jta;
-import com.arjuna.mwtests.wscf.common.*;
-
import com.arjuna.mw.wscf.model.xa.*;
-import com.arjuna.mw.wsas.activity.*;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: Suspend.java,v 1.1 2003/01/07 10:33:59 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/SuspendConfirm.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/jta/SuspendConfirm.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/SuspendConfirm.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,16 +29,10 @@
* $Id: SuspendConfirm.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.jta;
+package com.arjuna.wscf.tests.junit.model.jta;
-import com.arjuna.mwtests.wscf.common.*;
-
import com.arjuna.mw.wscf.model.xa.*;
-import com.arjuna.mw.wsas.activity.*;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: SuspendConfirm.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/SuspendParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/jta/SuspendParticipant.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/SuspendParticipant.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,16 +29,13 @@
* $Id: SuspendParticipant.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.jta;
+package com.arjuna.wscf.tests.junit.model.jta;
-import com.arjuna.mwtests.wscf.common.*;
-
import com.arjuna.mw.wscf.model.xa.*;
-import com.arjuna.mw.wsas.activity.*;
+import com.arjuna.wscf.tests.DemoXAResource;
+import com.arjuna.wscf.tests.JTASynchronization;
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: SuspendParticipant.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/SuspendResume.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/jta/SuspendResume.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/SuspendResume.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,16 +29,10 @@
* $Id: SuspendResume.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.jta;
+package com.arjuna.wscf.tests.junit.model.jta;
-import com.arjuna.mwtests.wscf.common.*;
-
import com.arjuna.mw.wscf.model.xa.*;
-import com.arjuna.mw.wsas.activity.*;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: SuspendResume.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/WscContext.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/jta/WscContext.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/WscContext.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,7 +29,7 @@
* $Id: WscContext.java,v 1.3.22.1 2005/11/22 10:34:17 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.jta;
+package com.arjuna.wscf.tests.junit.model.jta;
import javax.transaction.UserTransaction;
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/WscTranslateContext.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/jta/WscTranslateContext.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/jta/WscTranslateContext.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,32 +29,22 @@
* $Id: WscTranslateContext.java,v 1.6.6.1 2005/11/22 10:34:17 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.jta;
+package com.arjuna.wscf.tests.junit.model.jta;
import com.arjuna.mw.wscf.model.xa.*;
-import com.arjuna.mw.wscf.common.*;
-
-import com.arjuna.mw.wsas.activity.*;
-
import javax.transaction.*;
-import com.arjuna.mw.wsas.context.Context;
import com.arjuna.mw.wsas.context.DeploymentContext;
import com.arjuna.mw.wsas.context.DeploymentContextFactory;
import com.arjuna.mw.wsas.context.soap.SOAPContext;
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
-import com.arjuna.mw.wscf.exceptions.*;
-
import com.arjuna.mw.wscf.utils.DomUtil;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import org.w3c.dom.Element;
-import org.w3c.dom.Node;
/**
* @author Mark Little (mark.little at arjuna.com)
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/AddParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/AddParticipant.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/AddParticipant.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,26 +29,14 @@
* $Id: AddParticipant.java,v 1.2 2005/01/15 21:21:03 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
-import com.arjuna.mwtests.wscf.common.*;
-
-import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
import com.arjuna.mw.wscf.model.twophase.api.CoordinatorManager;
-import com.arjuna.mw.wscf.model.twophase.UserCoordinatorFactory;
import com.arjuna.mw.wscf.model.twophase.CoordinatorManagerFactory;
-import com.arjuna.mw.wscf.model.twophase.common.*;
-import com.arjuna.mw.wscf.model.twophase.exceptions.*;
-import com.arjuna.mw.wscf.model.twophase.participants.*;
+import com.arjuna.wscf.tests.TwoPhaseParticipant;
-import com.arjuna.mw.wscf.common.*;
-
-import com.arjuna.mw.wsas.activity.*;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: AddParticipant.java,v 1.2 2005/01/15 21:21:03 kconner Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/AddSynchronization.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/AddSynchronization.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/AddSynchronization.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,26 +29,14 @@
* $Id: AddSynchronization.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
-import com.arjuna.mwtests.wscf.common.*;
-
-import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
import com.arjuna.mw.wscf.model.twophase.api.CoordinatorManager;
-import com.arjuna.mw.wscf.model.twophase.UserCoordinatorFactory;
import com.arjuna.mw.wscf.model.twophase.CoordinatorManagerFactory;
-import com.arjuna.mw.wscf.model.twophase.common.*;
-import com.arjuna.mw.wscf.model.twophase.exceptions.*;
-import com.arjuna.mw.wscf.model.twophase.participants.*;
+import com.arjuna.wscf.tests.TwoPhaseSynchronization;
-import com.arjuna.mw.wscf.common.*;
-
-import com.arjuna.mw.wsas.activity.*;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: AddSynchronization.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/BeginCancel.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/BeginCancel.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/BeginCancel.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,28 +29,12 @@
* $Id: BeginCancel.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
-import com.arjuna.mwlabs.wscf.utils.ProtocolLocator;
-
import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
import com.arjuna.mw.wscf.model.twophase.UserCoordinatorFactory;
-import com.arjuna.mw.wscf.model.twophase.common.*;
-import com.arjuna.mw.wscf.model.twophase.exceptions.*;
-
-import com.arjuna.mw.wscf.common.*;
-
-import com.arjuna.mw.wsas.activity.*;
-
-import com.arjuna.mw.wsas.context.Context;
-import com.arjuna.mw.wsas.context.DeploymentContext;
-import com.arjuna.mw.wsas.context.DeploymentContextFactory;
-import com.arjuna.mw.wsas.context.soap.SOAPContext;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: BeginCancel.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/BeginConfirm.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/BeginConfirm.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/BeginConfirm.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,28 +29,12 @@
* $Id: BeginConfirm.java,v 1.2 2003/01/17 15:39:35 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
-import com.arjuna.mwlabs.wscf.utils.ProtocolLocator;
-
import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
import com.arjuna.mw.wscf.model.twophase.UserCoordinatorFactory;
-import com.arjuna.mw.wscf.model.twophase.common.*;
-import com.arjuna.mw.wscf.model.twophase.exceptions.*;
-
-import com.arjuna.mw.wscf.common.*;
-
-import com.arjuna.mw.wsas.activity.*;
-
-import com.arjuna.mw.wsas.context.Context;
-import com.arjuna.mw.wsas.context.DeploymentContext;
-import com.arjuna.mw.wsas.context.DeploymentContextFactory;
-import com.arjuna.mw.wsas.context.soap.SOAPContext;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: BeginConfirm.java,v 1.2 2003/01/17 15:39:35 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/CancelOnlyCancel.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/CancelOnlyCancel.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/CancelOnlyCancel.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,28 +29,14 @@
* $Id: CancelOnlyCancel.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
-import com.arjuna.mwlabs.wscf.utils.ProtocolLocator;
-
import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
import com.arjuna.mw.wscf.model.twophase.UserCoordinatorFactory;
-import com.arjuna.mw.wscf.model.twophase.common.*;
import com.arjuna.mw.wscf.model.twophase.exceptions.*;
-import com.arjuna.mw.wscf.common.*;
-
-import com.arjuna.mw.wsas.activity.*;
-
-import com.arjuna.mw.wsas.context.Context;
-import com.arjuna.mw.wsas.context.DeploymentContext;
-import com.arjuna.mw.wsas.context.DeploymentContextFactory;
-import com.arjuna.mw.wsas.context.soap.SOAPContext;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: CancelOnlyCancel.java,v 1.1 2003/01/07 10:34:00 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/CancelOnlyConfirm.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/CancelOnlyConfirm.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/CancelOnlyConfirm.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,28 +29,14 @@
* $Id: CancelOnlyConfirm.java,v 1.1 2003/01/07 10:34:01 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
-import com.arjuna.mwlabs.wscf.utils.ProtocolLocator;
-
import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
import com.arjuna.mw.wscf.model.twophase.UserCoordinatorFactory;
-import com.arjuna.mw.wscf.model.twophase.common.*;
import com.arjuna.mw.wscf.model.twophase.exceptions.*;
-import com.arjuna.mw.wscf.common.*;
-
-import com.arjuna.mw.wsas.activity.*;
-
-import com.arjuna.mw.wsas.context.Context;
-import com.arjuna.mw.wsas.context.DeploymentContext;
-import com.arjuna.mw.wsas.context.DeploymentContextFactory;
-import com.arjuna.mw.wsas.context.soap.SOAPContext;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: CancelOnlyConfirm.java,v 1.1 2003/01/07 10:34:01 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/ContextOutput.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/ContextOutput.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/ContextOutput.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,7 +29,7 @@
* $Id: ContextOutput.java,v 1.2.22.1 2005/11/22 10:34:07 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/ParticipantSynchronization.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/ParticipantSynchronization.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/ParticipantSynchronization.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,26 +29,15 @@
* $Id: ParticipantSynchronization.java,v 1.2 2005/01/15 21:21:03 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
-import com.arjuna.mwtests.wscf.common.*;
-
-import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
import com.arjuna.mw.wscf.model.twophase.api.CoordinatorManager;
-import com.arjuna.mw.wscf.model.twophase.UserCoordinatorFactory;
import com.arjuna.mw.wscf.model.twophase.CoordinatorManagerFactory;
-import com.arjuna.mw.wscf.model.twophase.common.*;
-import com.arjuna.mw.wscf.model.twophase.exceptions.*;
-import com.arjuna.mw.wscf.model.twophase.participants.*;
+import com.arjuna.wscf.tests.TwoPhaseParticipant;
+import com.arjuna.wscf.tests.TwoPhaseSynchronization;
-import com.arjuna.mw.wscf.common.*;
-
-import com.arjuna.mw.wsas.activity.*;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: ParticipantSynchronization.java,v 1.2 2005/01/15 21:21:03 kconner Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/StartEnd.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/StartEnd.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/StartEnd.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,7 +29,7 @@
* $Id: StartEnd.java,v 1.3 2003/03/14 14:26:34 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
import com.arjuna.mwlabs.wscf.utils.ProtocolLocator;
@@ -39,15 +39,8 @@
import com.arjuna.mw.wscf.model.twophase.common.*;
import com.arjuna.mw.wscf.model.twophase.outcomes.*;
-import com.arjuna.mw.wscf.common.*;
-
import com.arjuna.mw.wsas.activity.*;
-import com.arjuna.mw.wsas.context.Context;
-import com.arjuna.mw.wsas.context.DeploymentContext;
-import com.arjuna.mw.wsas.context.DeploymentContextFactory;
-import com.arjuna.mw.wsas.context.soap.SOAPContext;
-
import com.arjuna.mw.wsas.exceptions.NoActivityException;
/**
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/Suspend.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/Suspend.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/Suspend.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,28 +29,14 @@
* $Id: Suspend.java,v 1.1 2003/01/07 10:34:01 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
-import com.arjuna.mwlabs.wscf.utils.ProtocolLocator;
-
import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
import com.arjuna.mw.wscf.model.twophase.UserCoordinatorFactory;
-import com.arjuna.mw.wscf.model.twophase.common.*;
-import com.arjuna.mw.wscf.model.twophase.exceptions.*;
-
-import com.arjuna.mw.wscf.common.*;
-
import com.arjuna.mw.wsas.activity.*;
-import com.arjuna.mw.wsas.context.Context;
-import com.arjuna.mw.wsas.context.DeploymentContext;
-import com.arjuna.mw.wsas.context.DeploymentContextFactory;
-import com.arjuna.mw.wsas.context.soap.SOAPContext;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
import com.arjuna.mw.wscf.exceptions.*;
/**
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/SuspendConfirm.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/SuspendConfirm.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/SuspendConfirm.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,28 +29,14 @@
* $Id: SuspendConfirm.java,v 1.1 2003/01/07 10:34:01 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
-import com.arjuna.mwlabs.wscf.utils.ProtocolLocator;
-
import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
import com.arjuna.mw.wscf.model.twophase.UserCoordinatorFactory;
-import com.arjuna.mw.wscf.model.twophase.common.*;
-import com.arjuna.mw.wscf.model.twophase.exceptions.*;
-
-import com.arjuna.mw.wscf.common.*;
-
import com.arjuna.mw.wsas.activity.*;
-import com.arjuna.mw.wsas.context.Context;
-import com.arjuna.mw.wsas.context.DeploymentContext;
-import com.arjuna.mw.wsas.context.DeploymentContextFactory;
-import com.arjuna.mw.wsas.context.soap.SOAPContext;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
import com.arjuna.mw.wscf.exceptions.*;
/**
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/SuspendParticipant.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/SuspendParticipant.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/SuspendParticipant.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,29 +29,17 @@
* $Id: SuspendParticipant.java,v 1.2 2005/01/15 21:21:03 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
-import com.arjuna.mwtests.wscf.common.*;
-
-import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
import com.arjuna.mw.wscf.model.twophase.api.CoordinatorManager;
-import com.arjuna.mw.wscf.model.twophase.UserCoordinatorFactory;
import com.arjuna.mw.wscf.model.twophase.CoordinatorManagerFactory;
-import com.arjuna.mwlabs.wscf.utils.ProtocolLocator;
-
-import com.arjuna.mw.wscf.model.twophase.common.*;
-import com.arjuna.mw.wscf.model.twophase.exceptions.*;
-
-import com.arjuna.mw.wscf.common.*;
-
import com.arjuna.mw.wsas.activity.*;
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
+import com.arjuna.wscf.tests.TwoPhaseParticipant;
+import com.arjuna.wscf.tests.TwoPhaseSynchronization;
-import com.arjuna.mw.wscf.exceptions.*;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: SuspendParticipant.java,v 1.2 2005/01/15 21:21:03 kconner Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/SuspendResume.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/SuspendResume.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/SuspendResume.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,30 +29,14 @@
* $Id: SuspendResume.java,v 1.1 2003/01/07 10:34:01 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
-import com.arjuna.mwlabs.wscf.utils.ProtocolLocator;
-
import com.arjuna.mw.wscf.model.twophase.api.UserCoordinator;
import com.arjuna.mw.wscf.model.twophase.UserCoordinatorFactory;
-import com.arjuna.mw.wscf.model.twophase.common.*;
-import com.arjuna.mw.wscf.model.twophase.exceptions.*;
-
-import com.arjuna.mw.wscf.common.*;
-
import com.arjuna.mw.wsas.activity.*;
-import com.arjuna.mw.wsas.context.Context;
-import com.arjuna.mw.wsas.context.DeploymentContext;
-import com.arjuna.mw.wsas.context.DeploymentContextFactory;
-import com.arjuna.mw.wsas.context.soap.SOAPContext;
-
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
-import com.arjuna.mw.wscf.exceptions.*;
-
/**
* @author Mark Little (mark.little at arjuna.com)
* @version $Id: SuspendResume.java,v 1.1 2003/01/07 10:34:01 nmcl Exp $
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/WscContext.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/WscContext.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/WscContext.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,7 +29,7 @@
* $Id: WscContext.java,v 1.3.22.1 2005/11/22 10:34:08 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
import com.arjuna.mw.wsas.context.Context;
import com.arjuna.mw.wsas.context.DeploymentContext;
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/WscNestedContext.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/WscNestedContext.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/WscNestedContext.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,7 +29,7 @@
* $Id: WscNestedContext.java,v 1.3.22.1 2005/11/22 10:34:07 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
import com.arjuna.mw.wsas.context.Context;
import com.arjuna.mw.wsas.context.DeploymentContext;
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/WscTranslateContext.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/model/twophase/WscTranslateContext.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/model/twophase/WscTranslateContext.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,7 +29,7 @@
* $Id: WscTranslateContext.java,v 1.6.6.1 2005/11/22 10:34:08 kconner Exp $
*/
-package com.arjuna.mwtests.wscf.model.twophase;
+package com.arjuna.wscf.tests.junit.model.twophase;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/xml (from rev 18923, labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/xml)
Modified: labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/xml/SchemaName.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/classes/com/arjuna/mwtests/wscf/xml/SchemaName.java 2008-03-13 13:31:14 UTC (rev 18923)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/classes/com/arjuna/wscf/tests/junit/xml/SchemaName.java 2008-03-13 15:50:06 UTC (rev 18927)
@@ -29,13 +29,11 @@
* $Id: SchemaName.java,v 1.2 2003/01/17 15:39:35 nmcl Exp $
*/
-package com.arjuna.mwtests.wscf.xml;
+package com.arjuna.wscf.tests.junit.xml;
import com.arjuna.mw.wscf.UserCoordinator;
import com.arjuna.mw.wscf.UserCoordinatorFactory;
-import com.arjuna.mw.wsas.exceptions.NoActivityException;
-
import com.arjuna.mw.wscf.exceptions.ProtocolNotRegisteredException;
import java.net.URL;
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/dd/wscf-tests_application.xml (from rev 18918, labs/jbosstm/trunk/XTS/WSAS/tests/dd/wsas-tests_application.xml)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/dd/wscf-tests_application.xml (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/dd/wscf-tests_application.xml 2008-03-13 15:50:06 UTC (rev 18927)
@@ -0,0 +1,35 @@
+<!--
+ 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 General Public License, v. 2.0.
+ 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 General Public License for more details.
+ You should have received a copy of the GNU General Public License,
+ v. 2.0 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 Tests</display-name>
+
+ <description>Arjuna WSCF Tests</description>
+
+ <module>
+ <web>
+ <web-uri>wscf-tests.war</web-uri>
+ <context-root>/wscf-tests</context-root>
+ </web>
+ </module>
+</application>
Copied: labs/jbosstm/trunk/XTS/WSCF/tests/dd/wscf-tests_web-app.xml (from rev 18918, labs/jbosstm/trunk/XTS/WSAS/tests/dd/wsas-tests_web-app.xml)
===================================================================
--- labs/jbosstm/trunk/XTS/WSCF/tests/dd/wscf-tests_web-app.xml (rev 0)
+++ labs/jbosstm/trunk/XTS/WSCF/tests/dd/wscf-tests_web-app.xml 2008-03-13 15:50:06 UTC (rev 18927)
@@ -0,0 +1,53 @@
+<!--
+ 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 General Public License, v. 2.0.
+ 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 General Public License for more details.
+ You should have received a copy of the GNU General Public License,
+ v. 2.0 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 web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
+
+<web-app>
+ <display-name>Arjuna WSCF Tests</display-name>
+
+ <description>Arjuna WSCF Tests</description>
+
+ <!-- Initialise the tests -->
+ <listener>
+ <listener-class>com.arjuna.wscf.tests.TestInitialisation</listener-class>
+ </listener>
+
+ <servlet>
+ <servlet-name>JUnit Tests Servlet</servlet-name>
+ <servlet-class>com.arjuna.qa.junit.WSCFTestRunnerServlet</servlet-class>
+ <init-param>
+ <param-name>TestSuiteClassName</param-name>
+ <param-value>com.arjuna.wscf.tests.WSCFTestSuite</param-value>
+ </init-param>
+ <load-on-startup>4</load-on-startup>
+ </servlet>
+
+ <!-- servlet mappings -->
+ <servlet-mapping>
+ <servlet-name>JUnit Tests Servlet</servlet-name>
+ <url-pattern>/index.html</url-pattern>
+ </servlet-mapping>
+
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ </welcome-file-list>
+</web-app>
More information about the jboss-svn-commits
mailing list