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

Elias Ross genman at noderunner.net
Sun Nov 19 22:53:56 EST 2006


  User: genman  
  Date: 06/11/19 22:53:56

  Modified:    tests/functional/org/jboss/cache/interceptors 
                        EvictionInterceptorTest.java
  Log:
  JBCACHE-867, Move methods from the ProxyImpl to Node, refactor Node classes as well
  
  Revision  Changes    Path
  1.16      +3 -3      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.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- EvictionInterceptorTest.java	15 Nov 2006 23:48:32 -0000	1.15
  +++ EvictionInterceptorTest.java	20 Nov 2006 03:53:56 -0000	1.16
  @@ -304,7 +304,7 @@
   
         for (int i = 0; i < 100; i++)
         {
  -         assertTrue(node.containsKey(i));
  +         assertTrue(node.getData().containsKey(i));
            assertEquals(i, node.get(i));
         }
   
  @@ -337,7 +337,7 @@
         assertEquals(100, event.getElementDifference());
         assertNull(regionManager.getRegion(fqn.toString(), false).takeLastEventNode());
         node = cache.get(fqn.toString());
  -      assertEquals(100, node.numAttributes());
  +      assertEquals(100, node.getData().size());
   
         assertNotNull(node);
   
  @@ -409,7 +409,7 @@
         MethodCall mc = MethodCallFactory.create(MethodDeclarations.removeDataMethodLocal, null, fqn, false);
         interceptor.invoke(mc);
   
  -      assertEquals(0, cache.get(fqn).numAttributes());
  +      assertEquals(0, cache.get(fqn).getData().size());
         Region region = regionManager.getRegion(fqn.toString(), false);
         EvictedEventNode event = region.takeLastEventNode();
         assertEquals(NodeEventType.REMOVE_NODE_EVENT, event.getEventType());
  
  
  



More information about the jboss-cvs-commits mailing list