[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/aop/integrated ...
Manik Surtani
msurtani at jboss.com
Thu Jul 20 04:05:17 EDT 2006
User: msurtani
Date: 06/07/20 04:05:17
Modified: tests/functional/org/jboss/cache/aop/integrated
NetworkManagementAopTest.java
Log:
Fixed some broken UTs to use the new xml parsers, cache factories, etc.
Revision Changes Path
1.7 +6 -4 JBossCache/tests/functional/org/jboss/cache/aop/integrated/NetworkManagementAopTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: NetworkManagementAopTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/aop/integrated/NetworkManagementAopTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- NetworkManagementAopTest.java 9 Apr 2006 12:33:49 -0000 1.6
+++ NetworkManagementAopTest.java 20 Jul 2006 08:05:17 -0000 1.7
@@ -5,12 +5,13 @@
import junit.framework.TestSuite;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.jboss.cache.PropertyConfigurator;
import org.jboss.cache.aop.PojoCache;
import org.jboss.cache.aop.test.NetworkAdmin;
import org.jboss.cache.aop.test.NetworkDomain;
import org.jboss.cache.aop.test.NetworkElement;
import org.jboss.cache.aop.test.NetworkNode;
+import org.jboss.cache.config.Configuration;
+import org.jboss.cache.factories.XmlConfigurationParser;
import java.util.List;
@@ -48,9 +49,10 @@
private PojoCache createCache(String name) throws Exception {
PojoCache tree = new PojoCache();
- PropertyConfigurator config = new PropertyConfigurator();
- config.configure(tree, "META-INF/replSync-service.xml"); // read in generic replAsync xml
- tree.setClusterName(name);
+ XmlConfigurationParser parser = new XmlConfigurationParser();
+ Configuration c = parser.parseFile("META-INF/replSync-service.xml"); // read in generic replAsync xml
+ tree.setConfiguration(c);
+ c.setClusterName(name);
tree.createService();
tree.startService();
return tree;
More information about the jboss-cvs-commits
mailing list