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

Ben Wang bwang at jboss.com
Tue Jan 2 08:26:38 EST 2007


  User: bwang   
  Date: 07/01/02 08:26:38

  Modified:    tests/functional/org/jboss/cache/api  NodeAPITest.java
  Log:
  Added test case.
  
  Revision  Changes    Path
  1.8       +15 -0     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.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- NodeAPITest.java	30 Dec 2006 17:49:53 -0000	1.7
  +++ NodeAPITest.java	2 Jan 2007 13:26:38 -0000	1.8
  @@ -142,6 +142,21 @@
         }
      }
   
  +   public void testGetChildrenUnderTx() throws Exception
  +   {
  +      tm.begin();
  +      Node nodeA = rootNode.addChild(A);
  +      Node nodeB = nodeA.addChild(B);
  +      Node nodeC = nodeA.addChild(C);
  +
  +      assertEquals(3, cache.getNumberOfNodes());
  +      assertEquals(4, cache.getNumberOfLocksHeld());
  +
  +      assertEquals("Number of child", 2, nodeA.getChildren().size());
  +      assertEquals("Number of child", 2, cache.getRoot().getChild(A).getChildren().size());
  +      tm.commit();
  +   }
  +
      public void testGetChildAPI()
      {
         // creates a node with fqn /a/b/c
  
  
  



More information about the jboss-cvs-commits mailing list