[jboss-svn-commits] JBL Code SVN: r36625 - in labs/jbosstm/trunk/ArjunaCore/txoj: tests/classes/com/hp/mwtests/ts/txoj/atomicobject and 2 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Feb 17 08:31:10 EST 2011
Author: tomjenkinson
Date: 2011-02-17 08:31:10 -0500 (Thu, 17 Feb 2011)
New Revision: 36625
Added:
labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/AbortObject.java
labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/CommitObject.java
labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/ThreadObject1.java
labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/ThreadObject2.java
labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/concurrencycontrol/DummyLockManager.java
labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/DummyTOModule.java
labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/MyRecoveredTO.java
Modified:
labs/jbosstm/trunk/ArjunaCore/txoj/build.xml
labs/jbosstm/trunk/ArjunaCore/txoj/pom.xml
labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/AtomicObjectTest2.java
labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/AtomicObjectTest3.java
labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/concurrencycontrol/LockManagerUnitTest.java
labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/RecoveryModuleUnitTest.java
labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/RecoveryTest.java
Log:
JBTM-574 refactored inner classes to not be ran by surefire
Modified: labs/jbosstm/trunk/ArjunaCore/txoj/build.xml
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/txoj/build.xml 2011-02-17 13:26:36 UTC (rev 36624)
+++ labs/jbosstm/trunk/ArjunaCore/txoj/build.xml 2011-02-17 13:31:10 UTC (rev 36625)
@@ -37,6 +37,15 @@
<run.tests.macro>
<tests>
<fileset dir="tests/classes" includes="**/*.java">
+ <!-- Were refactored to true classes as used in multiple places -->
+ <exclude name="**/AbortObject.java"/>
+ <exclude name="**/CommitObject.java"/>
+ <exclude name="**/ThreadObject1.java"/>
+ <exclude name="**/ThreadObject2.java"/>
+ <exclude name="**/DummyLockManager.java"/>
+ <exclude name="**/DummyTOModule.java"/>
+ <exclude name="**/MyRecoveredTO.java"/>
+
<exclude name="**/common/**"/>
</fileset>
</tests>
Modified: labs/jbosstm/trunk/ArjunaCore/txoj/pom.xml
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/txoj/pom.xml 2011-02-17 13:26:36 UTC (rev 36624)
+++ labs/jbosstm/trunk/ArjunaCore/txoj/pom.xml 2011-02-17 13:31:10 UTC (rev 36625)
@@ -64,9 +64,25 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
+ <version>2.7</version>
<configuration>
<workingDirectory>${basedir}/target</workingDirectory>
+ <runOrder>alphabetical</runOrder>
+ <redirectTestOutputToFile>true</redirectTestOutputToFile>
+ <forkMode>pertest</forkMode>
+ <includes>
+ <include>**/*.java</include>
+ </includes>
<excludes>
+ <!-- Were refactored to true classes as used in multiple places -->
+ <exclude>**/AbortObject.java</exclude>
+ <exclude>**/CommitObject.java</exclude>
+ <exclude>**/ThreadObject1.java</exclude>
+ <exclude>**/ThreadObject2.java</exclude>
+ <exclude>**/DummyLockManager.java</exclude>
+ <exclude>**/DummyTOModule.java</exclude>
+ <exclude>**/MyRecoveredTO.java</exclude>
+
<exclude>**/common/**</exclude>
</excludes>
</configuration>
Added: labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/AbortObject.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/AbortObject.java (rev 0)
+++ labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/AbortObject.java 2011-02-17 13:31:10 UTC (rev 36625)
@@ -0,0 +1,66 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package com.hp.mwtests.ts.txoj.atomicobject;
+
+import com.arjuna.ats.arjuna.AtomicAction;
+
+/*
+ * Copyright (C) 1998, 1999, 2000,
+ *
+ * Arjuna Solutions Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: AtomicObjectTest3.java 2342 2006-03-30 13:06:17Z $
+ */
+
+public class AbortObject extends Thread
+{
+ public AbortObject ()
+ {
+ }
+
+ public void run ()
+ {
+ int thr = nextThreadId;
+
+ nextThreadId++;
+
+ AtomicAction a = new AtomicAction();
+
+ a.begin();
+
+ AtomicObjectTest3.indent(thr, 0);
+ System.out.println("begin");
+
+ AtomicObjectTest3.randomOperation(thr, 0);
+ AtomicObjectTest3.randomOperation(thr, 0);
+
+ a.abort();
+
+ AtomicObjectTest3.indent(thr, 0);
+ System.out.println("abort");
+ }
+
+ private static int nextThreadId = 3;
+
+ }
Modified: labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/AtomicObjectTest2.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/AtomicObjectTest2.java 2011-02-17 13:26:36 UTC (rev 36624)
+++ labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/AtomicObjectTest2.java 2011-02-17 13:31:10 UTC (rev 36625)
@@ -44,26 +44,6 @@
import java.lang.InterruptedException;
-class ThreadObject1 extends Thread
-{
- public ThreadObject1(char c)
- {
- chr = c;
- }
-
- public void run ()
- {
- for (int i = 0; i < 100; i++)
- {
- AtomicObjectTest2.randomOperation(chr, 0);
- AtomicObjectTest2.highProbYield();
- }
- }
-
- private char chr;
-
-}
-
public class AtomicObjectTest2
{
public static final int START_VALUE_1 = 10;
@@ -86,8 +66,8 @@
atomicObject2.set(START_VALUE_2);
- ThreadObject1 thr1 = new ThreadObject1('1');
- ThreadObject1 thr2 = new ThreadObject1('2');
+ ThreadObject2 thr1 = new ThreadObject2('1');
+ ThreadObject2 thr2 = new ThreadObject2('2');
thr1.start();
thr2.start();
Modified: labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/AtomicObjectTest3.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/AtomicObjectTest3.java 2011-02-17 13:26:36 UTC (rev 36624)
+++ labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/AtomicObjectTest3.java 2011-02-17 13:31:10 UTC (rev 36625)
@@ -44,95 +44,15 @@
import java.lang.InterruptedException;
-class AbortObject extends Thread
-{
-public AbortObject ()
- {
- }
-public void run ()
- {
- int thr = nextThreadId;
- nextThreadId++;
- AtomicAction a = new AtomicAction();
- a.begin();
- AtomicObjectTest3.indent(thr, 0);
- System.out.println("begin");
- AtomicObjectTest3.randomOperation(thr, 0);
- AtomicObjectTest3.randomOperation(thr, 0);
- a.abort();
- AtomicObjectTest3.indent(thr, 0);
- System.out.println("abort");
- }
-private static int nextThreadId = 3;
-
-}
-
-
-class CommitObject extends Thread
-{
-
-public CommitObject ()
- {
- }
-
-public void run ()
- {
- int thr = nextThreadId;
-
- nextThreadId++;
-
- AtomicAction a = new AtomicAction();
-
- a.begin();
-
- AtomicObjectTest3.indent(thr, 0);
- System.out.println("begin");
-
- AtomicObjectTest3.randomOperation(thr, 0);
- AtomicObjectTest3.randomOperation(thr, 0);
-
- a.commit();
-
- AtomicObjectTest3.indent(thr, 0);
- System.out.println("commit");
- }
-
-private static int nextThreadId = 3;
-
-}
-
-
-class ThreadObject2 extends Thread
-{
-
-public ThreadObject2 (int v)
- {
- _value = v;
- }
-
-public void run ()
- {
- for (int i = 0; i < 100; i++)
- {
- AtomicObjectTest3.randomOperation(_value, 0);
- AtomicObjectTest3.highProbYield();
- }
- }
-
-private int _value;
-
-}
-
-
public class AtomicObjectTest3
{
public static final int START_VALUE_1 = 10;
Added: labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/CommitObject.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/CommitObject.java (rev 0)
+++ labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/CommitObject.java 2011-02-17 13:31:10 UTC (rev 36625)
@@ -0,0 +1,67 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package com.hp.mwtests.ts.txoj.atomicobject;
+
+import com.arjuna.ats.arjuna.AtomicAction;
+
+/*
+ * Copyright (C) 1998, 1999, 2000,
+ *
+ * Arjuna Solutions Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: AtomicObjectTest3.java 2342 2006-03-30 13:06:17Z $
+ */
+
+public class CommitObject extends Thread
+{
+
+ public CommitObject ()
+ {
+ }
+
+ public void run ()
+ {
+ int thr = nextThreadId;
+
+ nextThreadId++;
+
+ AtomicAction a = new AtomicAction();
+
+ a.begin();
+
+ AtomicObjectTest3.indent(thr, 0);
+ System.out.println("begin");
+
+ AtomicObjectTest3.randomOperation(thr, 0);
+ AtomicObjectTest3.randomOperation(thr, 0);
+
+ a.commit();
+
+ AtomicObjectTest3.indent(thr, 0);
+ System.out.println("commit");
+ }
+
+ private static int nextThreadId = 3;
+
+ }
\ No newline at end of file
Added: labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/ThreadObject1.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/ThreadObject1.java (rev 0)
+++ labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/ThreadObject1.java 2011-02-17 13:31:10 UTC (rev 36625)
@@ -0,0 +1,54 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package com.hp.mwtests.ts.txoj.atomicobject;
+
+import com.arjuna.ats.arjuna.AtomicAction;
+
+/*
+ * Copyright (C) 1998, 1999, 2000,
+ *
+ * Arjuna Solutions Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: AtomicObjectTest3.java 2342 2006-03-30 13:06:17Z $
+ */
+
+public class ThreadObject1 extends Thread
+{
+ public ThreadObject1(char c)
+ {
+ chr = c;
+ }
+
+ public void run ()
+ {
+ for (int i = 0; i < 100; i++)
+ {
+ AtomicObjectTest2.randomOperation(chr, 0);
+ AtomicObjectTest2.highProbYield();
+ }
+ }
+
+ private char chr;
+
+}
Added: labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/ThreadObject2.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/ThreadObject2.java (rev 0)
+++ labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/atomicobject/ThreadObject2.java 2011-02-17 13:31:10 UTC (rev 36625)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+package com.hp.mwtests.ts.txoj.atomicobject;
+
+import com.arjuna.ats.arjuna.AtomicAction;
+
+/*
+ * Copyright (C) 1998, 1999, 2000,
+ *
+ * Arjuna Solutions Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: AtomicObjectTest3.java 2342 2006-03-30 13:06:17Z $
+ */
+
+public class ThreadObject2 extends Thread
+{
+
+ public ThreadObject2 (int v)
+ {
+ _value = v;
+ }
+
+ public void run ()
+ {
+ for (int i = 0; i < 100; i++)
+ {
+ AtomicObjectTest3.randomOperation(_value, 0);
+ AtomicObjectTest3.highProbYield();
+ }
+ }
+
+ private int _value;
+
+}
Added: labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/concurrencycontrol/DummyLockManager.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/concurrencycontrol/DummyLockManager.java (rev 0)
+++ labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/concurrencycontrol/DummyLockManager.java 2011-02-17 13:31:10 UTC (rev 36625)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
+ * Copyright (C) 1998, 1999, 2000,
+ *
+ * Arjuna Solutions Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: RecoveryTest.java 2342 2006-03-30 13:06:17Z $
+ */
+
+package com.hp.mwtests.ts.txoj.concurrencycontrol;
+
+import com.arjuna.ats.arjuna.ObjectType;
+import com.arjuna.ats.arjuna.common.Uid;
+import com.arjuna.ats.txoj.LockManager;
+
+public class DummyLockManager extends LockManager
+{
+ public DummyLockManager ()
+ {
+ super(new Uid(), ObjectType.ANDPERSISTENT);
+ }
+}
Modified: labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/concurrencycontrol/LockManagerUnitTest.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/concurrencycontrol/LockManagerUnitTest.java 2011-02-17 13:26:36 UTC (rev 36624)
+++ labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/concurrencycontrol/LockManagerUnitTest.java 2011-02-17 13:31:10 UTC (rev 36625)
@@ -44,15 +44,6 @@
import static org.junit.Assert.*;
-class DummyLockManager extends LockManager
-{
- public DummyLockManager ()
- {
- super(new Uid(), ObjectType.ANDPERSISTENT);
- }
-}
-
-
public class LockManagerUnitTest
{
@Test
Added: labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/DummyTOModule.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/DummyTOModule.java (rev 0)
+++ labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/DummyTOModule.java 2011-02-17 13:31:10 UTC (rev 36625)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
+ * Copyright (C) 1998, 1999, 2000,
+ *
+ * Arjuna Solutions Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: RecoveryTest.java 2342 2006-03-30 13:06:17Z $
+ */
+
+package com.hp.mwtests.ts.txoj.recovery;
+
+import com.arjuna.ats.internal.txoj.recovery.TORecoveryModule;
+
+public class DummyTOModule extends TORecoveryModule
+{
+ public void intialise ()
+ {
+ super.initialise();
+ }
+}
Added: labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/MyRecoveredTO.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/MyRecoveredTO.java (rev 0)
+++ labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/MyRecoveredTO.java 2011-02-17 13:31:10 UTC (rev 36625)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author JBoss Inc.
+ */
+/*
+ * Copyright (C) 1998, 1999, 2000,
+ *
+ * Arjuna Solutions Limited,
+ * Newcastle upon Tyne,
+ * Tyne and Wear,
+ * UK.
+ *
+ * $Id: RecoveryTest.java 2342 2006-03-30 13:06:17Z $
+ */
+
+package com.hp.mwtests.ts.txoj.recovery;
+
+import com.arjuna.ats.arjuna.common.Uid;
+import com.arjuna.ats.arjuna.objectstore.ParticipantStore;
+import com.arjuna.ats.internal.txoj.recovery.RecoveredTransactionalObject;
+
+public class MyRecoveredTO extends RecoveredTransactionalObject
+{
+ public MyRecoveredTO(Uid objectUid, String originalType,
+ ParticipantStore participantStore)
+ {
+ super(objectUid, originalType, participantStore);
+ }
+
+ public void replay ()
+ {
+ super.replayPhase2();
+ }
+}
Modified: labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/RecoveryModuleUnitTest.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/RecoveryModuleUnitTest.java 2011-02-17 13:26:36 UTC (rev 36624)
+++ labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/RecoveryModuleUnitTest.java 2011-02-17 13:31:10 UTC (rev 36625)
@@ -44,15 +44,6 @@
import static org.junit.Assert.*;
-
-class DummyTOModule extends TORecoveryModule
-{
- public void intialise ()
- {
- super.initialise();
- }
-}
-
public class RecoveryModuleUnitTest
{
@Test
Modified: labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/RecoveryTest.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/RecoveryTest.java 2011-02-17 13:26:36 UTC (rev 36624)
+++ labs/jbosstm/trunk/ArjunaCore/txoj/tests/classes/com/hp/mwtests/ts/txoj/recovery/RecoveryTest.java 2011-02-17 13:31:10 UTC (rev 36625)
@@ -44,20 +44,6 @@
import org.junit.Test;
import static org.junit.Assert.*;
-class MyRecoveredTO extends RecoveredTransactionalObject
-{
- public MyRecoveredTO(Uid objectUid, String originalType,
- ParticipantStore participantStore)
- {
- super(objectUid, originalType, participantStore);
- }
-
- public void replay ()
- {
- super.replayPhase2();
- }
-}
-
public class RecoveryTest
{
@Test
More information about the jboss-svn-commits
mailing list