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

Manik Surtani msurtani at jboss.com
Tue Oct 10 10:25:25 EDT 2006


  User: msurtani
  Date: 06/10/10 10:25:25

  Modified:    tests/functional/org/jboss/cache/api  CacheAPITest.java
  Log:
  added one more unit test
  
  Revision  Changes    Path
  1.4       +15 -1     JBossCache/tests/functional/org/jboss/cache/api/CacheAPITest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheAPITest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/api/CacheAPITest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- CacheAPITest.java	10 Oct 2006 13:51:42 -0000	1.3
  +++ CacheAPITest.java	10 Oct 2006 14:25:25 -0000	1.4
  @@ -284,7 +284,7 @@
      /**
       * Again, see org.jboss.cache for more extensive tests on Regions.  This just tests the getRegion API on cache.
       */
  -   public void testParentRegion()
  +   public void testParentRegion1()
      {
         Region rootRegion = cache.getRegion(Fqn.ROOT, true);
         assertNotNull(rootRegion);  // guaranteed never to return null if createIfAbsent is true.
  @@ -299,6 +299,20 @@
      /**
       * Again, see org.jboss.cache for more extensive tests on Regions.  This just tests the getRegion API on cache.
       */
  +   public void testParentRegion2()
  +   {
  +      Region rootRegion = cache.getRegion(Fqn.ROOT, true);
  +      Region parentRegion = cache.getRegion(Fqn.fromString("/parent"), true);
  +      assertNotSame("parentRegion should be a new region in its own right", rootRegion, parentRegion);
  +
  +      Region childRegion = cache.getRegion(Fqn.fromString("/parent/region"), false);
  +      assertSame("Expecting the same region as parentRegion", childRegion, parentRegion);
  +   }
  +
  +
  +   /**
  +    * Again, see org.jboss.cache for more extensive tests on Regions.  This just tests the getRegion API on cache.
  +    */
      public void testNullRegion()
      {
         Region myRegion = cache.getRegion(Fqn.fromString("/myregion"), true);
  
  
  



More information about the jboss-cvs-commits mailing list