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

Manik Surtani msurtani at jboss.com
Thu Jul 20 04:53:08 EDT 2006


  User: msurtani
  Date: 06/07/20 04:53:08

  Modified:    tests/perf/org/jboss/cache/aop 
                        ReplicatedSyncMapContentionAopTest.java
  Log:
  Fixed some broken UTs to use the new xml parsers, cache factories, etc.
  
  Revision  Changes    Path
  1.3       +10 -7     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.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- ReplicatedSyncMapContentionAopTest.java	9 Apr 2006 12:33:50 -0000	1.2
  +++ ReplicatedSyncMapContentionAopTest.java	20 Jul 2006 08:53:08 -0000	1.3
  @@ -13,12 +13,11 @@
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
   import org.jboss.cache.PropertyConfigurator;
  -import org.jboss.cache.TreeCache;
  -import org.jboss.cache.aop.PojoCache;
  +import org.jboss.cache.config.Configuration;
   import org.jboss.cache.lock.IsolationLevel;
   import org.jboss.cache.lock.LockStrategyFactory;
  -import org.jboss.cache.lock.UpgradeException;
   import org.jboss.cache.lock.TimeoutException;
  +import org.jboss.cache.lock.UpgradeException;
   import org.jboss.cache.transaction.DummyTransactionManager;
   
   import javax.naming.Context;
  @@ -26,18 +25,22 @@
   import javax.transaction.UserTransaction;
   import java.text.DecimalFormat;
   import java.text.FieldPosition;
  -import java.util.*;
  +import java.util.ArrayList;
  +import java.util.HashMap;
  +import java.util.List;
  +import java.util.Map;
  +import java.util.Properties;
   
   /**
    * Replicated mode performance test for PojoCache to test out contention.
    *
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    * @author<a href="mailto:bwang at jboss.org">Ben Wang</a> May 20 2003
    */
   public class ReplicatedSyncMapContentionAopTest extends TestCase
   {
      PojoCache cache1_, cache2_;
  -   int cachingMode_ = TreeCache.REPL_ASYNC;
  +   Configuration.CacheMode cachingMode_ = Configuration.CacheMode.REPL_ASYNC;
      final static Properties p_;
   //   final static Log log_=LogFactory.getLog(LocalPerfAopTest.class);
      String oldFactory_ = null;
  @@ -154,7 +157,7 @@
         cache_ = new PojoCache();
         PropertyConfigurator config = new PropertyConfigurator();
         config.configure(cache_, "META-INF/replSync-service.xml"); // read in generic replSync xml
  -      cache_.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  +      cache_.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
   //      cache_.setCacheMode(cachingMode_);
         cache_.startService();
         return cache_;
  
  
  



More information about the jboss-cvs-commits mailing list