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

Manik Surtani msurtani at jboss.com
Thu Jul 20 07:48:26 EDT 2006


  User: msurtani
  Date: 06/07/20 07:48:26

  Modified:    tests/functional/org/jboss/cache/mgmt  TxTest.java
  Log:
  migrated to new configurators
  
  Revision  Changes    Path
  1.5       +3 -4      JBossCache/tests/functional/org/jboss/cache/mgmt/TxTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TxTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/TxTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- TxTest.java	20 Jul 2006 09:03:54 -0000	1.4
  +++ TxTest.java	20 Jul 2006 11:48:26 -0000	1.5
  @@ -4,9 +4,9 @@
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
   import org.jboss.cache.Fqn;
  -import org.jboss.cache.PropertyConfigurator;
   import org.jboss.cache.TreeCache;
   import org.jboss.cache.config.Configuration;
  +import org.jboss.cache.factories.XmlConfigurationParser;
   import org.jboss.cache.interceptors.TxInterceptor;
   
   import javax.transaction.TransactionManager;
  @@ -16,7 +16,7 @@
   /**
    * Simple functional tests for TxInterceptor statistics
    * @author Jerry Gauthier
  - * @version $Id: TxTest.java,v 1.4 2006/07/20 09:03:54 msurtani Exp $
  + * @version $Id: TxTest.java,v 1.5 2006/07/20 11:48:26 msurtani Exp $
    */
   public class TxTest extends TestCase
   {
  @@ -207,8 +207,7 @@
      private TreeCache createCache(String clusterName) throws Exception
      {
         TreeCache cache = new TreeCache();
  -      PropertyConfigurator config=new PropertyConfigurator();
  -      config.configure(cache, "META-INF/replSync-service.xml");
  +      cache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
         cache.getConfiguration().setUseRegionBasedMarshalling(false);
         cache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
         cache.getConfiguration().setUseInterceptorMbeans(true);
  
  
  



More information about the jboss-cvs-commits mailing list