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

Ben Wang bwang at jboss.com
Tue Oct 31 01:57:28 EST 2006


  User: bwang   
  Date: 06/10/31 01:57:28

  Modified:    tests/functional/org/jboss/cache/notifications  
                        CacheListenerTest.java RemoteCacheListenerTest.java
  Log:
  Refactored the DefaultCacheFactory to use the static create methods.
  
  Revision  Changes    Path
  1.8       +1 -1      JBossCache/tests/functional/org/jboss/cache/notifications/CacheListenerTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheListenerTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/notifications/CacheListenerTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- CacheListenerTest.java	30 Oct 2006 07:50:59 -0000	1.7
  +++ CacheListenerTest.java	31 Oct 2006 06:57:28 -0000	1.8
  @@ -54,7 +54,7 @@
         c.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
         if (optLocking) c.setNodeLockingScheme(Configuration.NodeLockingScheme.OPTIMISTIC);
         c.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  -      cache = new DefaultCacheFactory().createCache(c);
  +      cache = DefaultCacheFactory.createCache(c);
         tm = cache.getTransactionManager();
         eventLog.events.clear();
         cache.addCacheListener(eventLog);
  
  
  
  1.2       +2 -2      JBossCache/tests/functional/org/jboss/cache/notifications/RemoteCacheListenerTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: RemoteCacheListenerTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/notifications/RemoteCacheListenerTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- RemoteCacheListenerTest.java	30 Oct 2006 08:10:06 -0000	1.1
  +++ RemoteCacheListenerTest.java	31 Oct 2006 06:57:28 -0000	1.2
  @@ -68,9 +68,9 @@
         c.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
         if (optLocking) c.setNodeLockingScheme(Configuration.NodeLockingScheme.OPTIMISTIC);
         c.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  -      cache = new DefaultCacheFactory().createCache(c);
  +      cache = DefaultCacheFactory.createCache(c);
   
  -      cache1 = new DefaultCacheFactory().createCache(c);
  +      cache1 = DefaultCacheFactory.createCache(c);
         tm = cache1.getTransactionManager();
         eventLog.events.clear();
         cache1.addCacheListener(eventLog);
  
  
  



More information about the jboss-cvs-commits mailing list