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

Manik Surtani msurtani at jboss.com
Thu Jul 20 06:59:14 EDT 2006


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

  Modified:    tests/perf/org/jboss/cache 
                        ConcurrentEvictAndRemoveTest.java
  Log:
  Fixed some broken UTs to use the new xml parsers, cache factories, etc.
  
  Revision  Changes    Path
  1.4       +4 -3      JBossCache/tests/perf/org/jboss/cache/ConcurrentEvictAndRemoveTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ConcurrentEvictAndRemoveTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/ConcurrentEvictAndRemoveTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- ConcurrentEvictAndRemoveTest.java	5 Dec 2005 03:17:14 -0000	1.3
  +++ ConcurrentEvictAndRemoveTest.java	20 Jul 2006 10:59:14 -0000	1.4
  @@ -15,12 +15,13 @@
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.jboss.cache.eviction.RegionManager;
  +import org.jboss.cache.config.Configuration;
   
   import java.util.Random;
   /**
    * Local mode test for concurrent EvictionTimerTask evicting nodes and Client removing nodes from TreeCache.
    *
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    * @author <a href="mailto:uwe.lamprecht at gmx.de">Uwe Lamprecht</a> July 29 2004
    */
   public final class ConcurrentEvictAndRemoveTest extends TestCase
  @@ -48,10 +49,10 @@
       {
           super.setUp();
           cache = new TreeCache();
  -        cache.setCacheMode(TreeCache.LOCAL);
  +        cache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL);
           PropertyConfigurator config = new PropertyConfigurator();
           config.configure(cache, "META-INF/local-mru-eviction-service.xml");
  -        cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  +        cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
           cache.start();
       }
       public void tearDown() throws Exception
  
  
  



More information about the jboss-cvs-commits mailing list