[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/invocationcontext ...

Manik Surtani msurtani at jboss.com
Wed Sep 6 07:36:22 EDT 2006


  User: msurtani
  Date: 06/09/06 07:36:22

  Modified:    tests/functional/org/jboss/cache/invocationcontext 
                        TransactionTest.java
  Log:
  Added check to ensure tx and gtx are scrubbed after commit
  
  Revision  Changes    Path
  1.2       +6 -0      JBossCache/tests/functional/org/jboss/cache/invocationcontext/TransactionTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TransactionTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/invocationcontext/TransactionTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- TransactionTest.java	6 Sep 2006 11:35:07 -0000	1.1
  +++ TransactionTest.java	6 Sep 2006 11:36:22 -0000	1.2
  @@ -57,6 +57,9 @@
         assertNotNull("Gtx should have been set up by now", cache.getInvocationContext().getGlobalTransaction());
   
         tm.commit();
  +
  +      assertNull("Tx should have been scrubbed", cache.getInvocationContext().getTransaction());
  +      assertNull("Gtx should have been scrubbed", cache.getInvocationContext().getGlobalTransaction());
      }
   
      public void testTxExistenceAfterRead() throws SystemException, NotSupportedException, HeuristicMixedException, HeuristicRollbackException, RollbackException
  @@ -79,5 +82,8 @@
         assertNotNull("Gtx should have been set up by now", cache.getInvocationContext().getGlobalTransaction());
   
         tm.commit();
  +
  +      assertNull("Tx should have been scrubbed", cache.getInvocationContext().getTransaction());
  +      assertNull("Gtx should have been scrubbed", cache.getInvocationContext().getGlobalTransaction());
      }
   }
  
  
  



More information about the jboss-cvs-commits mailing list