[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/aop/eviction ...
Manik Surtani
msurtani at jboss.com
Thu Jul 20 07:48:25 EDT 2006
User: msurtani
Date: 06/07/20 07:48:25
Modified: tests/functional/org/jboss/cache/aop/eviction
AopLRUPolicyTest.java
AopLRUPolicyUpdateEvictionTest.java
PojoEvictionTest.java
Log:
migrated to new configurators
Revision Changes Path
1.6 +4 -5 JBossCache/tests/functional/org/jboss/cache/aop/eviction/AopLRUPolicyTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AopLRUPolicyTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/aop/eviction/AopLRUPolicyTest.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- AopLRUPolicyTest.java 20 Jul 2006 10:59:13 -0000 1.5
+++ AopLRUPolicyTest.java 20 Jul 2006 11:48:25 -0000 1.6
@@ -4,15 +4,15 @@
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.jboss.cache.Fqn;
-import org.jboss.cache.PropertyConfigurator;
-import org.jboss.cache.misc.TestingUtil;
import org.jboss.cache.aop.AOPInstance;
import org.jboss.cache.aop.InternalDelegate;
import org.jboss.cache.aop.PojoCache;
+import org.jboss.cache.factories.XmlConfigurationParser;
+import org.jboss.cache.misc.TestingUtil;
/**
* @author Ben Wang, Feb 11, 2004
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public class AopLRUPolicyTest extends TestCase
{
@@ -39,8 +39,7 @@
{
// sleep(10000);
cache_ = new PojoCache();
- PropertyConfigurator config = new PropertyConfigurator();
- config.configure(cache_, "META-INF/pojocache-service.xml"); // read in generic local xml
+ cache_.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/pojocache-service.xml")); // read in generic local xml
cache_.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
cache_.startService();
}
1.4 +6 -7 JBossCache/tests/functional/org/jboss/cache/aop/eviction/AopLRUPolicyUpdateEvictionTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AopLRUPolicyUpdateEvictionTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/aop/eviction/AopLRUPolicyUpdateEvictionTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- AopLRUPolicyUpdateEvictionTest.java 20 Jul 2006 09:03:52 -0000 1.3
+++ AopLRUPolicyUpdateEvictionTest.java 20 Jul 2006 11:48:25 -0000 1.4
@@ -6,19 +6,19 @@
*/
package org.jboss.cache.aop.eviction;
-import junit.framework.TestCase;
import junit.framework.Test;
+import junit.framework.TestCase;
import junit.framework.TestSuite;
-import org.jboss.cache.aop.PojoCache;
+import org.jboss.cache.Fqn;
import org.jboss.cache.aop.AOPInstance;
import org.jboss.cache.aop.InternalDelegate;
-import org.jboss.cache.PropertyConfigurator;
-import org.jboss.cache.Fqn;
+import org.jboss.cache.aop.PojoCache;
+import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.misc.TestingUtil;
/**
* @author Ben Wang, Feb 11, 2004
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class AopLRUPolicyUpdateEvictionTest extends TestCase
{
@@ -45,8 +45,7 @@
{
// sleep(10000);
cache_ = new PojoCache();
- PropertyConfigurator config = new PropertyConfigurator();
- config.configure(cache_, "META-INF/local-aop-eviction-service.xml"); // read in generic local xml
+ cache_.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/local-aop-eviction-service.xml")); // read in generic local xml
cache_.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
cache_.startService();
}
1.9 +4 -5 JBossCache/tests/functional/org/jboss/cache/aop/eviction/PojoEvictionTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PojoEvictionTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/aop/eviction/PojoEvictionTest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- PojoEvictionTest.java 5 May 2006 12:06:57 -0000 1.8
+++ PojoEvictionTest.java 20 Jul 2006 11:48:25 -0000 1.9
@@ -7,16 +7,16 @@
package org.jboss.cache.aop.eviction;
-import junit.framework.TestCase;
import junit.framework.Test;
+import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jboss.cache.aop.PojoCache;
-import org.jboss.cache.aop.test.Person;
import org.jboss.cache.aop.test.Address;
+import org.jboss.cache.aop.test.Person;
import org.jboss.cache.aop.test.Student;
-import org.jboss.cache.PropertyConfigurator;
+import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.misc.TestingUtil;
import java.util.ArrayList;
@@ -44,8 +44,7 @@
log_.info("setUp() ....");
String configFile = "META-INF/pojocache-service.xml";
cache_ = new PojoCache();
- PropertyConfigurator config = new PropertyConfigurator();
- config.configure(cache_, configFile); // read in generic replSync xml
+ cache_.setConfiguration(new XmlConfigurationParser().parseFile(configFile));
cache_.start();
wakeupIntervalMillis_ = cache_.getEvictionThreadWakeupIntervalSeconds() * 1000;
More information about the jboss-cvs-commits
mailing list