[jbosscache-commits] JBoss Cache SVN: r7464 - core/trunk/src/test/java/org/jboss/cache.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Wed Jan 14 09:54:46 EST 2009
Author: mircea.markus
Date: 2009-01-14 09:54:45 -0500 (Wed, 14 Jan 2009)
New Revision: 7464
Modified:
core/trunk/src/test/java/org/jboss/cache/AbstractCacheTest.java
Log:
also remove data from CL
Modified: core/trunk/src/test/java/org/jboss/cache/AbstractCacheTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/AbstractCacheTest.java 2009-01-14 14:49:42 UTC (rev 7463)
+++ core/trunk/src/test/java/org/jboss/cache/AbstractCacheTest.java 2009-01-14 14:54:45 UTC (rev 7464)
@@ -15,8 +15,12 @@
if (!cache.getCacheStatus().allowInvocations()) return;
if (cache.getRoot() != null)
{
- cache.getRoot().clearDataDirect();
- cache.getRoot().removeChildrenDirect();
+ cache.getRoot().clearData();
+ //this will also remove from CL if necesarely
+ for (Object obj : cache.getRoot().getChildrenNames())
+ {
+ cache.getRoot().removeChild(obj);
+ }
}
//impoortant!!! keep invocation ctxt cleanup as the last line in the cleanup process, prev calls modify
// OptionOverrides
More information about the jbosscache-commits
mailing list