Author: manik.surtani(a)jboss.com
Date: 2008-06-06 04:53:21 -0400 (Fri, 06 Jun 2008)
New Revision: 5961
Modified:
core/trunk/src/test/java/org/jboss/cache/api/CacheAPITest.java
core/trunk/src/test/java/org/jboss/cache/api/DestroyedCacheAPITest.java
Log:
Patched tests
Modified: core/trunk/src/test/java/org/jboss/cache/api/CacheAPITest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/api/CacheAPITest.java 2008-06-05 10:53:15 UTC
(rev 5960)
+++ core/trunk/src/test/java/org/jboss/cache/api/CacheAPITest.java 2008-06-06 08:53:21 UTC
(rev 5961)
@@ -113,43 +113,6 @@
}
/**
- * Test that fqn-specific application of cache listeners has not been implemented and
will not be implemented
- * in 2.0.0. It is a feature for 2.1.0 but the interface needed to be in place now.
- */
- public void testFqnBasedCacheListeners()
- {
- try
- {
- cache.getCacheListeners(Fqn.ROOT);
- fail("Fqn-based cache listener operation should throw an exception");
- }
- catch (Exception e)
- {
- // expected
- }
-
- try
- {
- cache.addCacheListener(Fqn.ROOT, new Listener());
- fail("Fqn-based cache listener operation should throw an exception");
- }
- catch (Exception e)
- {
- // expected
- }
-
- try
- {
- cache.removeCacheListener(Fqn.ROOT, new Listener());
- fail("Fqn-based cache listener operation should throw an exception");
- }
- catch (Exception e)
- {
- // expected
- }
- }
-
- /**
* All cache operations should happen on a {@link Node} - I.e., you look up a {@link
Node} and perform data operations
* on this {@link Node}. For convenience and familiarity with JBoss Cache 1.x, we
provide some helpers in {@link Cache}
* which dives you direct data access to nodes.
Modified: core/trunk/src/test/java/org/jboss/cache/api/DestroyedCacheAPITest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/api/DestroyedCacheAPITest.java 2008-06-05
10:53:15 UTC (rev 5960)
+++ core/trunk/src/test/java/org/jboss/cache/api/DestroyedCacheAPITest.java 2008-06-06
08:53:21 UTC (rev 5961)
@@ -34,7 +34,7 @@
private Fqn parent = Fqn.fromString("/test/fqn");
private Fqn child = Fqn.fromString("/test/fqn/child");
private String version;
- private Node<String,String> root;
+ private Node<String, String> root;
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception
@@ -109,43 +109,6 @@
}
/**
- * Test that fqn-specific application of cache listeners has not been implemented and
will not be implemented
- * in 2.0.0. It is a feature for 2.1.0 but the interface needed to be in place now.
- */
- public void testFqnBasedCacheListeners()
- {
- try
- {
- cache.getCacheListeners(Fqn.ROOT);
- fail("Fqn-based cache listener operation should throw an exception");
- }
- catch (Exception e)
- {
- // expected
- }
-
- try
- {
- cache.addCacheListener(Fqn.ROOT, new Listener());
- fail("Fqn-based cache listener operation should throw an exception");
- }
- catch (Exception e)
- {
- // expected
- }
-
- try
- {
- cache.removeCacheListener(Fqn.ROOT, new Listener());
- fail("Fqn-based cache listener operation should throw an exception");
- }
- catch (Exception e)
- {
- // expected
- }
- }
-
- /**
* Tests the basic gets, puts. Expectation is all will throw an
* ISE.
* <p/>
Show replies by date