[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/interceptors ...

Manik Surtani msurtani at jboss.com
Tue Jan 2 13:26:07 EST 2007


  User: msurtani
  Date: 07/01/02 13:26:07

  Modified:    tests/functional/org/jboss/cache/interceptors 
                        InterceptorCacheReferenceTest.java
  Log:
  Cleaned up cache factory
  
  Revision  Changes    Path
  1.3       +31 -31    JBossCache/tests/functional/org/jboss/cache/interceptors/InterceptorCacheReferenceTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: InterceptorCacheReferenceTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/interceptors/InterceptorCacheReferenceTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- InterceptorCacheReferenceTest.java	31 Oct 2006 06:57:29 -0000	1.2
  +++ InterceptorCacheReferenceTest.java	2 Jan 2007 18:26:07 -0000	1.3
  @@ -6,11 +6,11 @@
    */
   package org.jboss.cache.interceptors;
   
  +import junit.framework.TestCase;
   import org.jboss.cache.Cache;
   import org.jboss.cache.CacheSPI;
   import org.jboss.cache.config.Configuration;
   import org.jboss.cache.factories.DefaultCacheFactory;
  -import junit.framework.TestCase;
   
   /**
    * Tests that all interceptors in a given interceptor chain have the same cache instance.
  @@ -23,7 +23,7 @@
       {
           Configuration c = new Configuration();
           c.setNodeLockingScheme(Configuration.NodeLockingScheme.PESSIMISTIC);
  -        Cache cache = DefaultCacheFactory.createCache(c);
  +      Cache cache = DefaultCacheFactory.getInstance().createCache(c);
   
           assertInterceptorsHaveSameCache((CacheSPI) cache);
   
  @@ -34,7 +34,7 @@
       {
           Configuration c = new Configuration();
           c.setNodeLockingScheme(Configuration.NodeLockingScheme.OPTIMISTIC);
  -        Cache cache = DefaultCacheFactory.createCache(c);
  +      Cache cache = DefaultCacheFactory.getInstance().createCache(c);
   
           assertInterceptorsHaveSameCache((CacheSPI) cache);
   
  
  
  



More information about the jboss-cvs-commits mailing list