[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/eviction ...
Manik Surtani
msurtani at jboss.com
Tue Jan 2 13:26:06 EST 2007
User: msurtani
Date: 07/01/02 13:26:06
Modified: tests/functional/org/jboss/cache/eviction
StateTransferIntegrationTest.java
Log:
Cleaned up cache factory
Revision Changes Path
1.3 +8 -9 JBossCache/tests/functional/org/jboss/cache/eviction/StateTransferIntegrationTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: StateTransferIntegrationTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/eviction/StateTransferIntegrationTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- StateTransferIntegrationTest.java 21 Dec 2006 05:04:51 -0000 1.2
+++ StateTransferIntegrationTest.java 2 Jan 2007 18:26:06 -0000 1.3
@@ -22,6 +22,7 @@
package org.jboss.cache.eviction;
+import junit.framework.TestCase;
import org.jboss.cache.Cache;
import org.jboss.cache.Fqn;
import org.jboss.cache.Region;
@@ -29,8 +30,6 @@
import org.jboss.cache.factories.DefaultCacheFactory;
import org.jboss.cache.factories.XmlConfigurationParser;
-import junit.framework.TestCase;
-
/**
* Tests that eviction policies are aware of events related to state transfer.
*
@@ -48,13 +47,13 @@
{
XmlConfigurationParser parser = new XmlConfigurationParser();
Configuration c = parser.parseFile("META-INF/replSync-eviction-service.xml");
- Cache cache1 = DefaultCacheFactory.createCache(c, false);
+ Cache cache1 = DefaultCacheFactory.getInstance().createCache(c, false);
cache1.start();
cache1.put(Fqn.fromString("/a/b/c"), "key", "value");
c = parser.parseFile("META-INF/replSync-eviction-service.xml");
- Cache cache2 = DefaultCacheFactory.createCache(c, false);
+ Cache cache2 = DefaultCacheFactory.getInstance().createCache(c, false);
cache2.start();
Region region = cache2.getRegion(Fqn.ROOT, false);
More information about the jboss-cvs-commits
mailing list