[jbosscache-commits] JBoss Cache SVN: r4863 - core/trunk/src/test/java/org/jboss/cache/buddyreplication.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Fri Dec 14 13:23:38 EST 2007
Author: mircea.markus
Date: 2007-12-14 13:23:38 -0500 (Fri, 14 Dec 2007)
New Revision: 4863
Modified:
core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java
Log:
added tests to reproduce an issues.
Modified: core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java 2007-12-14 16:56:28 UTC (rev 4862)
+++ core/trunk/src/test/java/org/jboss/cache/buddyreplication/RemoveRootBuddyTest.java 2007-12-14 18:23:38 UTC (rev 4863)
@@ -1,8 +1,8 @@
package org.jboss.cache.buddyreplication;
import org.jboss.cache.CacheImpl;
+import org.jboss.cache.CacheSPI;
import org.jboss.cache.Fqn;
-import org.jboss.cache.CacheException;
import org.testng.annotations.Test;
import java.util.ArrayList;
@@ -18,9 +18,9 @@
{
public void testRemoveRootNode() throws Exception
{
- CacheImpl cache1 = createCache(false, 1, "myBuddyPoolReplicationGroup", false, true, true);
- CacheImpl cache2 = createCache(false, 1, "myBuddyPoolReplicationGroup", false, true, true);
- caches = new ArrayList<CacheImpl<Object, Object>>(2);
+ CacheSPI cache1 = createCache(false, 1, "myBuddyPoolReplicationGroup", false, true, true);
+ CacheSPI cache2 = createCache(false, 1, "myBuddyPoolReplicationGroup", false, true, true);
+ caches = new ArrayList<CacheSPI<Object, Object>>(2);
caches.add(cache1);
caches.add(cache2);
int opCount = 10;
@@ -31,12 +31,6 @@
Fqn f = new Fqn("test", key);
cache1.put(f, key, value);
}
- try
- {
- cache1.remove(Fqn.ROOT);
- } catch (CacheException e)
- {
- e.printStackTrace();
- }
+ cache1.removeNode(Fqn.ROOT);
}
}
More information about the jbosscache-commits
mailing list