Author: manik.surtani(a)jboss.com
Date: 2007-10-08 10:56:22 -0400 (Mon, 08 Oct 2007)
New Revision: 4564
Modified:
core/trunk/src/test/java/org/jboss/cache/loader/TxCacheLoaderTest.java
Log:
Patched to use the DIMCL
Modified: core/trunk/src/test/java/org/jboss/cache/loader/TxCacheLoaderTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/loader/TxCacheLoaderTest.java 2007-10-08
14:47:53 UTC (rev 4563)
+++ core/trunk/src/test/java/org/jboss/cache/loader/TxCacheLoaderTest.java 2007-10-08
14:56:22 UTC (rev 4564)
@@ -39,24 +39,19 @@
public void setUp() throws Exception
{
- String tmpLoc = System.getProperty("java.io.tmpdir", "/tmp");
- String location = tmpLoc + File.separator + "TxCacheLoaderTest1";
-
cache1 = (CacheImpl<Object, Object>)
DefaultCacheFactory.getInstance().createCache(false);
cache1.getConfiguration().setCacheMode("repl_sync");
cache1.getConfiguration().setTransactionManagerLookupClass(TransactionSetup.getManagerLookup());
-
cache1.getConfiguration().setCacheLoaderConfig(getSingleCacheLoaderConfig("",
"org.jboss.cache.loader.FileCacheLoader", "location=" + location,
false, false, false));
+
cache1.getConfiguration().setCacheLoaderConfig(getSingleCacheLoaderConfig("",
DummyInMemoryCacheLoader.class.getName(), "", false, false, false));
// cache1.setReplQueueInterval(3000);
cache1.create();
cache1.start();
- location = tmpLoc + File.separator + "TxCacheLoaderTest2";
-
cache2 = (CacheImpl<Object, Object>)
DefaultCacheFactory.getInstance().createCache(false);
cache2.getConfiguration().setCacheMode("repl_sync");
cache2.getConfiguration().setTransactionManagerLookupClass(TransactionSetup.getManagerLookup());
-
cache2.getConfiguration().setCacheLoaderConfig(getSingleCacheLoaderConfig("",
"org.jboss.cache.loader.FileCacheLoader", "location=" + location,
false, false, false));
+
cache2.getConfiguration().setCacheLoaderConfig(getSingleCacheLoaderConfig("",
DummyInMemoryCacheLoader.class.getName(), "", false, false, false));
cache2.getConfiguration().setLockAcquisitionTimeout(2000);
// cache2.setReplQueueInterval(3000);
cache2.create();
Show replies by date