[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/aop/collection ...

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/collection  
                        ReplicatedSyncListTest.java
                        ReplicatedSyncSetTest.java
  Log:
  Fixed some broken UTs to use the new xml parsers, cache factories, etc.
  
  Revision  Changes    Path
  1.4       +1 -1      JBossCache/tests/functional/org/jboss/cache/aop/collection/ReplicatedSyncListTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedSyncListTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/aop/collection/ReplicatedSyncListTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- ReplicatedSyncListTest.java	4 May 2006 15:19:39 -0000	1.3
  +++ ReplicatedSyncListTest.java	20 Jul 2006 09:03:52 -0000	1.4
  @@ -48,7 +48,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;
  
  
  
  1.5       +9 -5      JBossCache/tests/functional/org/jboss/cache/aop/collection/ReplicatedSyncSetTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedSyncSetTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/aop/collection/ReplicatedSyncSetTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- ReplicatedSyncSetTest.java	4 May 2006 15:19:39 -0000	1.4
  +++ ReplicatedSyncSetTest.java	20 Jul 2006 09:03:52 -0000	1.5
  @@ -8,9 +8,12 @@
   import org.jboss.cache.aop.PojoCache;
   import org.jboss.cache.aop.test.Address;
   import org.jboss.cache.aop.test.Person;
  -import org.jboss.cache.PropertyConfigurator;
  +import org.jboss.cache.config.Configuration;
  +import org.jboss.cache.factories.XmlConfigurationParser;
   
  -import java.util.*;
  +import java.util.HashSet;
  +import java.util.Iterator;
  +import java.util.Set;
   
   /**
    * Test object graph handling in aop, e.g., circular reference, multiple reference, link, etc.
  @@ -46,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