[jboss-svn-commits] JBL Code SVN: r37824 - in labs/jbosstm/trunk/XTS/localjunit/crash-recovery-tests/src/test: resources/scripts and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Dec 25 21:14:20 EST 2011
Author: zhfeng
Date: 2011-12-25 21:14:16 -0500 (Sun, 25 Dec 2011)
New Revision: 37824
Modified:
labs/jbosstm/trunk/XTS/localjunit/crash-recovery-tests/src/test/java/com/arjuna/qa/junit/TestBASubordinateCrashDuringComplete.java
labs/jbosstm/trunk/XTS/localjunit/crash-recovery-tests/src/test/resources/scripts/BASubordinateCrashDuringComplete.txt
Log:
JBTM-817 update to enable TestBASubordinateCrashDuringComplete and rules to trace compensate() throws exceptions
Modified: labs/jbosstm/trunk/XTS/localjunit/crash-recovery-tests/src/test/java/com/arjuna/qa/junit/TestBASubordinateCrashDuringComplete.java
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/crash-recovery-tests/src/test/java/com/arjuna/qa/junit/TestBASubordinateCrashDuringComplete.java 2011-12-21 03:01:14 UTC (rev 37823)
+++ labs/jbosstm/trunk/XTS/localjunit/crash-recovery-tests/src/test/java/com/arjuna/qa/junit/TestBASubordinateCrashDuringComplete.java 2011-12-26 02:14:16 UTC (rev 37824)
@@ -1,7 +1,6 @@
package com.arjuna.qa.junit;
import org.jboss.arquillian.junit.Arquillian;
-import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -11,7 +10,6 @@
scriptName = "BASubordinateCrashDuringComplete";
}
- @Ignore("Not complete")
@Test
public void subordinateMultiParticipantCoordinatorCompletionParticipantCloseTest() throws Exception {
testName = "subordinate.MultiParticipantCoordinatorCompletionParticipantCloseTest";
@@ -19,7 +17,6 @@
runTest(testClass);
}
- @Ignore("Not complete")
@Test
public void subordinateMultiParticipantParticipantCompletionParticipantCloseTest() throws Exception {
testName = "subordinate.MultiParticipantParticipantCompletionParticipantCloseTest";
Modified: labs/jbosstm/trunk/XTS/localjunit/crash-recovery-tests/src/test/resources/scripts/BASubordinateCrashDuringComplete.txt
===================================================================
--- labs/jbosstm/trunk/XTS/localjunit/crash-recovery-tests/src/test/resources/scripts/BASubordinateCrashDuringComplete.txt 2011-12-21 03:01:14 UTC (rev 37823)
+++ labs/jbosstm/trunk/XTS/localjunit/crash-recovery-tests/src/test/resources/scripts/BASubordinateCrashDuringComplete.txt 2011-12-26 02:14:16 UTC (rev 37824)
@@ -690,7 +690,7 @@
BIND engine:CoordinatorCompletionParticipantEngine = $0,
recovered:boolean = engine.isRecovered(),
identifier:String = engine.getId(),
- status = $1.getState().toString
+ status = $1.getState().toString()
IF recovered
DO debug("received status " + status + " for recovered CC coordinator engine " + identifier),
traceln("log", "received status " + status + " for recovered CC coordinator engine " + identifier)
@@ -709,7 +709,7 @@
BIND engine:ParticipantCompletionParticipantEngine = $0,
recovered:boolean = engine.isRecovered(),
identifier:String = engine.getId(),
- status = $1.getState().toString
+ status = $1.getState().toString()
IF recovered
DO debug("received status " + status + " for recovered PC coordinator engine " + identifier),
traceln("log", "received status " + status + " for recovered PC coordinator engine " + identifier)
@@ -857,7 +857,7 @@
RULE trace subordinate participant stub compensate with no coordinator
CLASS com.arjuna.wst11.stub.SubordinateCoordinatorCompletionParticipantStub
METHOD compensate
-AT THROW 3
+AT THROW 1
BIND NOTHING
IF TRUE
DO debug("throw during compensate for pseudo-participant " + $0 + " with no subordinate coordinator"),
@@ -874,7 +874,7 @@
RULE trace subordinate participant stub compensate with unactivated coordinator
CLASS com.arjuna.wst11.stub.SubordinateCoordinatorCompletionParticipantStub
METHOD compensate
-AT THROW 4
+AT THROW 2
BIND NOTHING
IF TRUE
DO debug("throw during compensate for pseudo-participant " + $0 + " with unactivated subordinate coordinator"),
@@ -888,15 +888,15 @@
# traces the throw.
-RULE trace subordinate participant stub compensate with system exception from coordinator
-CLASS com.arjuna.wst11.stub.SubordinateCoordinatorCompletionParticipantStub
-METHOD compensate
-AT THROW 5
-BIND NOTHING
-IF TRUE
-DO debug("throw during compensate for pseudo-participant " + $0 + " with system exception from subordinate coordinator"),
- traceln("log", "throw during compensate for pseudo-participant " + $0 + " with system exception from subordinate coordinator")
-ENDRULE
+#RULE trace subordinate participant stub compensate with system exception from coordinator
+#CLASS com.arjuna.wst11.stub.SubordinateCoordinatorCompletionParticipantStub
+#METHOD compensate
+#AT THROW 3
+#BIND NOTHING
+#IF TRUE
+#DO debug("throw during compensate for pseudo-participant " + $0 + " with system exception from subordinate coordinator"),
+# traceln("log", "throw during compensate for pseudo-participant " + $0 + " with system exception from subordinate coordinator")
+#ENDRULE
#######################################################################
# This rule is triggered when a subordinate pseudo participant
More information about the jboss-svn-commits
mailing list