[jboss-cvs] JBossCache/tests/interop/org/jboss/cache/interop ...
Brian Stansberry
brian.stansberry at jboss.com
Tue Jul 18 12:27:04 EDT 2006
User: bstansberry
Date: 06/07/18 12:27:04
Modified: tests/interop/org/jboss/cache/interop InteropTest.java
Log:
Remove obsolete test
Revision Changes Path
1.4 +0 -44 JBossCache/tests/interop/org/jboss/cache/interop/InteropTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: InteropTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/interop/org/jboss/cache/interop/InteropTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- InteropTest.java 23 Feb 2006 03:37:59 -0000 1.3
+++ InteropTest.java 18 Jul 2006 16:27:04 -0000 1.4
@@ -12,7 +12,6 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.jboss.cache.ConfigureException;
import org.jboss.cache.PropertyConfigurator;
import org.jboss.cache.TreeCache;
import org.jboss.cache.TreeCacheMBean;
@@ -97,49 +96,6 @@
assertEquals("value", cache.get("/rbremove", "key"));
}
- /**
- * JBCACHE-443. Confirms TimeoutException and ConfigureException
- * are interoperable after they were refactored to not extend
- * NestedException
- *
- * TODO Remove this after a while once we've totally proven the point
- *
- * @throws Exception
- */
- public void testPutTE() throws Exception
- {
-
- TreeCacheMBean cache = createCache("driver");
-
- TestingUtil.blockUntilViewReceived(cache, 2, 10000);
-
- HashMap hm = new HashMap();
- hm.put("te", new TimeoutException("test", new RuntimeException()));
- ConfigureException ce = null;
- try
- {
- ce = new ConfigureException("test", new RuntimeException());
- }
- catch (Throwable t)
- {
- // Above signature not valid if cache is 123
- ce = new ConfigureException("123");
- }
- hm.put("ce", ce);
- cache.put("/TestTE", "TE", hm);
-
- stopCache("driver");
-
- cache = createCache("recipient");
-
- TestingUtil.blockUntilViewReceived(cache, 2, 10000);
-
- hm = (HashMap) cache.get("/TestTE", "TE");
- assertTrue("not null", hm != null);
- assertTrue("correct type", hm.get("te") instanceof TimeoutException);
- assertTrue("correct type", hm.get("ce") instanceof ConfigureException);
- }
-
protected TreeCacheMBean createCache(String cacheID) throws Exception
{
if (caches.get(cacheID) != null)
More information about the jboss-cvs-commits
mailing list