Author: dereed
Date: 2009-06-03 15:23:35 -0400 (Wed, 03 Jun 2009)
New Revision: 8083
Modified:
core/branches/1.4.X/tests/functional/org/jboss/cache/TreeCacheFunctionalTest.java
Log:
[JBCACHE-1511] Added a test case
Modified:
core/branches/1.4.X/tests/functional/org/jboss/cache/TreeCacheFunctionalTest.java
===================================================================
---
core/branches/1.4.X/tests/functional/org/jboss/cache/TreeCacheFunctionalTest.java 2009-06-03
16:45:08 UTC (rev 8082)
+++
core/branches/1.4.X/tests/functional/org/jboss/cache/TreeCacheFunctionalTest.java 2009-06-03
19:23:35 UTC (rev 8083)
@@ -8,6 +8,7 @@
import org.jboss.cache.TreeCache;
import org.jboss.cache.lock.IsolationLevel;
import org.jboss.cache.lock.TimeoutException;
+import org.jboss.cache.marshall.RegionNameConflictException;
import org.jboss.cache.transaction.DummyTransactionManager;
import javax.transaction.NotSupportedException;
@@ -172,6 +173,18 @@
}
}
+ // JBCACHE-1511: On a LOCAL mode cache, inactivateRegion would throw a
NullPointerException
+ // The cache used for this test should be in LOCAL mode.
+ public void testLocalInactivateRegion() throws CacheException,
RegionNameConflictException {
+ try {
+ cache.setUseRegionBasedMarshalling(true);
+ cache.inactivateRegion ( "/JBCACHE-1511" );
+ }
+ catch ( NullPointerException npe ) {
+ fail("cache.inactivateRegion threw a NPE");
+ }
+ }
+
public static Test suite() {
return new TestSuite(TreeCacheFunctionalTest.class);
}