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

Manik Surtani manik at jboss.org
Mon Mar 12 15:06:43 EDT 2007


  User: msurtani
  Date: 07/03/12 15:06:43

  Modified:    tests/functional/org/jboss/cache/optimistic  CacheTest.java
  Log:
  JBCACHE-1006
  
  Revision  Changes    Path
  1.31      +26 -0     JBossCache/tests/functional/org/jboss/cache/optimistic/CacheTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/optimistic/CacheTest.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -b -r1.30 -r1.31
  --- CacheTest.java	7 Mar 2007 18:00:51 -0000	1.30
  +++ CacheTest.java	12 Mar 2007 19:06:43 -0000	1.31
  @@ -445,4 +445,30 @@
         assertEquals(1, c.getRoot().getChildrenNames().size());
   
      }
  +
  +   public void testRemoveChildAfterRemoveParent() throws Exception
  +   {
  +      c = createCache();
  +      TransactionManager tm = c.getTransactionManager();
  +      c.put(Fqn.fromString("/a/b"), "k", "v");
  +      tm.begin();
  +      c.remove(Fqn.fromString("/a"));
  +      c.remove(Fqn.fromString("/a/b"));
  +      tm.commit();
  +
  +      destroyCache(c);
  +   }
  +
  +   public void testAddChildAfterRemoveParent() throws Exception
  +   {
  +      c = createCache();
  +      TransactionManager tm = c.getTransactionManager();
  +      c.put(Fqn.fromString("/a/b"), "k", "v");
  +      tm.begin();
  +      c.remove(Fqn.fromString("/a"));
  +      c.put(Fqn.fromString("/a/b"), "k", "v");
  +      tm.commit();
  +
  +      destroyCache(c);
  +   }
   }
  
  
  



More information about the jboss-cvs-commits mailing list