[jboss-svn-commits] JBL Code SVN: r32565 - labs/jbosstm/trunk/ArjunaCore/arjuna/tests/classes/com/hp/mwtests/ts/arjuna/reaper.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Apr 14 11:41:17 EDT 2010


Author: adinn
Date: 2010-04-14 11:41:16 -0400 (Wed, 14 Apr 2010)
New Revision: 32565

Modified:
   labs/jbosstm/trunk/ArjunaCore/arjuna/tests/classes/com/hp/mwtests/ts/arjuna/reaper/ReaperMonitorTest.java
Log:
added extra calls to ioncrease test coverage -- fixes JBTM-718

Modified: labs/jbosstm/trunk/ArjunaCore/arjuna/tests/classes/com/hp/mwtests/ts/arjuna/reaper/ReaperMonitorTest.java
===================================================================
--- labs/jbosstm/trunk/ArjunaCore/arjuna/tests/classes/com/hp/mwtests/ts/arjuna/reaper/ReaperMonitorTest.java	2010-04-14 13:36:10 UTC (rev 32564)
+++ labs/jbosstm/trunk/ArjunaCore/arjuna/tests/classes/com/hp/mwtests/ts/arjuna/reaper/ReaperMonitorTest.java	2010-04-14 15:41:16 UTC (rev 32565)
@@ -84,6 +84,23 @@
         reaper.insert(A, 1);
 
         assertTrue(listener.checkSucceeded(30 * 1000));
+
+        assertTrue(reaper.removeListener(listener));
+
+        // insert a new transaction with a longer timeout and check that we can find the remaining time
+
+        A = new AtomicAction();
+
+        reaper.insert(A, 1000);
+
+        long remaining = reaper.getRemainingTimeoutMills(A);
+
+        assertTrue(remaining != 0);
+
+        // ok now remove it
+
+        reaper.remove(A);
+
     }
 
     public static boolean success = false;



More information about the jboss-svn-commits mailing list