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

Vladmir Blagojevic vladimir.blagojevic at jboss.com
Wed Jan 10 11:44:15 EST 2007


  User: vblagojevic
  Date: 07/01/10 11:44:15

  Modified:    tests/perf/org/jboss/cache   ReplicatedSyncPerfTest.java
                        ReplicatedSyncMapPerfTest.java
  Log:
  JBCACHE-840 (work in progress)
  
  Revision  Changes    Path
  1.7       +4 -2      JBossCache/tests/perf/org/jboss/cache/ReplicatedSyncPerfTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedSyncPerfTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/ReplicatedSyncPerfTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- ReplicatedSyncPerfTest.java	31 Dec 2006 02:08:40 -0000	1.6
  +++ ReplicatedSyncPerfTest.java	10 Jan 2007 16:44:14 -0000	1.7
  @@ -13,6 +13,8 @@
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
   import org.jboss.cache.config.Configuration;
  +import org.jboss.cache.config.Configuration.CacheMode;
  +import org.jboss.cache.factories.UnitTestCacheFactory;
   import org.jboss.cache.factories.XmlConfigurationParser;
   import org.jboss.cache.lock.IsolationLevel;
   import org.jboss.cache.transaction.DummyTransactionManager;
  @@ -28,7 +30,7 @@
    *
    * @author Bela Ban
    * @author <a href="mailto:bwang at jboss.org">Ben Wang</a> May 20 2003
  - * @version $Revision: 1.6 $
  + * @version $Revision: 1.7 $
    */
   public class ReplicatedSyncPerfTest extends TestCase
   {
  @@ -66,7 +68,7 @@
      CacheImpl createCache(IsolationLevel level) throws Exception
      {
         CacheImpl cache = new CacheImpl();
  -      cache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
  +      cache.setConfiguration(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC));
         cache.getConfiguration().setIsolationLevel(level);
         cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
         cache.getConfiguration().setSyncCommitPhase(true);
  
  
  
  1.8       +4 -2      JBossCache/tests/perf/org/jboss/cache/ReplicatedSyncMapPerfTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedSyncMapPerfTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/ReplicatedSyncMapPerfTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- ReplicatedSyncMapPerfTest.java	31 Dec 2006 02:08:40 -0000	1.7
  +++ ReplicatedSyncMapPerfTest.java	10 Jan 2007 16:44:15 -0000	1.8
  @@ -13,6 +13,8 @@
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
   import org.jboss.cache.config.Configuration;
  +import org.jboss.cache.config.Configuration.CacheMode;
  +import org.jboss.cache.factories.UnitTestCacheFactory;
   import org.jboss.cache.factories.XmlConfigurationParser;
   import org.jboss.cache.lock.IsolationLevel;
   import org.jboss.cache.lock.LockStrategyFactory;
  @@ -32,7 +34,7 @@
    * Local mode performance test for CacheImpl.
    *
    * @author <a href="mailto:bwang at jboss.org">Ben Wang</a> May 20 2003
  - * @version $Revision: 1.7 $
  + * @version $Revision: 1.8 $
    */
   public class ReplicatedSyncMapPerfTest extends TestCase
   {
  @@ -142,7 +144,7 @@
      {
         cachingMode_ = caching_mode;
         cache_ = new CacheImpl();
  -      cache_.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
  +      cache_.setConfiguration(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_SYNC));
         cache_.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
         cache_.start();
   //		org.jgroups.log.Trace.init();
  
  
  



More information about the jboss-cvs-commits mailing list