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

Manik Surtani msurtani at jboss.com
Fri Jan 5 03:58:37 EST 2007


  User: msurtani
  Date: 07/01/05 03:58:37

  Modified:    tests/functional/org/jboss/cache/api  CacheSPITest.java
  Log:
  - Improved javadocs
  - allow for deep remove and get direct
  
  Revision  Changes    Path
  1.6       +5 -18     JBossCache/tests/functional/org/jboss/cache/api/CacheSPITest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheSPITest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/CacheSPITest.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- CacheSPITest.java	4 Jan 2007 14:36:00 -0000	1.5
  +++ CacheSPITest.java	5 Jan 2007 08:58:37 -0000	1.6
  @@ -115,26 +115,13 @@
         cache1.put(A_B, "k", "v");
   
         nodeA = cache1.getRoot().getChildDirect(A); // should work
  -      try
  -      {
  -         nodeB = cache1.getRoot().getChildDirect(A_B); // should fail
  -         fail("Should have failed");
  -      }
  -      catch (UnsupportedOperationException e)
  -      {
  -         // expected
  -      }
  +      nodeB = cache1.getRoot().getChildDirect(A_B); // should work
  +
  +      assertEquals(A_B, nodeB.getFqn());
   
         nodeB = nodeA.getChildDirect(B); // should work
  -      try
  -      {
  -         cache1.getRoot().removeChildDirect(A_B); // should fail
  -         fail("Should have failed");
  -      }
  -      catch (UnsupportedOperationException e)
  -      {
  -         // expected
  -      }
  +      assertEquals(A_B, nodeB.getFqn());
  +      cache1.getRoot().removeChildDirect(A_B); // should work
   
         nodeA.removeChildDirect(B); // should work
         cache1.getRoot().removeChildDirect(A); // should work
  
  
  



More information about the jboss-cvs-commits mailing list