[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/notifications ...
Manik Surtani
msurtani at jboss.com
Thu Aug 24 12:30:10 EDT 2006
User: msurtani
Date: 06/08/24 12:30:10
Modified: tests/functional/org/jboss/cache/notifications
CacheListenerTest.java
Log:
fixed
- notifications with opt locking
- single cache spi instance being created when using opt locking (in TreeCache)
- added interceptor cache reference test
Revision Changes Path
1.3 +6 -0 JBossCache/tests/functional/org/jboss/cache/notifications/CacheListenerTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheListenerTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/notifications/CacheListenerTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- CacheListenerTest.java 16 Aug 2006 10:52:51 -0000 1.2
+++ CacheListenerTest.java 24 Aug 2006 16:30:10 -0000 1.3
@@ -83,6 +83,7 @@
expected.add(new Event(ListenerMethod.NODE_MODIFIED, fqn, false, true, data));
assertEquals(expected, eventLog.events);
+ assertEquals("value", cache.get(fqn, "key"));
}
public void testOnlyModification() throws Exception
@@ -117,6 +118,8 @@
Map oldData = new HashMap();
oldData.put("key", "value");
+ assertEquals("value", cache.get(fqn, "key"));
+
// clear event log
eventLog.events.clear();
assertEquals("Event log should be empty", Collections.emptyList(), eventLog.events);
@@ -130,6 +133,9 @@
expected.add(new Event(ListenerMethod.NODE_REMOVED, fqn, false, true, null));
assertEquals(expected, eventLog.events);
+
+ // test that the node has in fact been removed.
+ assertNull("Should be null", cache.getChild(fqn));
}
More information about the jboss-cvs-commits
mailing list