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

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Thu Jan 22 16:19:34 EST 2009


Author: mircea.markus
Date: 2009-01-22 16:19:34 -0500 (Thu, 22 Jan 2009)
New Revision: 7574

Removed:
   core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java
Log:
removed test as it was doing no assertion

Deleted: core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java	2009-01-22 21:17:32 UTC (rev 7573)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java	2009-01-22 21:19:34 UTC (rev 7574)
@@ -1,43 +0,0 @@
-package org.jboss.cache.buddyreplication;
-
-import org.jboss.cache.CacheSPI;
-import org.jboss.cache.Fqn;
-import org.jboss.cache.commands.write.PutKeyValueCommand;
-import org.jboss.cache.util.internals.replicationlisteners.ReplicationListener;
-import org.testng.annotations.Test;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Test added to replicate a found issue. When fixing it consider moving test to some other class.
- *
- * @author Mircea.Markus at jboss.com
- * @since 2.1
- */
- at Test(groups = {"functional"}, testName = "buddyreplication.RemoveRootBuddyTest")
-public class RemoveRootBuddyTest extends BuddyReplicationTestsBase
-{
-   public void testRemoveRootNode() throws Exception
-   {
-      CacheSPI cache1 = createCache(false, 1, "myBuddyPoolReplicationGroup", false, true, true);
-      CacheSPI cache2 = createCache(false, 1, "myBuddyPoolReplicationGroup", false, true, true);
-      waitForSingleBuddy(cache1, cache2);
-      ReplicationListener replicationListener2 = ReplicationListener.getReplicationListener(cache2);
-      List<CacheSPI<Object, Object>> caches = new ArrayList<CacheSPI<Object, Object>>(2);
-      cachesTL.set(caches);
-      caches.add(cache1);
-      caches.add(cache2);
-      int opCount = 10;
-      for (int i = 0; i < opCount; i++)
-      {
-         String key = String.valueOf(opCount);
-         String value = String.valueOf(opCount);
-         Fqn f = Fqn.fromElements("test", key);
-         replicationListener2.expect(PutKeyValueCommand.class);
-         cache1.put(f, key, value);
-         replicationListener2.waitForReplicationToOccur();
-      }
-      cache1.removeNode(Fqn.ROOT);
-   }
-}




More information about the jbosscache-commits mailing list