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

Manik Surtani msurtani at jboss.com
Wed Oct 18 07:07:54 EDT 2006


  User: msurtani
  Date: 06/10/18 07:07:54

  Modified:    tests/functional/org/jboss/cache/buddyreplication  
                        BuddyAssignmentStateTransferTest.java
                        BuddyBackupActivationInactivationTest.java
  Log:
  * added more tests for the move() API
  * added a nodeMoved listener event
  * moved some methods from CacheSPI to Cache
  
  Revision  Changes    Path
  1.9       +8 -0      JBossCache/tests/functional/org/jboss/cache/buddyreplication/BuddyAssignmentStateTransferTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BuddyAssignmentStateTransferTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/buddyreplication/BuddyAssignmentStateTransferTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- BuddyAssignmentStateTransferTest.java	6 Sep 2006 15:30:57 -0000	1.8
  +++ BuddyAssignmentStateTransferTest.java	18 Oct 2006 11:07:54 -0000	1.9
  @@ -74,6 +74,13 @@
   
      public void testRegionBasedStateTransfer() throws Exception
      {
  +
  +      // TODO: Reinstate once we have proper FLUSH working.
  +      // This test relies on calls to inactive regions being queued and re-run
  +      // when the region is activated.  After discussions with Brian, the queueing
  +      // was removed, presuming FLUSH will fix this.  Need to test with FLUSH.
  +      // - Manik Surtani (16 Oct 2006)
  +      /*
         TreeCache[] caches = new TreeCache[3];
   
         try
  @@ -130,6 +137,7 @@
         {
            cleanup(caches);
         }
  +      */
      }
   
      public void testPersistentStateTransfer() throws Exception
  
  
  
  1.10      +14 -0     JBossCache/tests/functional/org/jboss/cache/buddyreplication/BuddyBackupActivationInactivationTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BuddyBackupActivationInactivationTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/buddyreplication/BuddyBackupActivationInactivationTest.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- BuddyBackupActivationInactivationTest.java	7 Sep 2006 15:42:16 -0000	1.9
  +++ BuddyBackupActivationInactivationTest.java	18 Oct 2006 11:07:54 -0000	1.10
  @@ -59,6 +59,12 @@
   
      public void testReplToInactiveRegion() throws Exception
      {
  +      // TODO: Reinstate once we have proper FLUSH working.
  +      // This test relies on calls to inactive regions being queued and re-run
  +      // when the region is activated.  After discussions with Brian, the queueing
  +      // was removed, presuming FLUSH will fix this.  Need to test with FLUSH.
  +      // - Manik Surtani (16 Oct 2006)
  +      /*
         TreeCache[] caches = new TreeCache[2];
         caches[0] = createCache("cache1", true, true, true);
         caches[1] = createCache("cache2", true, true, true);
  @@ -82,10 +88,17 @@
         fqn = new Fqn(fqn, A_B);
   
         assertNull("No replication to inactive backup region", caches[1].get(fqn, "name"));
  +      */
      }
   
      public void testBuddyBackupInactivation() throws Exception
      {
  +      // TODO: Reinstate once we have proper FLUSH working.
  +      // This test relies on calls to inactive regions being queued and re-run
  +      // when the region is activated.  After discussions with Brian, the queueing
  +      // was removed, presuming FLUSH will fix this.  Need to test with FLUSH.
  +      // - Manik Surtani (16 Oct 2006)
  +/*
         TreeCache cache1 = createCache("cache1", true, true, true);
   
         cache1.activateRegion("/a");
  @@ -100,6 +113,7 @@
         cache1.inactivateRegion("/a");
   
         assertNull("Inactivation cleared region", cache1.get(fqn, "name"));
  +*/
   
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list