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

Elias Ross genman at noderunner.net
Wed Feb 7 17:06:44 EST 2007


  User: genman  
  Date: 07/02/07 17:06:44

  Modified:    tests/functional/org/jboss/cache/transaction              
                        AbortionTest.java
                        ReplicatedTransactionDeadlockTest.java
                        IsolationLevelSerializableTest.java
                        TransactionTest.java SuspendTxTest.java
                        InvocationContextCleanupTest.java
                        IsolationLevelRepeatableReadTest.java
                        NotifyingTransactionManager.java
                        IsolationLevelReadCommittedNodeCreationRollbackTest.java
                        AsyncRollbackTransactionManagerLookup.java
                        IsolationLevelReadCommittedTest.java
                        PrepareTxTest.java IsolationLevelNoneTest.java
                        DeadlockTest.java
  Log:
  JBCACHE-969 - Move transaction classes to org.jboss.cache.transaction
  
  Revision  Changes    Path
  1.7       +58 -51    JBossCache/tests/functional/org/jboss/cache/transaction/AbortionTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AbortionTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/AbortionTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- AbortionTest.java	17 Jan 2007 01:31:08 -0000	1.6
  +++ AbortionTest.java	7 Feb 2007 22:06:43 -0000	1.7
  @@ -10,6 +10,7 @@
   import org.jboss.cache.CacheImpl;
   import org.jboss.cache.interceptors.OrderedSynchronizationHandler;
   import org.jboss.cache.misc.TestingUtil;
  +import org.jboss.cache.transaction.NotifyingTransactionManager.Notification;
   import org.jgroups.JChannel;
   import org.jgroups.blocks.RpcDispatcher;
   
  @@ -59,7 +60,7 @@
         c.getConfiguration().setFetchInMemoryState(false);
         if (!notifying)
         {
  -         c.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  +         c.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
         }
         else
         {
  @@ -124,6 +125,7 @@
   
         TransactionManager mgr1 = cache1.getTransactionManager();
         TransactionManager mgr2 = cache2.getTransactionManager();
  +      assertTrue(cache3.getTransactionManager() instanceof NotifyingTransactionManager);
         NotifyingTransactionManager mgr3 = (NotifyingTransactionManager) cache3.getTransactionManager();
   
         assertSame(mgr1, mgr2);
  @@ -132,8 +134,6 @@
   
         assertTrue(mgr1 instanceof DummyTransactionManager);
         assertTrue(mgr2 instanceof DummyTransactionManager);
  -      assertTrue(mgr3 instanceof NotifyingTransactionManager);
  -
   
         cache1.put("/test", "key", "value");
   
  @@ -141,10 +141,33 @@
         assertEquals("value", cache2.get("/test", "key"));
         assertEquals("value", cache3.get("/test", "key"));
   
  -      // replicates
  -      final boolean fAbortBeforeCompletion = abortBeforeCompletion;
  -      mgr3.notification = new NotifyingTransactionManager.Notification()
  +      mgr3.setNotification(new TestNotification(abortBeforeCompletion)); 
  +
  +      mgr1.begin();
  +      Transaction tx = mgr1.getTransaction();
  +      cache1.put("/test", "key", "value2");
  +      tx.commit();
  +
  +      TestingUtil.sleepThread(5000);
  +
  +      // only test cache1 and cache2.  Assume cache3 has crashed out.
  +      assertEquals(0, cache1.getNumberOfLocksHeld());
  +      assertEquals(0, cache2.getNumberOfLocksHeld());
  +      assertEquals("put in transaction should NOT have been rolled back", "value2", cache1.get("/test", "key"));
  +      assertEquals("put in transaction should NOT have been rolled back", "value2", cache2.get("/test", "key"));
  +
  +   }
  +
  +
  +   class TestNotification implements Notification
  +   {
  +      boolean abortBeforeCompletion;
  +
  +      public TestNotification(boolean abortBeforeCompletion)
         {
  +         this.abortBeforeCompletion = abortBeforeCompletion;
  +      }
  +
            public void notify(Transaction tx) throws SystemException, RollbackException
            {
               final Transaction finalTx = tx;
  @@ -153,11 +176,9 @@
               Synchronization abort = new Synchronization()
               {
   
  -               Transaction t = finalTx;
  -
                  public void beforeCompletion()
                  {
  -                  if (fAbortBeforeCompletion)
  +               if (abortBeforeCompletion)
                     {
                        cache3.myChannel.close();
                        System.out.println("Returning from abort.beforeCompletion");
  @@ -175,7 +196,7 @@
   
                  public void afterCompletion(int i)
                  {
  -                  if (!fAbortBeforeCompletion)
  +               if (!abortBeforeCompletion)
                     {
                        cache3.myChannel.close();
                        System.out.println("Returning from abort.afterCompletion");
  @@ -188,22 +209,8 @@
               osh.registerAtHead(abort);
               System.out.println("Added sync handler.");
            }
  -      };
  -
  -      mgr1.begin();
  -      Transaction tx = mgr1.getTransaction();
  -      cache1.put("/test", "key", "value2");
  -      tx.commit();
   
  -      TestingUtil.sleepThread(5000);
  -
  -      // only test cache1 and cache2.  Assume cache3 has crashed out.
  -      assertEquals(0, cache1.getNumberOfLocksHeld());
  -      assertEquals(0, cache2.getNumberOfLocksHeld());
  -      assertEquals("put in transaction should NOT have been rolled back", "value2", cache1.get("/test", "key"));
  -      assertEquals("put in transaction should NOT have been rolled back", "value2", cache2.get("/test", "key"));
  -
  -   }
  +   };
   
   
      public static class MyTC extends CacheImpl
  
  
  
  1.9       +6 -6      JBossCache/tests/functional/org/jboss/cache/transaction/ReplicatedTransactionDeadlockTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedTransactionDeadlockTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/ReplicatedTransactionDeadlockTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- ReplicatedTransactionDeadlockTest.java	11 Jan 2007 13:49:06 -0000	1.8
  +++ ReplicatedTransactionDeadlockTest.java	7 Feb 2007 22:06:43 -0000	1.9
  @@ -58,8 +58,8 @@
    * </ul>
    *
    * @author Marian Nikolov
  - * @author $Author: msurtani $
  - * @version $Date: 2007/01/11 13:49:06 $
  + * @author $Author: genman $
  + * @version $Date: 2007/02/07 22:06:43 $
    */
   public class ReplicatedTransactionDeadlockTest extends TestCase
   {
  @@ -134,7 +134,7 @@
         srcCache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
         srcCache.setConfiguration(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC));
         srcCache.getConfiguration().setTransactionManagerLookupClass(
  -              "org.jboss.cache.DummyTransactionManagerLookup");
  +              "org.jboss.cache.transaction.DummyTransactionManagerLookup");
         srcCache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
   
         srcCache.getConfiguration().setSyncCommitPhase(true);
  @@ -145,7 +145,7 @@
         dstCache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
         dstCache.setConfiguration(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC));
         dstCache.getConfiguration().setTransactionManagerLookupClass(
  -              "org.jboss.cache.DummyTransactionManagerLookup");
  +              "org.jboss.cache.transaction.DummyTransactionManagerLookup");
         dstCache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
   
         dstCache.getConfiguration().setSyncCommitPhase(true);
  @@ -228,8 +228,8 @@
       * A worker thread that applies the concurrent modifications.
       *
       * @author Marian Nikolov
  -    * @author $Author: msurtani $
  -    * @version $Date: 2007/01/11 13:49:06 $
  +    * @author $Author: genman $
  +    * @version $Date: 2007/02/07 22:06:43 $
       */
      private class Worker extends Thread
      {
  
  
  
  1.7       +1 -2      JBossCache/tests/functional/org/jboss/cache/transaction/IsolationLevelSerializableTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: IsolationLevelSerializableTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/IsolationLevelSerializableTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- IsolationLevelSerializableTest.java	31 Jan 2007 02:40:20 -0000	1.6
  +++ IsolationLevelSerializableTest.java	7 Feb 2007 22:06:43 -0000	1.7
  @@ -7,7 +7,6 @@
   import org.jboss.cache.Cache;
   import org.jboss.cache.CacheImpl;
   import org.jboss.cache.DefaultCacheFactory;
  -import org.jboss.cache.DummyTransactionManagerLookup;
   import org.jboss.cache.Fqn;
   import org.jboss.cache.config.Configuration;
   import org.jboss.cache.config.Configuration.CacheMode;
  @@ -24,7 +23,7 @@
    * Tests READ_COMMITED isolation level.
    *
    * @author <a href="mailto:ovidiu at jboss.org">Ovidiu Feodorov</a>
  - * @version $Id: IsolationLevelSerializableTest.java,v 1.6 2007/01/31 02:40:20 msurtani Exp $
  + * @version $Id: IsolationLevelSerializableTest.java,v 1.7 2007/02/07 22:06:43 genman Exp $
    */
   
   public class IsolationLevelSerializableTest extends TestCase
  
  
  
  1.27      +2 -3      JBossCache/tests/functional/org/jboss/cache/transaction/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/transaction/TransactionTest.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -b -r1.26 -r1.27
  --- TransactionTest.java	31 Jan 2007 17:41:11 -0000	1.26
  +++ TransactionTest.java	7 Feb 2007 22:06:43 -0000	1.27
  @@ -15,7 +15,6 @@
   import org.jboss.cache.CacheImpl;
   import org.jboss.cache.DefaultCacheFactory;
   import org.jboss.cache.Fqn;
  -import org.jboss.cache.GlobalTransaction;
   import org.jboss.cache.Node;
   import org.jboss.cache.NodeSPI;
   import org.jboss.cache.lock.IsolationLevel;
  @@ -39,7 +38,7 @@
    * Tests transactional access to a local CacheImpl.
    * Note: we use DummpyTranasctionManager to replace jta
    *
  - * @version $Id: TransactionTest.java,v 1.26 2007/01/31 17:41:11 msurtani Exp $
  + * @version $Id: TransactionTest.java,v 1.27 2007/02/07 22:06:43 genman Exp $
    */
   public class TransactionTest extends TestCase
   {
  @@ -72,7 +71,7 @@
         cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
         cache.getConfiguration().setClusterName("test");
         cache.getConfiguration().setInitialStateRetrievalTimeout(10000);
  -      cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  +      cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
         cache.getConfiguration().setIsolationLevel(IsolationLevel.SERIALIZABLE);
         cache.getConfiguration().setLockParentForChildInsertRemove(true); // this test case is written to assume this.
         cache.create();
  
  
  
  1.6       +1 -1      JBossCache/tests/functional/org/jboss/cache/transaction/SuspendTxTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SuspendTxTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/SuspendTxTest.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- SuspendTxTest.java	11 Jan 2007 13:49:06 -0000	1.5
  +++ SuspendTxTest.java	7 Feb 2007 22:06:43 -0000	1.6
  @@ -26,7 +26,7 @@
         super.setUp();
         cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
         cache.getConfiguration().setCacheMode("local");
  -      cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  +      cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
         cache.start();
         mgr = cache.getTransactionManager();
      }
  
  
  
  1.7       +1 -1      JBossCache/tests/functional/org/jboss/cache/transaction/InvocationContextCleanupTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: InvocationContextCleanupTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/InvocationContextCleanupTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- InvocationContextCleanupTest.java	11 Jan 2007 13:49:06 -0000	1.6
  +++ InvocationContextCleanupTest.java	7 Feb 2007 22:06:43 -0000	1.7
  @@ -33,7 +33,7 @@
         cache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
         if (optimistic) cache.getConfiguration().setNodeLockingScheme("OPTIMISTIC");
         cache.getConfiguration().setClusterName("InvocationContextCleanupTest");
  -      cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  +      cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
         cache.getConfiguration().setLockAcquisitionTimeout(2000);
         cache.start();
         return cache;
  
  
  
  1.6       +1 -2      JBossCache/tests/functional/org/jboss/cache/transaction/IsolationLevelRepeatableReadTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: IsolationLevelRepeatableReadTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/IsolationLevelRepeatableReadTest.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- IsolationLevelRepeatableReadTest.java	31 Jan 2007 02:40:20 -0000	1.5
  +++ IsolationLevelRepeatableReadTest.java	7 Feb 2007 22:06:43 -0000	1.6
  @@ -6,7 +6,6 @@
   import junit.framework.TestSuite;
   import org.jboss.cache.CacheImpl;
   import org.jboss.cache.DefaultCacheFactory;
  -import org.jboss.cache.DummyTransactionManagerLookup;
   import org.jboss.cache.Fqn;
   import org.jboss.cache.lock.IsolationLevel;
   import org.jboss.cache.lock.TimeoutException;
  @@ -20,7 +19,7 @@
    * Tests READ_COMMITED isolation level.
    *
    * @author <a href="mailto:ovidiu at jboss.org">Ovidiu Feodorov</a>
  - * @version $Id: IsolationLevelRepeatableReadTest.java,v 1.5 2007/01/31 02:40:20 msurtani Exp $
  + * @version $Id: IsolationLevelRepeatableReadTest.java,v 1.6 2007/02/07 22:06:43 genman Exp $
    */
   
   public class IsolationLevelRepeatableReadTest extends TestCase
  
  
  
  1.4       +15 -6     JBossCache/tests/functional/org/jboss/cache/transaction/NotifyingTransactionManager.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: NotifyingTransactionManager.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/NotifyingTransactionManager.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- NotifyingTransactionManager.java	30 Aug 2006 19:09:57 -0000	1.3
  +++ NotifyingTransactionManager.java	7 Feb 2007 22:06:43 -0000	1.4
  @@ -6,7 +6,6 @@
    */
   package org.jboss.cache.transaction;
   
  -import org.jboss.cache.TransactionManagerLookup;
   
   import javax.transaction.NotSupportedException;
   import javax.transaction.RollbackException;
  @@ -21,12 +20,10 @@
    */
   public class NotifyingTransactionManager extends DummyTransactionManager implements TransactionManagerLookup
   {
  -   public NotifyingTransactionManager()
  -   {
  -      super();
  -   }
   
  -   Notification notification;
  +   private static final long serialVersionUID = -2994163352889758708L;
  +
  +   private Notification notification;
   
      public void begin() throws SystemException, NotSupportedException
      {
  @@ -52,6 +49,18 @@
         public void notify(Transaction tx) throws SystemException, RollbackException;
      }
   
  +
  +   public Notification getNotification()
  +   {
  +      return notification;
  +   }
  +   
  +
  +   public void setNotification(Notification notification)
  +   {
  +      this.notification = notification;
  +   }
  +
   }
   
   
  
  
  
  1.7       +1 -2      JBossCache/tests/functional/org/jboss/cache/transaction/IsolationLevelReadCommittedNodeCreationRollbackTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: IsolationLevelReadCommittedNodeCreationRollbackTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/IsolationLevelReadCommittedNodeCreationRollbackTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- IsolationLevelReadCommittedNodeCreationRollbackTest.java	31 Jan 2007 02:40:20 -0000	1.6
  +++ IsolationLevelReadCommittedNodeCreationRollbackTest.java	7 Feb 2007 22:06:43 -0000	1.7
  @@ -12,7 +12,6 @@
   import junit.framework.TestSuite;
   import org.jboss.cache.CacheImpl;
   import org.jboss.cache.DefaultCacheFactory;
  -import org.jboss.cache.DummyTransactionManagerLookup;
   import org.jboss.cache.Fqn;
   import org.jboss.cache.config.Configuration;
   import org.jboss.cache.lock.IsolationLevel;
  @@ -28,7 +27,7 @@
    * Tests READ_COMMITED isolation level.
    *
    * @author <a href="mailto:ovidiu at jboss.org">Ovidiu Feodorov</a>
  - * @version $Id: IsolationLevelReadCommittedNodeCreationRollbackTest.java,v 1.6 2007/01/31 02:40:20 msurtani Exp $
  + * @version $Id: IsolationLevelReadCommittedNodeCreationRollbackTest.java,v 1.7 2007/02/07 22:06:43 genman Exp $
    */
   
   public class IsolationLevelReadCommittedNodeCreationRollbackTest extends TestCase
  
  
  
  1.3       +0 -1      JBossCache/tests/functional/org/jboss/cache/transaction/AsyncRollbackTransactionManagerLookup.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AsyncRollbackTransactionManagerLookup.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/AsyncRollbackTransactionManagerLookup.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- AsyncRollbackTransactionManagerLookup.java	9 Jan 2007 01:43:10 -0000	1.2
  +++ AsyncRollbackTransactionManagerLookup.java	7 Feb 2007 22:06:43 -0000	1.3
  @@ -1,6 +1,5 @@
   package org.jboss.cache.transaction;
   
  -import org.jboss.cache.TransactionManagerLookup;
   
   import javax.transaction.TransactionManager;
   
  
  
  
  1.16      +1 -2      JBossCache/tests/functional/org/jboss/cache/transaction/IsolationLevelReadCommittedTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: IsolationLevelReadCommittedTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/IsolationLevelReadCommittedTest.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- IsolationLevelReadCommittedTest.java	31 Jan 2007 02:40:20 -0000	1.15
  +++ IsolationLevelReadCommittedTest.java	7 Feb 2007 22:06:43 -0000	1.16
  @@ -7,7 +7,6 @@
   import org.jboss.cache.Cache;
   import org.jboss.cache.CacheImpl;
   import org.jboss.cache.DefaultCacheFactory;
  -import org.jboss.cache.DummyTransactionManagerLookup;
   import org.jboss.cache.Fqn;
   import org.jboss.cache.config.Configuration;
   import org.jboss.cache.config.Configuration.CacheMode;
  @@ -25,7 +24,7 @@
    * Tests READ_COMMITED isolation level.
    *
    * @author <a href="mailto:ovidiu at jboss.org">Ovidiu Feodorov</a>
  - * @version $Id: IsolationLevelReadCommittedTest.java,v 1.15 2007/01/31 02:40:20 msurtani Exp $
  + * @version $Id: IsolationLevelReadCommittedTest.java,v 1.16 2007/02/07 22:06:43 genman Exp $
    */
   
   public class IsolationLevelReadCommittedTest extends TestCase
  
  
  
  1.7       +1 -2      JBossCache/tests/functional/org/jboss/cache/transaction/PrepareTxTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PrepareTxTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/PrepareTxTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- PrepareTxTest.java	11 Jan 2007 13:49:06 -0000	1.6
  +++ PrepareTxTest.java	7 Feb 2007 22:06:43 -0000	1.7
  @@ -6,7 +6,6 @@
   import org.jboss.cache.CacheException;
   import org.jboss.cache.CacheImpl;
   import org.jboss.cache.DefaultCacheFactory;
  -import org.jboss.cache.TransactionTable;
   
   import javax.transaction.NotSupportedException;
   import javax.transaction.Synchronization;
  @@ -27,7 +26,7 @@
         super.setUp();
         cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
         cache.getConfiguration().setCacheMode("local");
  -      cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  +      cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
         cache.create();
         cache.start();
      }
  
  
  
  1.8       +1 -2      JBossCache/tests/functional/org/jboss/cache/transaction/IsolationLevelNoneTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: IsolationLevelNoneTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/IsolationLevelNoneTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- IsolationLevelNoneTest.java	11 Jan 2007 13:49:06 -0000	1.7
  +++ IsolationLevelNoneTest.java	7 Feb 2007 22:06:43 -0000	1.8
  @@ -5,7 +5,6 @@
   import junit.framework.TestSuite;
   import org.jboss.cache.CacheImpl;
   import org.jboss.cache.DefaultCacheFactory;
  -import org.jboss.cache.DummyTransactionManagerLookup;
   import org.jboss.cache.Fqn;
   import org.jboss.cache.config.Configuration;
   import org.jboss.cache.lock.IsolationLevel;
  @@ -18,7 +17,7 @@
    * Tests whether modifications within callbacks (TreeCacheListener) are handled correctly
    *
    * @author Bela Ban
  - * @version $Id: IsolationLevelNoneTest.java,v 1.7 2007/01/11 13:49:06 msurtani Exp $
  + * @version $Id: IsolationLevelNoneTest.java,v 1.8 2007/02/07 22:06:43 genman Exp $
    */
   public class IsolationLevelNoneTest extends TestCase
   {
  
  
  
  1.11      +2 -2      JBossCache/tests/functional/org/jboss/cache/transaction/DeadlockTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: DeadlockTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/transaction/DeadlockTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- DeadlockTest.java	1 Feb 2007 12:54:27 -0000	1.10
  +++ DeadlockTest.java	7 Feb 2007 22:06:43 -0000	1.11
  @@ -31,7 +31,7 @@
    * Tests transactional access to a local CacheImpl, with concurrent (deadlock-prone) access.
    * Note: we use DummpyTranasctionManager to replace jta
    *
  - * @version $Id: DeadlockTest.java,v 1.10 2007/02/01 12:54:27 msurtani Exp $
  + * @version $Id: DeadlockTest.java,v 1.11 2007/02/07 22:06:43 genman Exp $
    */
   public class DeadlockTest extends TestCase
   {
  @@ -58,7 +58,7 @@
         cache.getConfiguration().setInitialStateRetrievalTimeout(10000);
         cache.getConfiguration().setClusterName("test");
         cache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL);
  -      cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  +      cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
         cache.getConfiguration().setIsolationLevel(IsolationLevel.REPEATABLE_READ);
         cache.getConfiguration().setLockParentForChildInsertRemove(true);
         cache.getConfiguration().setLockAcquisitionTimeout(3000);
  
  
  



More information about the jboss-cvs-commits mailing list