[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/replicated ...
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/replicated
AsyncReplTest.java
Log:
Partially migrated to new configurators
Revision Changes Path
1.9 +5 -6 JBossCache/tests/functional/org/jboss/cache/replicated/AsyncReplTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AsyncReplTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/replicated/AsyncReplTest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- AsyncReplTest.java 20 Jul 2006 09:03:55 -0000 1.8
+++ AsyncReplTest.java 20 Jul 2006 11:14:17 -0000 1.9
@@ -9,14 +9,14 @@
package org.jboss.cache.replicated;
+import junit.framework.Assert;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
-import junit.framework.Assert;
-import org.jboss.cache.PropertyConfigurator;
-import org.jboss.cache.TreeCache;
import org.jboss.cache.Fqn;
+import org.jboss.cache.TreeCache;
import org.jboss.cache.config.Configuration;
+import org.jboss.cache.factories.XmlConfigurationParser;
import org.jboss.cache.misc.TestingUtil;
import javax.transaction.TransactionManager;
@@ -25,7 +25,7 @@
* Unit test for replicated async TreeCache. Use locking and multiple threads to test
* concurrent access to the tree.
*
- * @version $Revision: 1.8 $
+ * @version $Revision: 1.9 $
*/
public class AsyncReplTest extends TestCase {
TreeCache cache1, cache2;
@@ -47,8 +47,7 @@
private TreeCache createCache(String name) throws Exception {
TreeCache tree=new TreeCache();
- PropertyConfigurator config=new PropertyConfigurator();
- config.configure(tree, "META-INF/replAsync-service.xml"); // read in generic replAsync xml
+ tree.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replAsync-service.xml"));
tree.getConfiguration().setClusterName(name);
tree.createService();
tree.startService();
More information about the jboss-cvs-commits
mailing list