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

Vladmir Blagojevic vladimir.blagojevic at jboss.com
Wed Jan 10 11:58:42 EST 2007


  User: vblagojevic
  Date: 07/01/10 11:58:42

  Modified:    tests/perf/org/jboss/cache   ReplicatedAsyncMapPerfTest.java
                        ReplicatedAsyncPerfTest.java
  Log:
  JBCACHE-840 (work in progress)
  
  Revision  Changes    Path
  1.9       +4 -2      JBossCache/tests/perf/org/jboss/cache/ReplicatedAsyncMapPerfTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedAsyncMapPerfTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/ReplicatedAsyncMapPerfTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- ReplicatedAsyncMapPerfTest.java	31 Dec 2006 02:08:40 -0000	1.8
  +++ ReplicatedAsyncMapPerfTest.java	10 Jan 2007 16:58:42 -0000	1.9
  @@ -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.transaction.DummyTransactionManager;
   
  @@ -30,7 +32,7 @@
    * Local mode performance test for CacheImpl.
    *
    * @author <a href="mailto:bwang at jboss.org">Ben Wang</a> May 20 2003
  - * @version $Revision: 1.8 $
  + * @version $Revision: 1.9 $
    */
   public class ReplicatedAsyncMapPerfTest extends TestCase
   {
  @@ -138,7 +140,7 @@
      {
         cachingMode_ = caching_mode;
         cache_ = new CacheImpl();
  -      cache_.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replAsync-service.xml")); // read in generic replAsync xml
  +      cache_.setConfiguration(UnitTestCacheFactory.createConfiguration(CacheMode.REPL_ASYNC)); // read in generic replAsync xml
         cache_.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
         cache_.start();
      }
  
  
  
  1.7       +4 -2      JBossCache/tests/perf/org/jboss/cache/ReplicatedAsyncPerfTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedAsyncPerfTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/ReplicatedAsyncPerfTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- ReplicatedAsyncPerfTest.java	31 Dec 2006 02:08:40 -0000	1.6
  +++ ReplicatedAsyncPerfTest.java	10 Jan 2007 16:58:42 -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;
  @@ -29,7 +31,7 @@
    * Replicated asynchronous mode performance test for transactional CacheImpl
    *
    * @author <a href="mailto:bwang at jboss.org">Ben Wang</a> May 20 2003
  - * @version $Revision: 1.6 $
  + * @version $Revision: 1.7 $
    */
   public class ReplicatedAsyncPerfTest extends TestCase
   {
  @@ -93,7 +95,7 @@
      {
         CacheImpl cache = new CacheImpl();
         XmlConfigurationParser parser = new XmlConfigurationParser();
  -      Configuration c = parser.parseFile("META-INF/replAsync-service.xml"); // read in generic replAsync xml
  +      Configuration c = UnitTestCacheFactory.createConfiguration(CacheMode.REPL_ASYNC);
         cache.setConfiguration(c);
         c.setIsolationLevel(level);
         return cache;
  
  
  



More information about the jboss-cvs-commits mailing list