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

Manik Surtani manik at jboss.org
Mon Jul 30 16:35:23 EDT 2007


  User: msurtani
  Date: 07/07/30 16:35:23

  Modified:    tests/functional/org/jboss/cache/marshall 
                        RegionManagerTest.java
  Log:
  RegionManager enhancements
  
  Revision  Changes    Path
  1.12      +34 -0     JBossCache/tests/functional/org/jboss/cache/marshall/RegionManagerTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: RegionManagerTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/marshall/RegionManagerTest.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- RegionManagerTest.java	19 Jan 2007 16:00:32 -0000	1.11
  +++ RegionManagerTest.java	30 Jul 2007 20:35:23 -0000	1.12
  @@ -182,7 +182,41 @@
         assertSame("r2 should be marshalling and active", r2, r.getAllRegions(Region.Type.MARSHALLING).get(0));
         assertSame("r3 should be marshalling and active", r3, r.getAllRegions(Region.Type.MARSHALLING).get(1));
         assertSame("r4 should be marshalling and active", r4, r.getAllRegions(Region.Type.MARSHALLING).get(2));
  +   }
  +
  +   public void testUnspecifiedRegionType()
  +   {
  +      Fqn fqn = Fqn.fromString("/a/b/c");
  +      Region region = r.getRegion(fqn, true);
  +
  +      assertNotNull(region);
  +      assertEquals(fqn, region.getFqn());
  +
  +      region = r.getRegion(fqn, Region.Type.MARSHALLING, false);
   
  +      assertNotNull(region);
  +      assertEquals(fqn, region.getFqn());
      }
   
  +   public void testPreferenceForMarshallingRegion()
  +   {
  +      Fqn fqn = Fqn.fromString("/a/b/c");
  +
  +      Region region = r.getRegion(fqn, Region.Type.MARSHALLING, false);
  +
  +      assertNotNull(region);
  +      assertEquals(Fqn.ROOT, region.getFqn());
  +
  +      region = r.getRegion(fqn, true);
  +
  +      assertNotNull(region);
  +      assertEquals(fqn, region.getFqn());
  +
  +      region = r.getRegion(fqn, Region.Type.MARSHALLING, false);
  +
  +      assertNotNull(region);
  +      assertEquals(fqn, region.getFqn());
  +   }
  +
  +
   }
  
  
  



More information about the jboss-cvs-commits mailing list