Author: manik.surtani(a)jboss.com
Date: 2008-03-31 11:51:54 -0400 (Mon, 31 Mar 2008)
New Revision: 5478
Modified:
core/trunk/src/test/java/org/jboss/cache/eviction/RegionManagerTest.java
Log:
Allow for no default regions to be set
Modified: core/trunk/src/test/java/org/jboss/cache/eviction/RegionManagerTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/eviction/RegionManagerTest.java 2008-03-31
15:47:52 UTC (rev 5477)
+++ core/trunk/src/test/java/org/jboss/cache/eviction/RegionManagerTest.java 2008-03-31
15:51:54 UTC (rev 5478)
@@ -88,15 +88,7 @@
regionManager.getRegion(A_B_C, true).setEvictionPolicy(config);
regionManager.getRegion(A_B, true).setEvictionPolicy(config);
- try
- {
- regionManager.getRegion(Fqn.fromString("/a"), Region.Type.EVICTION,
false);
- fail("If we don't setCache the default region, we should throw a
RTE!");
- }
- catch (Exception expected)
- {
- // This is ok. Should throw an runtime exception
- }
+ regionManager.getRegion(Fqn.fromString("/a"), Region.Type.EVICTION,
false);
}
public void testGetRegion()
Show replies by thread