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

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


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

  Modified:    tests/perf/org/jboss/cache/manualtests 
                        TcpCacheLoaderTest.java
  Log:
  Changed CacheImpl ctor to be protected, and changed cache factories accordingly
  
  Revision  Changes    Path
  1.5       +2 -1      JBossCache/tests/perf/org/jboss/cache/manualtests/TcpCacheLoaderTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TcpCacheLoaderTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/manualtests/TcpCacheLoaderTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- TcpCacheLoaderTest.java	30 Dec 2006 17:50:04 -0000	1.4
  +++ TcpCacheLoaderTest.java	11 Jan 2007 13:49:23 -0000	1.5
  @@ -3,6 +3,7 @@
   import junit.textui.TestRunner;
   import org.jboss.cache.CacheException;
   import org.jboss.cache.CacheImpl;
  +import org.jboss.cache.DefaultCacheFactory;
   import org.jboss.cache.config.CacheLoaderConfig;
   import org.jboss.cache.loader.AbstractCacheLoaderTestBase;
   import org.jboss.cache.loader.JDBCCacheLoaderPerfTest;
  @@ -16,7 +17,7 @@
   
      protected void setUp() throws Exception
      {
  -      cache = new CacheImpl();
  +      cache = (CacheImpl) DefaultCacheFactory.getInstance().createCache(false);
         CacheLoaderConfig clc = new CacheLoaderConfig();
         TcpDelegatingCacheLoaderConfig cfg = new TcpDelegatingCacheLoaderConfig();
         cfg.setHost(serverHost);
  
  
  



More information about the jboss-cvs-commits mailing list