Author: manik.surtani(a)jboss.com
Date: 2008-07-08 07:39:04 -0400 (Tue, 08 Jul 2008)
New Revision: 6209
Modified:
core/trunk/src/main/java/org/jboss/cache/Cache.java
core/trunk/src/test/java/org/jboss/cache/api/DestroyedCacheAPITest.java
Log:
fixed broken tests
Modified: core/trunk/src/main/java/org/jboss/cache/Cache.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/Cache.java 2008-07-08 11:32:46 UTC (rev
6208)
+++ core/trunk/src/main/java/org/jboss/cache/Cache.java 2008-07-08 11:39:04 UTC (rev
6209)
@@ -296,7 +296,6 @@
* @param fqn Fqn that is contained in a region.
* @param createIfAbsent If true, will create a new associated region if not found.
* @return a MarshRegion. Null if none is found.
- * @throws UnsupportedOperationException if the region cannot be defined.
* @see Region
*/
Region getRegion(Fqn<?> fqn, boolean createIfAbsent);
Modified: core/trunk/src/test/java/org/jboss/cache/api/DestroyedCacheAPITest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/api/DestroyedCacheAPITest.java 2008-07-08
11:32:46 UTC (rev 6208)
+++ core/trunk/src/test/java/org/jboss/cache/api/DestroyedCacheAPITest.java 2008-07-08
11:39:04 UTC (rev 6209)
@@ -308,10 +308,7 @@
public void testGetRegion()
{
- assertNull(cache.getRegion(parent, false));
-
- // The javadoc mentions "UnsupportedOperationException" although
it's
- // not clear about why it would be thrown.
+ assertNotNull(cache.getRegion(parent, false)); // should end up with the root
region
assertNotNull(cache.getRegion(Fqn.ROOT, true));
}
Show replies by date