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

Manik Surtani msurtani at jboss.com
Tue Jan 2 08:30:29 EST 2007


  User: msurtani
  Date: 07/01/02 08:30:29

  Modified:    tests/functional/org/jboss/cache/loader 
                        CacheLoaderTestsBase.java
  Log:
  - updated tests, javadocs
  
  Revision  Changes    Path
  1.40      +5 -5      JBossCache/tests/functional/org/jboss/cache/loader/CacheLoaderTestsBase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheLoaderTestsBase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/loader/CacheLoaderTestsBase.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -b -r1.39 -r1.40
  --- CacheLoaderTestsBase.java	30 Dec 2006 17:49:57 -0000	1.39
  +++ CacheLoaderTestsBase.java	2 Jan 2007 13:30:29 -0000	1.40
  @@ -29,7 +29,7 @@
    * Commons tests for all CacheLoaders
    *
    * @author Bela Ban
  - * @version $Id: CacheLoaderTestsBase.java,v 1.39 2006/12/30 17:49:57 msurtani Exp $
  + * @version $Id: CacheLoaderTestsBase.java,v 1.40 2007/01/02 13:30:29 msurtani Exp $
    */
   abstract public class CacheLoaderTestsBase extends AbstractCacheLoaderTestBase
   {
  @@ -223,7 +223,7 @@
         assertTrue(cache.getCacheLoader().getChildrenNames(Fqn.ROOT).contains("b"));
   
         // now move
  -      cache.move(a, b);
  +      cache.move(b, a);
   
         addDelay();
   
  @@ -255,7 +255,7 @@
         assertEquals(valueC, cache.getCacheLoader().get(b_c).get(key));
   
         // now move
  -      cache.move(a, b);
  +      cache.move(b, a);
   
         addDelay();
   
  @@ -526,7 +526,7 @@
               cache.put("/a/b/c", null);
            }
            Set children = cache.getChildrenNames((Fqn) null);
  -         assertNull(children);
  +         assertTrue(children.isEmpty());
         }
         catch (Exception e)
         {
  @@ -1022,7 +1022,7 @@
         assertNull("Loader does not have node /one/two/three", loader.get(Fqn.fromString("/one/two/three")));
         assertEquals("Cache does not have node /one/two/three", null, cache.getKeys("/one/two/three"));
         Set children = cache.getChildrenNames("/one");
  -      assertEquals("Cache has no children under /one", null, children);
  +      assertEquals("Cache has no children under /one", 0, children.size());
         children = loader.getChildrenNames(Fqn.fromString("/one"));
         assertEquals("Loader has no children under /one", null, children);
      }
  
  
  



More information about the jboss-cvs-commits mailing list