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

Ben Wang bwang at jboss.com
Tue Jan 2 08:31:12 EST 2007


  User: bwang   
  Date: 07/01/02 08:31:12

  Modified:    tests/functional/org/jboss/cache/api  NodeAPITest.java
  Log:
  Added test case.
  
  Revision  Changes    Path
  1.9       +4 -4      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.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- NodeAPITest.java	2 Jan 2007 13:26:38 -0000	1.8
  +++ NodeAPITest.java	2 Jan 2007 13:31:12 -0000	1.9
  @@ -145,15 +145,15 @@
      public void testGetChildrenUnderTx() throws Exception
      {
         tm.begin();
  -      Node nodeA = rootNode.addChild(A);
  -      Node nodeB = nodeA.addChild(B);
  -      Node nodeC = nodeA.addChild(C);
  +      cache.put(new Fqn(A, B), "1", "1");
  +      cache.put(new Fqn(A, C), "2", "2");
   
         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());
  +      assertEquals("Number of child", 2,
  +              org.jboss.cache.pojo.util.CacheApiUtil.getNodeChildren(cache, A).size());
         tm.commit();
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list