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

Manik Surtani msurtani at jboss.com
Thu Jul 20 05:03:53 EDT 2006


  User: msurtani
  Date: 06/07/20 05:03:53

  Modified:    tests/functional/org/jboss/cache/interceptors 
                        EvictionInterceptorTest.java
  Log:
  Fixed some broken UTs to use the new xml parsers, cache factories, etc.
  
  Revision  Changes    Path
  1.4       +9 -9      JBossCache/tests/functional/org/jboss/cache/interceptors/EvictionInterceptorTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: EvictionInterceptorTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/interceptors/EvictionInterceptorTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- EvictionInterceptorTest.java	21 Jun 2006 11:10:59 -0000	1.3
  +++ EvictionInterceptorTest.java	20 Jul 2006 09:03:53 -0000	1.4
  @@ -53,8 +53,8 @@
         regionManager.createRegion("/d/e", new DummyEvictionPolicy(), config);
   
         cache = new TreeCache();
  -      cache.setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  -      cache.setIsolationLevel(IsolationLevel.SERIALIZABLE);
  +      cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
  +      cache.getConfiguration().setIsolationLevel(IsolationLevel.SERIALIZABLE);
   
   /*CacheMgmtInterceptor
   TxInterceptor
  @@ -68,30 +68,30 @@
         // make the interceptor chain (separate from the TreeCache object.
   
         interceptor = new CacheMgmtInterceptor();
  -      interceptor.setCache(cache);
  +      interceptor.setCache(cache.getSPI());
   
         TxInterceptor ti = new TxInterceptor();
  -      ti.setCache(cache);
  +      ti.setCache(cache.getSPI());
         interceptor.setNext(ti);
   
         UnlockInterceptor ui = new UnlockInterceptor();
  -      ui.setCache(cache);
  +      ui.setCache(cache.getSPI());
         ti.setNext(ui);
   
         PessimisticLockInterceptor pli = new PessimisticLockInterceptor();
  -      pli.setCache(cache);
  +      pli.setCache(cache.getSPI());
         ui.setNext(pli);
   
         EvictionInterceptor ei = new EvictionInterceptor();
  -      ei.setCache(cache);
  +      ei.setCache(cache.getSPI());
         ei.setRegionManager(regionManager);
         pli.setNext(ei);
   
         CallInterceptor ci = new CallInterceptor();
  -      ci.setCache(cache);
  +      ci.setCache(cache.getSPI());
         ei.setNext(ci);
   
  -      cache.setCacheMode("LOCAL");
  +      cache.getConfiguration().setCacheMode("LOCAL");
         cache.startService();
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list