[jboss-cvs] JBossCache/tests/functional/org/jboss/cache ...
Manik Surtani
msurtani at jboss.com
Wed Aug 16 06:52:52 EDT 2006
User: msurtani
Date: 06/08/16 06:52:52
Modified: tests/functional/org/jboss/cache CallbackTest.java
Log:
fixed simple notification events
Revision Changes Path
1.11 +6 -6 JBossCache/tests/functional/org/jboss/cache/CallbackTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CallbackTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/CallbackTest.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- CallbackTest.java 20 Jul 2006 09:03:55 -0000 1.10
+++ CallbackTest.java 16 Aug 2006 10:52:52 -0000 1.11
@@ -13,7 +13,7 @@
/**
* Tests whether modifications within callbacks (TreeCacheListener) are handled correctly
* @author Bela Ban
- * @version $Id: CallbackTest.java,v 1.10 2006/07/20 09:03:55 msurtani Exp $
+ * @version $Id: CallbackTest.java,v 1.11 2006/08/16 10:52:52 msurtani Exp $
*/
public class CallbackTest extends TestCase {
TreeCache cache=null, cache2;
@@ -50,7 +50,7 @@
public void testLocalPutCallbackWithoutTransaction() throws Exception, NotSupportedException {
cache=createCache(Configuration.CacheMode.LOCAL, IsolationLevel.SERIALIZABLE);
- cache.addTreeCacheListener(new PutListener(cache));
+ cache.getNotifier().addCacheListener(new PutListener(cache));
cache.put(FQN_A, null);
assertTrue(cache.exists(FQN_A));
@@ -62,7 +62,7 @@
public void testLocalGetCallbackSameFqnWithoutTransaction() throws Exception, NotSupportedException {
cache=createCache(Configuration.CacheMode.LOCAL, IsolationLevel.SERIALIZABLE);
- cache.addTreeCacheListener(new GetListener(cache, FQN_A));
+ cache.getNotifier().addCacheListener(new GetListener(cache, FQN_A));
cache.put(FQN_A, null);
assertTrue(cache.exists(FQN_A));
@@ -74,7 +74,7 @@
public void testLocalGetCallbackDifferentFqnWithoutTransaction() throws Exception, NotSupportedException {
cache=createCache(Configuration.CacheMode.LOCAL, IsolationLevel.SERIALIZABLE);
cache.put(FQN_B, null);
- cache.addTreeCacheListener(new GetListener(cache, FQN_B));
+ cache.getNotifier().addCacheListener(new GetListener(cache, FQN_B));
cache.put("/a", null);
assertTrue(cache.exists(FQN_A));
@@ -88,7 +88,7 @@
public void testLocalCallbackWithTransaction() throws Exception, NotSupportedException {
cache=createCache(Configuration.CacheMode.LOCAL, IsolationLevel.SERIALIZABLE);
- cache.addTreeCacheListener(new PutListener(cache));
+ cache.getNotifier().addCacheListener(new PutListener(cache));
tx=startTransaction();
cache.put(FQN_A, null);
tx.commit();
@@ -99,7 +99,7 @@
public void testLocalCallbackWithException() throws Exception, NotSupportedException {
cache=createCache(Configuration.CacheMode.LOCAL, IsolationLevel.SERIALIZABLE);
- cache.addTreeCacheListener(new ExceptionListener());
+ cache.getNotifier().addCacheListener(new ExceptionListener());
tx=startTransaction();
try {
cache.put(FQN_A, null);
More information about the jboss-cvs-commits
mailing list