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

Manik Surtani msurtani at jboss.com
Thu Jul 20 07:14:18 EDT 2006


  User: msurtani
  Date: 06/07/20 07:14:18

  Modified:    tests/perf/org/jboss/cache/aop 
                        ReplicatedSyncMapContentionAopTest.java
  Log:
  Partially migrated to new configurators
  
  Revision  Changes    Path
  1.4       +3 -4      JBossCache/tests/perf/org/jboss/cache/aop/ReplicatedSyncMapContentionAopTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedSyncMapContentionAopTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/aop/ReplicatedSyncMapContentionAopTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- ReplicatedSyncMapContentionAopTest.java	20 Jul 2006 08:53:08 -0000	1.3
  +++ ReplicatedSyncMapContentionAopTest.java	20 Jul 2006 11:14:18 -0000	1.4
  @@ -12,8 +12,8 @@
   import junit.framework.Test;
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
  -import org.jboss.cache.PropertyConfigurator;
   import org.jboss.cache.config.Configuration;
  +import org.jboss.cache.factories.XmlConfigurationParser;
   import org.jboss.cache.lock.IsolationLevel;
   import org.jboss.cache.lock.LockStrategyFactory;
   import org.jboss.cache.lock.TimeoutException;
  @@ -34,7 +34,7 @@
   /**
    * Replicated mode performance test for PojoCache to test out contention.
    *
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    * @author<a href="mailto:bwang at jboss.org">Ben Wang</a> May 20 2003
    */
   public class ReplicatedSyncMapContentionAopTest extends TestCase
  @@ -155,8 +155,7 @@
      {
         PojoCache cache_;
         cache_ = new PojoCache();
  -      PropertyConfigurator config = new PropertyConfigurator();
  -      config.configure(cache_, "META-INF/replSync-service.xml"); // read in generic replSync xml
  +      cache_.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
         cache_.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
   //      cache_.setCacheMode(cachingMode_);
         cache_.startService();
  
  
  



More information about the jboss-cvs-commits mailing list