[jboss-cvs] JBossCache/tests-50/functional/org/jboss/cache/pojo/passivation ...

Manik Surtani msurtani at jboss.com
Tue Jan 2 12:15:30 EST 2007


  User: msurtani
  Date: 07/01/02 12:15:30

  Modified:    tests-50/functional/org/jboss/cache/pojo/passivation  
                        LocalTest.java ReplicatedTest.java
  Log:
  some api changes
  
  Revision  Changes    Path
  1.11      +2 -54     JBossCache/tests-50/functional/org/jboss/cache/pojo/passivation/LocalTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: LocalTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/passivation/LocalTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- LocalTest.java	30 Dec 2006 17:50:05 -0000	1.10
  +++ LocalTest.java	2 Jan 2007 17:15:30 -0000	1.11
  @@ -12,17 +12,13 @@
   import junit.framework.TestSuite;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  -import org.jboss.cache.CacheListener;
  -import org.jboss.cache.CacheSPI;
  +import org.jboss.cache.AbstractCacheListener;
   import org.jboss.cache.Fqn;
   import org.jboss.cache.pojo.PojoCache;
   import org.jboss.cache.pojo.PojoCacheFactory;
   import org.jboss.cache.pojo.test.Address;
   import org.jboss.cache.pojo.test.Link;
   import org.jboss.cache.pojo.test.Person;
  -import org.jgroups.View;
  -
  -import java.util.Map;
   
   /**
    * Basic PojoCache test case.
  @@ -262,7 +258,7 @@
         junit.textui.TestRunner.run(org.jboss.cache.pojo.passivation.LocalTest.suite());
      }
   
  -   public class MyCacheListener implements CacheListener
  +   public class MyCacheListener extends AbstractCacheListener
      {
         int activation = 0;
         int passivation = 0;
  @@ -283,39 +279,6 @@
            passivation = 0;
         }
   
  -      public void nodeCreated(Fqn fqn, boolean pre, boolean isLocal)
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
  -
  -      public void nodeModified(Fqn fqn, boolean pre, boolean isLocal, Map data)
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
  -
  -      public void nodeRemoved(Fqn fqn, boolean pre, boolean isLocal, Map data)
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
  -
  -      public void nodeVisited(Fqn fqn, boolean pre)
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
  -
  -      public void nodeEvicted(Fqn fqn, boolean pre, boolean isLocal)
  -      {
  -      }
  -
  -      public void nodeLoaded(Fqn fqn, boolean pre, Map data)
  -      {
  -      }
  -
  -      public void nodeMoved(Fqn from, Fqn to, boolean pre)
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
  -
         public void nodeActivated(Fqn fqn, boolean pre)
         {
            if (!pre)
  @@ -333,20 +296,5 @@
               passivation++;
            }
         }
  -
  -      public void cacheStarted(CacheSPI cache)
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
  -
  -      public void cacheStopped(CacheSPI cache)
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
  -
  -      public void viewChange(View new_view)  // might be MergeView after merging
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
      }
   }
  
  
  
  1.10      +2 -55     JBossCache/tests-50/functional/org/jboss/cache/pojo/passivation/ReplicatedTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/passivation/ReplicatedTest.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- ReplicatedTest.java	30 Dec 2006 17:50:05 -0000	1.9
  +++ ReplicatedTest.java	2 Jan 2007 17:15:30 -0000	1.10
  @@ -27,17 +27,13 @@
   import junit.framework.TestSuite;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  -import org.jboss.cache.CacheListener;
  -import org.jboss.cache.CacheSPI;
  +import org.jboss.cache.AbstractCacheListener;
   import org.jboss.cache.Fqn;
   import org.jboss.cache.pojo.PojoCache;
   import org.jboss.cache.pojo.PojoCacheFactory;
   import org.jboss.cache.pojo.test.Address;
   import org.jboss.cache.pojo.test.Link;
   import org.jboss.cache.pojo.test.Person;
  -import org.jgroups.View;
  -
  -import java.util.Map;
   
   /**
    * Replicated passivation test.
  @@ -250,7 +246,7 @@
         junit.textui.TestRunner.run(suite());
      }
   
  -   public class MyCacheListener implements CacheListener
  +   public class MyCacheListener extends AbstractCacheListener
      {
         int activation = 0;
         int passivation = 0;
  @@ -271,39 +267,6 @@
            passivation = 0;
         }
   
  -      public void nodeCreated(Fqn fqn, boolean pre, boolean isLocal)
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
  -
  -      public void nodeModified(Fqn fqn, boolean pre, boolean isLocal, Map data)
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
  -
  -      public void nodeRemoved(Fqn fqn, boolean pre, boolean isLocal, Map data)
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
  -
  -      public void nodeVisited(Fqn fqn, boolean pre)
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
  -
  -      public void nodeEvicted(Fqn fqn, boolean pre, boolean isLocal)
  -      {
  -      }
  -
  -      public void nodeLoaded(Fqn fqn, boolean pre, Map data)
  -      {
  -      }
  -
  -      public void nodeMoved(Fqn from, Fqn to, boolean pre)
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
  -
         public void nodeActivated(Fqn fqn, boolean pre)
         {
            if (!pre)
  @@ -321,21 +284,5 @@
               passivation++;
            }
         }
  -
  -      public void cacheStarted(CacheSPI cache)
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
  -
  -      public void cacheStopped(CacheSPI cache)
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
  -
  -      public void viewChange(View new_view)  // might be MergeView after merging
  -      {
  -         //To change body of implemented methods use File | Settings | File Templates.
  -      }
      }
  -
   }
  
  
  



More information about the jboss-cvs-commits mailing list