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

Manik Surtani manik at jboss.org
Thu Jun 28 12:53:40 EDT 2007


  User: msurtani
  Date: 07/06/28 12:53:40

  Modified:    tests/functional/org/jboss/cache/pojo/jmx 
                        PojoCacheJmxWrapperTest.java
  Log:
  Notification changes
  
  Revision  Changes    Path
  1.7       +12 -11    JBossCache/tests/functional/org/jboss/cache/pojo/jmx/PojoCacheJmxWrapperTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PojoCacheJmxWrapperTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/pojo/jmx/PojoCacheJmxWrapperTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- PojoCacheJmxWrapperTest.java	30 May 2007 06:08:03 -0000	1.6
  +++ PojoCacheJmxWrapperTest.java	28 Jun 2007 16:53:40 -0000	1.7
  @@ -7,13 +7,13 @@
   
   package org.jboss.cache.pojo.jmx;
   
  -import org.jboss.cache.AbstractCacheListener;
  -import org.jboss.cache.CacheSPI;
   import org.jboss.cache.CacheStatus;
   import org.jboss.cache.config.Configuration;
  -import org.jboss.cache.pojo.PojoCache;
  +import org.jboss.cache.notifications.annotation.CacheListener;
  +import org.jboss.cache.notifications.annotation.CacheStarted;
  +import org.jboss.cache.notifications.annotation.CacheStopped;
  +import org.jboss.cache.notifications.event.Event;
   import org.jboss.cache.pojo.PojoCacheException;
  -import org.jboss.cache.pojo.test.Person;
   
   import javax.management.ObjectName;
   
  @@ -127,7 +127,8 @@
   //
   //      assertEquals("Correct location", "/person/joe", wrapper.getInternalLocation(joe));
   //   }
  -//
  +
  +   //
      public void testDuplicateInvocation() throws Exception
      {
         PojoCacheJmxWrapperMBean cache = registerWrapper();
  @@ -194,17 +195,17 @@
      }
   
   
  -   class DisruptLifecycleListener extends AbstractCacheListener
  +   @CacheListener
  +   class DisruptLifecycleListener
      {
  -
  -      @Override
  -      public void cacheStarted(CacheSPI cache)
  +      @CacheStarted
  +      public void cacheStarted(Event e)
         {
            throw new IllegalStateException("I don't want to start");
         }
   
  -      @Override
  -      public void cacheStopped(CacheSPI cache)
  +      @CacheStopped
  +      public void cacheStopped(Event e)
         {
            throw new IllegalStateException("I don't want to stop");
         }
  
  
  



More information about the jboss-cvs-commits mailing list