[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/interceptors ...
Manik Surtani
msurtani at jboss.com
Thu Jan 11 08:49:05 EST 2007
User: msurtani
Date: 07/01/11 08:49:05
Modified: tests/functional/org/jboss/cache/interceptors
EvictionInterceptorTest.java
InterceptorCacheReferenceTest.java
Log:
Changed CacheImpl ctor to be protected, and changed cache factories accordingly
Revision Changes Path
1.20 +2 -1 JBossCache/tests/functional/org/jboss/cache/interceptors/EvictionInterceptorTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: EvictionInterceptorTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/interceptors/EvictionInterceptorTest.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- EvictionInterceptorTest.java 30 Dec 2006 19:48:47 -0000 1.19
+++ EvictionInterceptorTest.java 11 Jan 2007 13:49:05 -0000 1.20
@@ -8,6 +8,7 @@
import junit.framework.TestCase;
import org.jboss.cache.CacheImpl;
+import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.Fqn;
import org.jboss.cache.Node;
import org.jboss.cache.Region;
@@ -57,7 +58,7 @@
regionManager.getRegion("/d/e/g", true).setEvictionPolicy(config);
regionManager.getRegion("/d/e", true).setEvictionPolicy(config);
- cache = new CacheImpl();
+ cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
cache.getConfiguration().setIsolationLevel(IsolationLevel.SERIALIZABLE);
1.4 +1 -1 JBossCache/tests/functional/org/jboss/cache/interceptors/InterceptorCacheReferenceTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: InterceptorCacheReferenceTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/interceptors/InterceptorCacheReferenceTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- InterceptorCacheReferenceTest.java 2 Jan 2007 18:26:07 -0000 1.3
+++ InterceptorCacheReferenceTest.java 11 Jan 2007 13:49:05 -0000 1.4
@@ -9,8 +9,8 @@
import junit.framework.TestCase;
import org.jboss.cache.Cache;
import org.jboss.cache.CacheSPI;
+import org.jboss.cache.DefaultCacheFactory;
import org.jboss.cache.config.Configuration;
-import org.jboss.cache.factories.DefaultCacheFactory;
/**
* Tests that all interceptors in a given interceptor chain have the same cache instance.
More information about the jboss-cvs-commits
mailing list