Author: manik.surtani(a)jboss.com
Date: 2008-08-05 06:42:48 -0400 (Tue, 05 Aug 2008)
New Revision: 6508
Modified:
core/trunk/src/test/java/org/jboss/cache/options/ForceCacheModeTest.java
Log:
Corrected to deal with new callback
Modified: core/trunk/src/test/java/org/jboss/cache/options/ForceCacheModeTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/options/ForceCacheModeTest.java 2008-08-05
10:37:26 UTC (rev 6507)
+++ core/trunk/src/test/java/org/jboss/cache/options/ForceCacheModeTest.java 2008-08-05
10:42:48 UTC (rev 6508)
@@ -17,7 +17,7 @@
import org.jboss.cache.config.Configuration.NodeLockingScheme;
import org.jboss.cache.config.Option;
import org.jboss.cache.notifications.annotation.CacheListener;
-import org.jboss.cache.notifications.annotation.NodeEvicted;
+import org.jboss.cache.notifications.annotation.NodeInvalidated;
import org.jboss.cache.notifications.annotation.NodeModified;
import org.jboss.cache.notifications.annotation.NodeRemoved;
import org.jboss.cache.notifications.event.NodeEvent;
@@ -456,11 +456,11 @@
@NodeModified
@NodeRemoved
- @NodeEvicted
+ @NodeInvalidated
public void block(NodeEvent event)
{
log.error("Received event notification " + event);
- if (event.isPre() == false && FQNA.equals(event.getFqn()))
+ if (!event.isPre() && FQNA.equals(event.getFqn()))
{
blocked = true;
try
Show replies by date