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

Manik Surtani msurtani at jboss.com
Fri Aug 25 07:59:03 EDT 2006


  User: msurtani
  Date: 06/08/25 07:59:03

  Modified:    tests/functional/org/jboss/cache/interceptors 
                        EvictionInterceptorTest.java
  Log:
  fixed 
  - eviction interceptor
  - removed putFailFast()
  - notifications with null data
  
  Revision  Changes    Path
  1.6       +5 -4      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.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- EvictionInterceptorTest.java	17 Aug 2006 21:57:58 -0000	1.5
  +++ EvictionInterceptorTest.java	25 Aug 2006 11:59:03 -0000	1.6
  @@ -89,6 +89,7 @@
   
         CallInterceptor ci = new CallInterceptor();
         ci.setCache(cache.getCacheSPI());
  +      ci.setTreeCacheInstance(cache);
         ei.setNext(ci);
   
         cache.getConfiguration().setCacheMode("LOCAL");
  @@ -394,8 +395,8 @@
         assertEquals("value", cache.get(fqn, key));
         assertNull(region.takeLastEventNode());
   
  -      mc = MethodCallFactory.create(MethodDeclarations.putFailFastKeyValueMethodLocal,
  -            new Object[]{null, fqn, key, value, Boolean.FALSE, new Long(1000)});
  +      mc = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal,
  +            new Object[]{null, fqn, key, value, Boolean.FALSE});
         interceptor.invoke(mc);
         assertEquals("value", cache.get(fqn, key));
         event = region.takeLastEventNode();
  @@ -516,8 +517,8 @@
   
         Object key = "key";
         Object value = "value";
  -      mc = MethodCallFactory.create(MethodDeclarations.putFailFastKeyValueMethodLocal,
  -            new Object[]{null, fqn, key, value, Boolean.FALSE, new Long(1000)});
  +      mc = MethodCallFactory.create(MethodDeclarations.putKeyValMethodLocal,
  +            new Object[]{null, fqn, key, value, Boolean.FALSE});
         interceptor.invoke(mc);
         assertEquals("value", cache.get(fqn, key));
         event = region.takeLastEventNode();
  
  
  



More information about the jboss-cvs-commits mailing list