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

Manik Surtani msurtani at jboss.com
Thu Dec 21 22:53:30 EST 2006


  User: msurtani
  Date: 06/12/21 22:53:30

  Modified:    tests/functional/org/jboss/cache/api   NodeMoveAPITest.java
                        NodeAPITest.java
  Log:
  fixed breakages
  
  Revision  Changes    Path
  1.14      +10 -10    JBossCache/tests/functional/org/jboss/cache/api/NodeMoveAPITest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: NodeMoveAPITest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/NodeMoveAPITest.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- NodeMoveAPITest.java	29 Nov 2006 04:16:13 -0000	1.13
  +++ NodeMoveAPITest.java	22 Dec 2006 03:53:30 -0000	1.14
  @@ -43,7 +43,7 @@
         cache.start();
         rootNode = cache.getRoot();
         tm = cache.getTransactionManager();
  -      treeCache = ((TreeCacheProxyImpl)cache).treeCache;
  +      treeCache = ((TreeCacheProxyImpl) cache).treeCache;
      }
   
      protected void tearDown()
  @@ -395,7 +395,7 @@
   
         System.out.println("LOCKS: " + treeCache.printLockInfo());
   
  -      assertEquals("nodeC should have a RL, nodeA should have a RL, nodeB should have a WL, nodeD should have a WL", 4, treeCache.getNumberOfLocksHeld());
  +      assertEquals("ROOT should have a RL, nodeC should have a RL, nodeA should have a RL, nodeB should have a WL, nodeD should have a WL", 5, treeCache.getNumberOfLocksHeld());
   
   
         tm.commit();
  @@ -416,7 +416,7 @@
   
         System.out.println("LOCKS: " + treeCache.printLockInfo());
   
  -      assertEquals("nodeC should have a RL, nodeA should have a RL, nodeB should have a WL", 3, treeCache.getNumberOfLocksHeld());
  +      assertEquals("ROOT should have a RL, nodeC should have a RL, nodeA should have a RL, nodeB should have a WL", 4, treeCache.getNumberOfLocksHeld());
   
   
         tm.commit();
  
  
  
  1.6       +3 -3      JBossCache/tests/functional/org/jboss/cache/api/NodeAPITest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: NodeAPITest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/NodeAPITest.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- NodeAPITest.java	20 Nov 2006 03:53:56 -0000	1.5
  +++ NodeAPITest.java	22 Dec 2006 03:53:30 -0000	1.6
  @@ -96,13 +96,13 @@
         Node nodeC = nodeB.addChild(C);
   
         assertEquals(3, cache.getNumberOfNodes());
  -      assertEquals(3, treeCache.getNumberOfLocksHeld());
  +      assertEquals(4, treeCache.getNumberOfLocksHeld());
         tm.commit();
   
         tm.begin();
         assertEquals(0, treeCache.getNumberOfLocksHeld());
         nodeC.put("key", "value");
  -      assertEquals(3, treeCache.getNumberOfLocksHeld());
  +      assertEquals(4, treeCache.getNumberOfLocksHeld());
         tm.commit();
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list