[jbosscache-commits] JBoss Cache SVN: r7286 - core/trunk/src/test/java/org/jboss/cache/buddyreplication.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Fri Dec 12 03:35:04 EST 2008


Author: mircea.markus
Date: 2008-12-12 03:35:04 -0500 (Fri, 12 Dec 2008)
New Revision: 7286

Modified:
   core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy2NodesBackupActivationInactivationTest.java
   core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy2NodesNoBuddyPoolTest.java
   core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesNoPoolNoDataGravitationTest.java
   core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesNoPoolWithDataGravitationTest.java
   core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesNoStateTransfer.java
   core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesWithFailoverTest.java
   core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesWithPoolNoDataGravitationTest.java
   core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyPoolBroadcastTest.java
   core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationConfigTest.java
   core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationTestsBase.java
   core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationWithCacheLoaderTest.java
   core/trunk/src/test/java/org/jboss/cache/buddyreplication/EmptyRegionTest.java
   core/trunk/src/test/java/org/jboss/cache/buddyreplication/GravitationCleanupTest.java
Log:
removed System.out.print

Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy2NodesBackupActivationInactivationTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy2NodesBackupActivationInactivationTest.java	2008-12-12 08:33:22 UTC (rev 7285)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy2NodesBackupActivationInactivationTest.java	2008-12-12 08:35:04 UTC (rev 7286)
@@ -66,16 +66,8 @@
 
 //      TestingUtil.sleepThread(getSleepTimeout());
 
-      System.out.println("Cache dump BEFORE activation");
-      System.out.println("cache1 " + CachePrinter.printCacheDetails(cache1));
-      System.out.println("cache2 " + CachePrinter.printCacheDetails(cache2));
-
       c2.activate();
 
-      System.out.println("Cache dump AFTER activation");
-      System.out.println("cache1 " + CachePrinter.printCacheDetails(cache1));
-      System.out.println("cache2 " + CachePrinter.printCacheDetails(cache2));
-
       Fqn fqn = fqnTransformer.getBackupFqn(cache1.getLocalAddress(), A_B);
 
       assertEquals("State transferred with activation", JOE, cache2.get(fqn, "name"));

Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy2NodesNoBuddyPoolTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy2NodesNoBuddyPoolTest.java	2008-12-12 08:33:22 UTC (rev 7285)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy2NodesNoBuddyPoolTest.java	2008-12-12 08:35:04 UTC (rev 7286)
@@ -32,7 +32,6 @@
       caches.get(1).put("/cache1", "k", "v");
 
       waitForBuddy(caches.get(0), caches.get(1), true);
-      System.out.println("*** Testing cache 1:");
       waitForBuddy(caches.get(1), caches.get(0), true);
 
       assert caches.get(0).peek(fqnTransformer.getBackupRoot(caches.get(0).getLocalAddress()), false) == null : "Should not have backup region for self";

Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesNoPoolNoDataGravitationTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesNoPoolNoDataGravitationTest.java	2008-12-12 08:33:22 UTC (rev 7285)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesNoPoolNoDataGravitationTest.java	2008-12-12 08:35:04 UTC (rev 7286)
@@ -28,27 +28,17 @@
 
    public void testSingleBuddy() throws Exception
    {
-      System.out.println("*** Testing cache 0:");
       waitForBuddy(caches.get(0), caches.get(1), true);
-      System.out.println("*** Testing cache 1:");
       waitForBuddy(caches.get(1), caches.get(2), true);
-      System.out.println("*** Testing cache 2:");
       waitForBuddy(caches.get(2), caches.get(0), true);
-
-      System.out.println("Cache 0 = " + CachePrinter.printCacheLockingInfo(caches.get(0)));
-      System.out.println("Cache 1 = " + CachePrinter.printCacheLockingInfo(caches.get(1)));
-      System.out.println("Cache 2 = " + CachePrinter.printCacheLockingInfo(caches.get(2)));
    }
 
    public void testRemovalFromClusterSingleBuddy() throws Exception
    {
       try
       {
-         System.out.println("*** Testing cache 0");
          waitForBuddy(caches.get(0), caches.get(1), true);
-         System.out.println("*** Testing cache 1");
          waitForBuddy(caches.get(1), caches.get(2), true);
-         System.out.println("*** Testing cache 2");
          waitForBuddy(caches.get(2), caches.get(0), true);
 
          // now remove a cache from the cluster
@@ -90,10 +80,6 @@
       assertNull("Should be null", caches.get(2).get(backupFqn, key));
 
       assertNoStaleLocks(caches);
-
-      System.out.println("Cache 0 = " + CachePrinter.printCacheLockingInfo(caches.get(0)));
-      System.out.println("Cache 1 = " + CachePrinter.printCacheLockingInfo(caches.get(1)));
-      System.out.println("Cache 2 = " + CachePrinter.printCacheLockingInfo(caches.get(2)));
    }
 
 
@@ -156,9 +142,6 @@
       assertNoLocks(caches);
 
       backupFqn = fqnTransformer.getBackupFqn(caches.get(1).getLocalAddress(), fqn);
-
-      System.out.println("*** Calling get() on cache[1] with force option");
-
       ReplicationListener replicationListener0 = ReplicationListener.getReplicationListener(caches.get(0));
       replicationListener0.expect(DataGravitationCleanupCommand.class);
 

Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesNoPoolWithDataGravitationTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesNoPoolWithDataGravitationTest.java	2008-12-12 08:33:22 UTC (rev 7285)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesNoPoolWithDataGravitationTest.java	2008-12-12 08:35:04 UTC (rev 7286)
@@ -60,8 +60,6 @@
       assertTrue("Value be true", caches.get(1).exists(backupFqn));
       assertFalse("Should be false", caches.get(2).exists(backupFqn));
 
-      System.out.println("***** Killed original data owner, about to call a get on a different cache instance.  *****");
-
       ReplicationListener replListener = ReplicationListener.getReplicationListener(caches.get(1));
       replListener.expect(DataGravitationCleanupCommand.class);
 
@@ -132,8 +130,6 @@
 
       // now try the assertion again since the local gravitation would have worked.
 
-      System.out.println("Cache contents " + CachePrinter.printCacheDetails(caches.get(0)));
-
       assertEquals("value", caches.get(0).get("/1", "key"));
       assertEquals("value", caches.get(0).get("/2", "key"));
       caches.get(1).start();
@@ -213,11 +209,9 @@
 
    public void testTransactionsRollback() throws Exception
    {
-      System.out.println("Buddy3NodesNoPoolWithDataGravitationTest.testTransactionsRollback****************************");
       TestingUtil.dumpCacheContents(caches.get(0));
       TestingUtil.dumpCacheContents(caches.get(1));
       TestingUtil.dumpCacheContents(caches.get(2));
-      System.out.println("Buddy3NodesNoPoolWithDataGravitationTest.testTransactionsRollback****************************");
 
       caches.get(0).put(fqn, key, value);
       Fqn oldBackupFqn = Fqn.fromString("/" + BuddyManager.BUDDY_BACKUP_SUBTREE + "/" + fqnTransformer.getGroupNameFromAddress(caches.get(0).getLocalAddress()) + "/test");
@@ -345,9 +339,6 @@
 
       dataOwner.put(fqn, key, value);
 
-      System.out.println("dataOwner: " + CachePrinter.printCacheDetails(dataOwner));
-      System.out.println("buddy: " + CachePrinter.printCacheDetails(buddy));
-
       assert dataOwner.peek(fqn, false) != null : "Should have data";
       assert dataOwner.peek(Fqn.fromRelativeElements(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN, fqnTransformer.getGroupNameFromAddress(buddy.getLocalAddress())), false) != null : "Should have backup node for buddy";
       assert dataOwner.peek(Fqn.fromRelativeElements(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN, fqnTransformer.getGroupNameFromAddress(dataOwner.getLocalAddress())), false) == null : "Should NOT have backup node for self!";
@@ -362,9 +353,6 @@
       // gravitation cleanup calls are async.
       cleanupDelay();
 
-      System.out.println("dataOwner: " + CachePrinter.printCacheDetails(dataOwner));
-      System.out.println("buddy: " + CachePrinter.printCacheDetails(buddy));
-
       assert buddy.peek(fqn, false) != null : "Should have data";
       assert buddy.peek(Fqn.fromRelativeElements(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN, fqnTransformer.getGroupNameFromAddress(dataOwner.getLocalAddress())), false) != null : "Should have backup node for buddy";
       assert buddy.peek(Fqn.fromRelativeElements(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN, fqnTransformer.getGroupNameFromAddress(buddy.getLocalAddress())), false) == null : "Should NOT have backup node for self!";
@@ -384,9 +372,6 @@
 
       first.put(fqn, key, value);
 
-      System.out.println("first: " + CachePrinter.printCacheDetails(first));
-      System.out.println("second: " + CachePrinter.printCacheDetails(second));
-
       assert first.peek(fqn, false) != null : "Should have data";
       assert first.peek(Fqn.fromRelativeElements(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN, fqnTransformer.getGroupNameFromAddress(third.getLocalAddress())), false) != null : "Should have backup node for second";
       assert first.peek(Fqn.fromRelativeElements(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN, fqnTransformer.getGroupNameFromAddress(first.getLocalAddress())), false) == null : "Should NOT have backup node for self!";
@@ -401,9 +386,6 @@
       // gravitation cleanup calls are async.
       cleanupDelay();
 
-      System.out.println("first: " + CachePrinter.printCacheDetails(first));
-      System.out.println("second: " + CachePrinter.printCacheDetails(second));
-
       assert second.peek(fqn, false) != null : "Should have data";
       assert second.peek(Fqn.fromRelativeElements(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN, fqnTransformer.getGroupNameFromAddress(first.getLocalAddress())), false) != null : "Should have backup node for second";
       assert second.peek(Fqn.fromRelativeElements(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN, fqnTransformer.getGroupNameFromAddress(second.getLocalAddress())), false) == null : "Should NOT have backup node for self!";
@@ -430,10 +412,6 @@
 
       dataOwner.put(fqn, key, value);
 
-      System.out.println("dataOwner: " + CachePrinter.printCacheLockingInfo(dataOwner));
-      System.out.println("buddy: " + CachePrinter.printCacheLockingInfo(buddy));
-      System.out.println("thirdInstance: " + CachePrinter.printCacheLockingInfo(thirdInstance));
-
       assert dataOwner.peek(fqn, false) != null : "Should have data";
       assert dataOwner.peek(Fqn.fromRelativeElements(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN, fqnTransformer.getGroupNameFromAddress(thirdInstance.getLocalAddress())), false) != null : "Should have backup node for buddy";
       assert dataOwner.peek(Fqn.fromRelativeElements(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN, fqnTransformer.getGroupNameFromAddress(dataOwner.getLocalAddress())), false) == null : "Should NOT have backup node for self!";
@@ -450,10 +428,6 @@
       // gravitation cleanup calls are async.
       TestingUtil.sleepThread(250);
 
-      System.out.println("dataOwner: " + CachePrinter.printCacheLockingInfo(dataOwner));
-      System.out.println("buddy: " + CachePrinter.printCacheLockingInfo(buddy));
-      System.out.println("thirdInstance: " + CachePrinter.printCacheLockingInfo(thirdInstance));
-
       assert thirdInstance.peek(fqn, false) != null : "Should have data";
       assert thirdInstance.peek(Fqn.fromRelativeElements(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN, fqnTransformer.getGroupNameFromAddress(buddy.getLocalAddress())), false) != null : "Should have backup node for buddy";
       assert thirdInstance.peek(Fqn.fromRelativeElements(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN, fqnTransformer.getGroupNameFromAddress(thirdInstance.getLocalAddress())), false) == null : "Should NOT have backup node for self!";
@@ -493,7 +467,6 @@
       {
          if (e.isPre())
          {
-            System.out.println(">>>>>>>> Got BLOCK on cache " + e.getCache().getLocalAddress());
             synchronized (this)
             {
                blocks++;
@@ -507,7 +480,6 @@
       {
          if (e.isPre())
          {
-            System.out.println(">>>>>>>> Got UNBLOCK on cache " + e.getCache().getLocalAddress());
             synchronized (this)
             {
                blocks--;

Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesNoStateTransfer.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesNoStateTransfer.java	2008-12-12 08:33:22 UTC (rev 7285)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesNoStateTransfer.java	2008-12-12 08:35:04 UTC (rev 7286)
@@ -34,9 +34,6 @@
       waitForBuddy(caches.get(2), caches.get(0), true);
       Thread.sleep(2000);//wait for state transfer
 
-      for (CacheSPI c : caches)
-         System.out.println("Cache (local address " + c.getLocalAddress() + ") contents: " + CachePrinter.printCacheLockingInfo(c));
-
       for (int i = 0; i < 3; i++)
       {
          int backupIndex = i == 2 ? 0 : i + 1;

Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesWithFailoverTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesWithFailoverTest.java	2008-12-12 08:33:22 UTC (rev 7285)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesWithFailoverTest.java	2008-12-12 08:35:04 UTC (rev 7286)
@@ -122,12 +122,10 @@
       assertTrue("Value be true", cachePool.get(1).exists(backupFqn));
       assertFalse("Should be false", cachePool.get(2).exists(backupFqn));
 
-      System.out.println("***** About to kill original data owner (" + cachePool.get(0).getLocalAddress() + ").  *****");
       // forcefully kill data owner.
       amendDiscard(cachePool.get(0), cachePool.get(1), 2, true);
       waitForSingleBuddy(cachePool.get(1), cachePool.get(2));
 
-      System.out.println("Killed.  Testing backup roots.");
       TestingUtil.dumpCacheContents(cachePool);
       // assert that the remaining cachePool have picked new buddies.  Cache 1 should have cache 2's backup data.
       assert cachePool.get(1).peek(fqnTransformer.getBackupRoot(cachePool.get(2).getLocalAddress()), false) != null : "Should have new buddy's backup root.";
@@ -140,8 +138,6 @@
       assert cachePool.get(2).peek(fqnTransformer.getBackupRoot(cachePool.get(0).getLocalAddress()), false) == null : "Should not have dead node as a backup root.";
       assert cachePool.get(2).peek(Fqn.fromRelativeElements(fqnTransformer.getDeadBackupRoot(cachePool.get(0).getLocalAddress()), 1), false) == null : "Should not have dead node as a defunct backup root.";
 
-      System.out.println("***** Killed original data owner, about to call a get on a different cache instance.  *****");
-
       ReplicationListener replListener = ReplicationListener.getReplicationListener(cachePool.get(1));
       replListener.expect(DataGravitationCleanupCommand.class);
 

Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesWithPoolNoDataGravitationTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesWithPoolNoDataGravitationTest.java	2008-12-12 08:33:22 UTC (rev 7285)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/Buddy3NodesWithPoolNoDataGravitationTest.java	2008-12-12 08:35:04 UTC (rev 7286)
@@ -62,7 +62,6 @@
    public void test3CachesWithPoolNames() throws Exception
    {
       long st = System.currentTimeMillis();
-      System.out.println("Setup: " + (System.currentTimeMillis() - st));
       st = System.currentTimeMillis();
 
       BuddyManager m = caches.get(0).getBuddyManager();
@@ -71,7 +70,6 @@
       assertEquals("A", groupMap.get(caches.get(0).getLocalAddress()));
       assertEquals("B", groupMap.get(caches.get(1).getLocalAddress()));
       assertEquals("C", groupMap.get(caches.get(2).getLocalAddress()));
-      System.out.println("Test: " + (System.currentTimeMillis() - st));
    }
 
    public void testBuddyPoolSync() throws Exception

Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyPoolBroadcastTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyPoolBroadcastTest.java	2008-12-12 08:33:22 UTC (rev 7285)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyPoolBroadcastTest.java	2008-12-12 08:35:04 UTC (rev 7286)
@@ -35,7 +35,6 @@
    {
       long st = System.currentTimeMillis();
       super.tearDown();
-      System.out.println("Teardown: " + (System.currentTimeMillis() - st));
    }
 
    public void test2CachesWithPoolNames() throws Exception
@@ -84,7 +83,6 @@
             }
             if (allPoolNameBroadcasted)
             {
-               System.out.println("Received from all!!!");
                break;
             }
             if (System.currentTimeMillis() >= timeout)
@@ -98,13 +96,10 @@
 
          //and now look at the state of things.
          Map map = caches.get(0).getBuddyManager().buddyPool;
-         System.out.println(map);
          for (int i = 0; i < numCaches; i++)
          {
             if (caches.get(i) != null)
                assertEquals("Failed on cache " + i + "(" + caches.get(i).getLocalAddress() + ")", new String(new char[]{(char) ('A' + i)}), map.get(caches.get(i).getLocalAddress()));
-            else
-               System.out.println("Cache " + i + " is null!??");
          }
 
          checkConsistentPoolState(caches);

Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationConfigTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationConfigTest.java	2008-12-12 08:33:22 UTC (rev 7285)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationConfigTest.java	2008-12-12 08:35:04 UTC (rev 7286)
@@ -107,8 +107,6 @@
          hasDG = hasDG || (interceptor instanceof LegacyDataGravitatorInterceptor);
       }
 
-      System.out.println(cache.getInterceptorChain());
-
       assertTrue("Should have a data gravitator!!", hasDG);
    }
 

Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationTestsBase.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationTestsBase.java	2008-12-12 08:33:22 UTC (rev 7285)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationTestsBase.java	2008-12-12 08:35:04 UTC (rev 7286)
@@ -41,7 +41,6 @@
    @AfterMethod(alwaysRun = true)
    public void tearDown() throws Exception
    {
-      System.out.println("***** TEARING DOWN *****");
       System.setProperty("org.jboss.cache.shutdown.force", "true");
       List<CacheSPI<Object, Object>> caches = cachesTL.get();
       if (caches != null)
@@ -281,14 +280,6 @@
       return caches;
    }
 
-   protected void printBuddyGroup(Cache cache)
-   {
-//      BuddyManager bm = ((CacheSPI) cache).getBuddyManager();
-//      BuddyGroup bg = bm.buddyGroup;
-//      System.out.println("*** " + bg);
-//      System.out.println("    Groups I participate in: " + bm.buddyGroupsIParticipateIn.keySet());
-   }
-
    /**
     * This is to allow for any state transfers involved (when assigning a buddy) to complete
     */
@@ -302,7 +293,6 @@
       Address dataOwnerLocalAddress = dataOwner.getLocalAddress();
       Address buddyLocalAddress = buddy.getLocalAddress();
 
-      printBuddyGroup(dataOwner);
 
       BuddyManager dataOwnerBuddyManager = ((CacheSPI) dataOwner).getBuddyManager();
       BuddyManager buddyBuddyManager = ((CacheSPI) buddy).getBuddyManager();
@@ -364,7 +354,6 @@
    {
       Address dataOwnerLocalAddress = dataOwner.getLocalAddress();
       Address buddyLocalAddress = buddy.getLocalAddress();
-      printBuddyGroup(dataOwner);
       BuddyManager dataOwnerBuddyManager = ((CacheSPI) dataOwner).getBuddyManager();
       BuddyManager buddyBuddyManager = ((CacheSPI) buddy).getBuddyManager();
       boolean result = true;

Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationWithCacheLoaderTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationWithCacheLoaderTest.java	2008-12-12 08:33:22 UTC (rev 7285)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/BuddyReplicationWithCacheLoaderTest.java	2008-12-12 08:35:04 UTC (rev 7286)
@@ -75,15 +75,11 @@
       // cleanup
       for (int i = 0; i < 3; i++) loaders[i].remove(Fqn.ROOT);
 
-      for (int i = 0; i < 3; i++) System.out.println("Loader " + i + ": " + loaders[i].get(fqn));
-
       // put stuff in cache0
       caches.get(0).put(fqn, key, value);
 
       // make sure there are no locks.
       assertNoLocks(caches);
-      for (int i = 0; i < 3; i++) System.out.println("Loader " + i + ": " + loaders[i].get(fqn));
-
       dumpCacheContents(caches);
 
       // request data from cache2
@@ -95,8 +91,6 @@
       cleanupDelay(); // gravitation cleanup is async!!
       assertNoLocks(caches);
 
-      for (int i = 0; i < 3; i++) System.out.println("Loader " + i + ": " + loaders[i].get(fqn));
-
       dumpCacheContents(caches);
 
       // test that data does not exist in cache0
@@ -181,9 +175,6 @@
       caches.get(0).put(fqn, key, value);
 
       Map m = loaders[1].get(b1);
-      System.out.println("From loader:  " + m);
-
-      System.out.println("*** About do cause a gravitation event ... ");
       // request data from cache2
       if (!autoGravitate)
          caches.get(2).getInvocationContext().getOptionOverrides().setForceDataGravitation(true);

Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/EmptyRegionTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/EmptyRegionTest.java	2008-12-12 08:33:22 UTC (rev 7285)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/EmptyRegionTest.java	2008-12-12 08:35:04 UTC (rev 7286)
@@ -72,9 +72,6 @@
 
       // should not throw any exceptions!!
 
-      System.out.println("Cache1 " + CachePrinter.printCacheDetails(c1));
-      System.out.println("Cache2 " + CachePrinter.printCacheDetails(c2));
-
       // make sure region2 stuff did get transmitted!
       assert c2.peek(fqnTransformer.getBackupFqn(c1.getLocalAddress(), region2Fqn), false) != null : "Region2 state should have transferred!";
    }
@@ -85,7 +82,6 @@
       @BuddyGroupChanged
       public void buddyJoined(Event e)
       {
-         System.out.println("e = " + e);
          buddyJoinLatch.countDown();
       }
    }

Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/GravitationCleanupTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/GravitationCleanupTest.java	2008-12-12 08:33:22 UTC (rev 7285)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/GravitationCleanupTest.java	2008-12-12 08:35:04 UTC (rev 7286)
@@ -54,7 +54,6 @@
 
          assert !cache0.exists(fqn);
 
-         System.out.println(CachePrinter.printCacheDetails(cache0));
       } finally
       {
          TestingUtil.killCaches(cache0, cache1);




More information about the jbosscache-commits mailing list