[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/aop/memory ...
Manik Surtani
msurtani at jboss.com
Thu Jul 20 07:14:17 EDT 2006
User: msurtani
Date: 06/07/20 07:14:17
Modified: tests/functional/org/jboss/cache/aop/memory
ReplicatedAopTest.java
Log:
Partially migrated to new configurators
Revision Changes Path
1.2 +6 -7 JBossCache/tests/functional/org/jboss/cache/aop/memory/ReplicatedAopTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ReplicatedAopTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/aop/memory/ReplicatedAopTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- ReplicatedAopTest.java 8 Jun 2006 12:35:47 -0000 1.1
+++ ReplicatedAopTest.java 20 Jul 2006 11:14:17 -0000 1.2
@@ -7,23 +7,23 @@
package org.jboss.cache.aop.memory;
-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.SerializedAddress;
-import org.jboss.cache.PropertyConfigurator;
+import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.marshall.SelectedClassnameClassLoader;
import org.jboss.cache.misc.TestingUtil;
import javax.naming.Context;
import java.lang.ref.WeakReference;
-import java.util.Properties;
import java.util.ArrayList;
+import java.util.Properties;
/**
*
@@ -47,11 +47,10 @@
Properties prop = new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.cache.transaction.DummyContextFactory");
cache_ = new PojoCache();
- PropertyConfigurator config = new PropertyConfigurator(); // configure tree cache.
- config.configure(cache_, "META-INF/replSync-service.xml");
+ cache_.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
cache1_ = new PojoCache();
- config.configure(cache1_, "META-INF/replSync-service.xml");
+ cache1_.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
cache_.start();
cache1_.start();
}
More information about the jboss-cvs-commits
mailing list