[jbosscache-commits] JBoss Cache SVN: r5134 - core/trunk/src/test/java/org/jboss/cache/eviction.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Tue Jan 15 06:11:33 EST 2008
Author: manik.surtani at jboss.com
Date: 2008-01-15 06:11:32 -0500 (Tue, 15 Jan 2008)
New Revision: 5134
Modified:
core/trunk/src/test/java/org/jboss/cache/eviction/EvictionConfigurationTest.java
Log:
Fixed broken test
Modified: core/trunk/src/test/java/org/jboss/cache/eviction/EvictionConfigurationTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/eviction/EvictionConfigurationTest.java 2008-01-15 11:05:23 UTC (rev 5133)
+++ core/trunk/src/test/java/org/jboss/cache/eviction/EvictionConfigurationTest.java 2008-01-15 11:11:32 UTC (rev 5134)
@@ -193,14 +193,14 @@
public void testNoEviction() throws Exception
{
- cache = (CacheSPI<Object, Object>) new DefaultCacheFactory().createCache();
+ cache = (CacheSPI<Object, Object>) new DefaultCacheFactory<Object, Object>().createCache();
regionManager = cache.getRegionManager();
- assertEquals(1, regionManager.getAllRegions(Region.Type.ANY).size());
+ assertEquals(0, regionManager.getAllRegions(Region.Type.ANY).size());
}
private void setupCache(String configurationName)
{
- cache = (CacheSPI<Object, Object>) new DefaultCacheFactory().createCache(configurationName, false);
+ cache = (CacheSPI<Object, Object>) new DefaultCacheFactory<Object, Object>().createCache(configurationName, false);
cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.transaction.DummyTransactionManagerLookup");
cache.getConfiguration().setIsolationLevel(IsolationLevel.SERIALIZABLE);
cache.start();
More information about the jbosscache-commits
mailing list