[jbosscache-commits] JBoss Cache SVN: r7311 - core/trunk/src/test/java/org/jboss/cache/eviction.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Fri Dec 12 04:36:40 EST 2008
Author: mircea.markus
Date: 2008-12-12 04:36:40 -0500 (Fri, 12 Dec 2008)
New Revision: 7311
Modified:
core/trunk/src/test/java/org/jboss/cache/eviction/ConcurrentEvictionTest.java
Log:
use in memroyCL to increase performance
Modified: core/trunk/src/test/java/org/jboss/cache/eviction/ConcurrentEvictionTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/eviction/ConcurrentEvictionTest.java 2008-12-12 09:22:34 UTC (rev 7310)
+++ core/trunk/src/test/java/org/jboss/cache/eviction/ConcurrentEvictionTest.java 2008-12-12 09:36:40 UTC (rev 7311)
@@ -50,7 +50,6 @@
{
fail("testEviction(): eviction thread wake up interval is illegal " + wakeupIntervalMillis);
}
-
}
void initCaches() throws Exception
@@ -72,10 +71,7 @@
cacheLoaderConfig.setPreload("/");
cacheLoaderConfig.setShared(false);
CacheLoaderConfig.IndividualCacheLoaderConfig iclc = new CacheLoaderConfig.IndividualCacheLoaderConfig();
- iclc.setClassName("org.jboss.cache.loader.FileCacheLoader");
- Properties p = new Properties();
- p.put("location", tmpDir + cacheLoaderDir);
- iclc.setProperties(p);
+ iclc.setClassName("org.jboss.cache.loader.DummyInMemoryCacheLoader");
iclc.setAsync(false);
iclc.setFetchPersistentState(true);
iclc.setIgnoreModifications(false);
@@ -96,9 +92,7 @@
@AfterMethod(alwaysRun = true)
public void tearDown() throws Exception
{
- TestingUtil.recursiveFileRemove(tmpDir + cacheLoaderDir);
TestingUtil.killCaches(cache);
- cache = null;
}
public void testConcurrentEviction() throws Exception
More information about the jbosscache-commits
mailing list