Author: manik.surtani(a)jboss.com
Date: 2007-12-28 07:17:28 -0500 (Fri, 28 Dec 2007)
New Revision: 4922
Modified:
core/trunk/src/test/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderCompatibilityTest.java
Log:
Fixed broken test
Modified:
core/trunk/src/test/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderCompatibilityTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderCompatibilityTest.java 2007-12-28
01:45:01 UTC (rev 4921)
+++
core/trunk/src/test/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderCompatibilityTest.java 2007-12-28
12:17:28 UTC (rev 4922)
@@ -6,6 +6,7 @@
import org.jboss.cache.config.CacheLoaderConfig;
import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.marshall.NodeData;
+import org.jboss.cache.misc.TestingUtil;
import org.jboss.cache.statetransfer.StateTransferManager;
import org.jboss.cache.xml.XmlHelper;
import org.jboss.util.stream.MarshalledValueInputStream;
@@ -37,8 +38,8 @@
@SuppressWarnings("deprecation")
private JDBCCacheLoaderOld oldImpl;
-
private JDBCCacheLoader newImpl;
+ private CacheSPI cache, cache2;
/**
@@ -52,8 +53,8 @@
{
newImpl = getNewCacheLoader();
oldImpl = getOldLoader();
- CacheSPI cache = (CacheSPI) new DefaultCacheFactory().createCache(false);
- CacheSPI cache2 = (CacheSPI) new DefaultCacheFactory().createCache(false);
+ cache = (CacheSPI) new DefaultCacheFactory().createCache();
+ cache2 = (CacheSPI) new DefaultCacheFactory().createCache();
newImpl.setCache(cache);//this is needed for marshaller
oldImpl.setCache(cache2);
oldImpl.start();
@@ -66,6 +67,8 @@
oldImpl.remove(Fqn.ROOT);
oldImpl.stop();
newImpl.stop();
+
+ TestingUtil.killCaches(cache, cache2);
}
public void testCommonOperations() throws Exception
Show replies by date