[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/aop/integrated ...
Manik Surtani
msurtani at jboss.com
Thu Jul 20 05:03:52 EDT 2006
User: msurtani
Date: 06/07/20 05:03:52
Modified: tests/functional/org/jboss/cache/aop/integrated
PropagationManagerlAopTest.java
ReplicatedPropagationManagerlAopTest.java
Log:
Fixed some broken UTs to use the new xml parsers, cache factories, etc.
Revision Changes Path
1.3 +3 -5 JBossCache/tests/functional/org/jboss/cache/aop/integrated/PropagationManagerlAopTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PropagationManagerlAopTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/aop/integrated/PropagationManagerlAopTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- PropagationManagerlAopTest.java 9 Apr 2006 12:33:49 -0000 1.2
+++ PropagationManagerlAopTest.java 20 Jul 2006 09:03:52 -0000 1.3
@@ -1,10 +1,10 @@
package org.jboss.cache.aop.integrated;
import junit.framework.TestCase;
-import org.jboss.cache.PropertyConfigurator;
import org.jboss.cache.aop.PojoCache;
import org.jboss.cache.aop.test.propagation.PropagationManager;
import org.jboss.cache.aop.test.propagation.impl.PropagationManagerImpl;
+import org.jboss.cache.factories.XmlConfigurationParser;
public class PropagationManagerlAopTest extends TestCase {
private PropagationManager pm_;
@@ -21,10 +21,8 @@
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
- config.configure(tree, "META-INF/local-service.xml"); // read in generic replAsync xml
- tree.setClusterName(name);
+ tree.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/local-service.xml"));
+ tree.getConfiguration().setClusterName(name);
tree.createService();
tree.startService();
return tree;
1.3 +1 -1 JBossCache/tests/functional/org/jboss/cache/aop/integrated/ReplicatedPropagationManagerlAopTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ReplicatedPropagationManagerlAopTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/aop/integrated/ReplicatedPropagationManagerlAopTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- ReplicatedPropagationManagerlAopTest.java 9 Apr 2006 12:33:49 -0000 1.2
+++ ReplicatedPropagationManagerlAopTest.java 20 Jul 2006 09:03:52 -0000 1.3
@@ -26,7 +26,7 @@
PojoCache tree = new PojoCache();
PropertyConfigurator config = new PropertyConfigurator();
config.configure(tree, "META-INF/replSync-service.xml"); // read in generic replAsync xml
- tree.setClusterName(name);
+ tree.getConfiguration().setClusterName(name);
tree.createService();
tree.startService();
return tree;
More information about the jboss-cvs-commits
mailing list