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

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/marshall 
                        AsyncReplTest.java
  Log:
  Partially migrated to new configurators
  
  Revision  Changes    Path
  1.7       +4 -5      JBossCache/tests/functional/org/jboss/cache/marshall/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/marshall/AsyncReplTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- AsyncReplTest.java	20 Jul 2006 09:03:54 -0000	1.6
  +++ AsyncReplTest.java	20 Jul 2006 11:14:17 -0000	1.7
  @@ -12,11 +12,11 @@
   import junit.framework.Test;
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
  -import org.jboss.cache.PropertyConfigurator;
  +import org.apache.commons.logging.LogFactory;
   import org.jboss.cache.TreeCache;
  +import org.jboss.cache.factories.XmlConfigurationParser;
   import org.jboss.cache.misc.TestingUtil;
   import org.jboss.cache.transaction.DummyTransactionManager;
  -import org.apache.commons.logging.LogFactory;
   
   import javax.transaction.NotSupportedException;
   import javax.transaction.SystemException;
  @@ -26,7 +26,7 @@
   /**
    * Test marshalling for async mode.
    * @author Ben Wang
  - * @version $Revision: 1.6 $
  + * @version $Revision: 1.7 $
    */
   public class AsyncReplTest extends TestCase {
      TreeCache cache1, cache2;
  @@ -61,8 +61,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);
         // Use marshaller
         tree.getConfiguration().setUseRegionBasedMarshalling(true);
  
  
  



More information about the jboss-cvs-commits mailing list