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

Manik Surtani msurtani at jboss.com
Thu Jan 11 08:49:07 EST 2007


  User: msurtani
  Date: 07/01/11 08:49:07

  Modified:    tests/perf/org/jboss/cache/loader   CacheLoaderPerfTest.java
                        JDBCCacheLoaderPerfTest.java
  Log:
  Changed CacheImpl ctor to be protected, and changed cache factories accordingly
  
  Revision  Changes    Path
  1.11      +2 -1      JBossCache/tests/perf/org/jboss/cache/loader/CacheLoaderPerfTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheLoaderPerfTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/loader/CacheLoaderPerfTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- CacheLoaderPerfTest.java	30 Dec 2006 17:50:00 -0000	1.10
  +++ CacheLoaderPerfTest.java	11 Jan 2007 13:49:07 -0000	1.11
  @@ -8,6 +8,7 @@
   
   import junit.textui.TestRunner;
   import org.jboss.cache.CacheImpl;
  +import org.jboss.cache.DefaultCacheFactory;
   import org.jboss.cache.Fqn;
   import org.jboss.cache.misc.TestingUtil;
   
  @@ -34,7 +35,7 @@
      {
         if (cache != null) tearDown();
         String tmpLocation = System.getProperty("java.io.tmpdir", ".") + File.separator + "JBossCache-CacheLoaderPerfTest";
  -      cache = new CacheImpl();
  +      cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
         cache.getConfiguration().setCacheLoaderConfig(getSingleCacheLoaderConfig("", "org.jboss.cache.loader.FileCacheLoader", "location=" + tmpLocation, false, false, false));
         File dir = new File(tmpLocation);
         if (!dir.exists()) dir.mkdirs();
  
  
  
  1.11      +2 -1      JBossCache/tests/perf/org/jboss/cache/loader/JDBCCacheLoaderPerfTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: JDBCCacheLoaderPerfTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/loader/JDBCCacheLoaderPerfTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- JDBCCacheLoaderPerfTest.java	30 Dec 2006 17:50:00 -0000	1.10
  +++ JDBCCacheLoaderPerfTest.java	11 Jan 2007 13:49:07 -0000	1.11
  @@ -8,6 +8,7 @@
   
   import junit.textui.TestRunner;
   import org.jboss.cache.CacheImpl;
  +import org.jboss.cache.DefaultCacheFactory;
   import org.jboss.cache.Fqn;
   import org.jboss.cache.misc.TestingUtil;
   
  @@ -40,7 +41,7 @@
      protected void setUp() throws Exception
      {
         if (cache != null) tearDown();
  -      cache = new CacheImpl();
  +      cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
         cache.getConfiguration().setCacheMode("local");
         cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
         configureCache();
  
  
  



More information about the jboss-cvs-commits mailing list