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

Ben Wang bwang at jboss.com
Mon Sep 25 01:50:05 EDT 2006


  User: bwang   
  Date: 06/09/25 01:50:05

  Modified:    tests/functional/org/jboss/cache/mgmt      
                        CacheLoaderTest.java InvalidationTest.java
                        MgmtCoreTest.java NotificationTest.java
                        PassivationTest.java TxTest.java
  Log:
  1. Modify useInterceptorMbeans to useMbean
  2. Added PojoCache jmx framework 
  3. added test
  
  Revision  Changes    Path
  1.7       +4 -4      JBossCache/tests/functional/org/jboss/cache/mgmt/CacheLoaderTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheLoaderTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/CacheLoaderTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- CacheLoaderTest.java	6 Sep 2006 15:30:58 -0000	1.6
  +++ CacheLoaderTest.java	25 Sep 2006 05:50:05 -0000	1.7
  @@ -19,7 +19,7 @@
    * Simple functional tests for CacheLoaderInterceptor and CacheStoreInterceptor statistics
    *
    * @author Jerry Gauthier
  - * @version $Id: CacheLoaderTest.java,v 1.6 2006/09/06 15:30:58 msurtani Exp $
  + * @version $Id: CacheLoaderTest.java,v 1.7 2006/09/25 05:50:05 bwang Exp $
    */
   public class CacheLoaderTest extends TestCase
   {
  @@ -203,7 +203,7 @@
         TreeCache cache = new TreeCache();
         cache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL);
         cache.getConfiguration().setCacheLoaderConfiguration(getCacheLoaderConfig("location=" + getTempDir()));
  -      cache.getConfiguration().setUseInterceptorMbeans(true);
  +      cache.getConfiguration().setUseMbean(true);
         cache.create();
         cache.start();
         return cache;
  
  
  
  1.7       +6 -6      JBossCache/tests/functional/org/jboss/cache/mgmt/InvalidationTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: InvalidationTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/InvalidationTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- InvalidationTest.java	6 Sep 2006 15:30:58 -0000	1.6
  +++ InvalidationTest.java	25 Sep 2006 05:50:05 -0000	1.7
  @@ -16,7 +16,7 @@
    * Simple functional tests for InvalidationInterceptor statistics
    *
    * @author Jerry Gauthier
  - * @version $Id: InvalidationTest.java,v 1.6 2006/09/06 15:30:58 msurtani Exp $
  + * @version $Id: InvalidationTest.java,v 1.7 2006/09/25 05:50:05 bwang Exp $
    */
   public class InvalidationTest extends TestCase
   {
  @@ -90,8 +90,8 @@
         InvalidationInterceptor mgmt2 = getInvalidationInterceptor(cache2);
         assertNotNull("Cache2 InvalidationInterceptor not found.", mgmt2);
   
  -      assertTrue("Cache1 not configured to use MBeans", cache1.getConfiguration().isUseInterceptorMbeans());
  -      assertTrue("Cache2 not configured to use MBeans", cache2.getConfiguration().isUseInterceptorMbeans());
  +      assertTrue("Cache1 not configured to use MBeans", cache1.getConfiguration().isUseMbean());
  +      assertTrue("Cache2 not configured to use MBeans", cache2.getConfiguration().isUseMbean());
         assertTrue("InvalidationInterceptor on Cache1 not set up to use statistics!", mgmt1.getStatisticsEnabled());
         assertTrue("InvalidationInterceptor on Cache2 not set up to use statistics!", mgmt2.getStatisticsEnabled());
   
  @@ -149,7 +149,7 @@
         Configuration c = parser.parseFile("META-INF/invalidationSync-service.xml");
         cache.setConfiguration(c);
         c.setCacheMode(Configuration.CacheMode.INVALIDATION_SYNC);
  -      c.setUseInterceptorMbeans(true);
  +      c.setUseMbean(true);
         c.setClusterName(clusterName);
         cache.create();
         cache.start();
  
  
  
  1.6       +4 -4      JBossCache/tests/functional/org/jboss/cache/mgmt/MgmtCoreTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: MgmtCoreTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/MgmtCoreTest.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- MgmtCoreTest.java	6 Sep 2006 15:30:58 -0000	1.5
  +++ MgmtCoreTest.java	25 Sep 2006 05:50:05 -0000	1.6
  @@ -15,7 +15,7 @@
    * Simple functional tests for CacheMgmtInterceptor
    *
    * @author Jerry Gauthier
  - * @version $Id: MgmtCoreTest.java,v 1.5 2006/09/06 15:30:58 msurtani Exp $
  + * @version $Id: MgmtCoreTest.java,v 1.6 2006/09/25 05:50:05 bwang Exp $
    */
   public class MgmtCoreTest extends TestCase
   {
  @@ -31,7 +31,7 @@
         super.setUp();
         cache = new TreeCache();
         cache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL);
  -      cache.getConfiguration().setUseInterceptorMbeans(true);
  +      cache.getConfiguration().setUseMbean(true);
         cache.create();
         cache.start();
      }
  
  
  
  1.11      +2 -2      JBossCache/tests/functional/org/jboss/cache/mgmt/NotificationTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: NotificationTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/NotificationTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- NotificationTest.java	7 Sep 2006 13:52:29 -0000	1.10
  +++ NotificationTest.java	25 Sep 2006 05:50:05 -0000	1.11
  @@ -22,7 +22,7 @@
    * Functional tests for CacheMgmtInterceptor broadcast of cache event notifications
    *
    * @author Jerry Gauthier
  - * @version $Id: NotificationTest.java,v 1.10 2006/09/07 13:52:29 msurtani Exp $
  + * @version $Id: NotificationTest.java,v 1.11 2006/09/25 05:50:05 bwang Exp $
    */
   public class NotificationTest extends TestCase
   {
  @@ -155,7 +155,7 @@
         cache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
         cache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
         cache.getConfiguration().setCacheLoaderConfiguration(getCacheLoaderConfig("location=" + getTempDir()));
  -      cache.getConfiguration().setUseInterceptorMbeans(true);
  +      cache.getConfiguration().setUseMbean(true);
         cache.getConfiguration().setClusterName(clusterName);
         if (optimistic)
         {
  
  
  
  1.5       +5 -5      JBossCache/tests/functional/org/jboss/cache/mgmt/PassivationTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PassivationTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/PassivationTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- PassivationTest.java	6 Sep 2006 15:30:58 -0000	1.4
  +++ PassivationTest.java	25 Sep 2006 05:50:05 -0000	1.5
  @@ -19,7 +19,7 @@
    * Simple functional tests for ActivationInterceptor and PassivationInterceptor statistics
    *
    * @author Jerry Gauthier
  - * @version $Id: PassivationTest.java,v 1.4 2006/09/06 15:30:58 msurtani Exp $
  + * @version $Id: PassivationTest.java,v 1.5 2006/09/25 05:50:05 bwang Exp $
    */
   public class PassivationTest extends TestCase
   {
  @@ -228,7 +228,7 @@
         Configuration c = new Configuration();
         c.setCacheMode("LOCAL");
         c.setCacheLoaderConfiguration(getCacheLoaderConfig("location=" + getTempDir()));
  -      c.setUseInterceptorMbeans(true);
  +      c.setUseMbean(true);
         cache.setConfiguration(c);
         cache.create();
         cache.start();
  
  
  
  1.7       +3 -3      JBossCache/tests/functional/org/jboss/cache/mgmt/TxTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: TxTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/mgmt/TxTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- TxTest.java	6 Sep 2006 15:30:58 -0000	1.6
  +++ TxTest.java	25 Sep 2006 05:50:05 -0000	1.7
  @@ -17,7 +17,7 @@
    * Simple functional tests for TxInterceptor statistics
    *
    * @author Jerry Gauthier
  - * @version $Id: TxTest.java,v 1.6 2006/09/06 15:30:58 msurtani Exp $
  + * @version $Id: TxTest.java,v 1.7 2006/09/25 05:50:05 bwang Exp $
    */
   public class TxTest extends TestCase
   {
  @@ -211,7 +211,7 @@
         cache.setConfiguration(new XmlConfigurationParser().parseFile("META-INF/replSync-service.xml"));
         cache.getConfiguration().setUseRegionBasedMarshalling(false);
         cache.getConfiguration().setCacheMode(Configuration.CacheMode.REPL_SYNC);
  -      cache.getConfiguration().setUseInterceptorMbeans(true);
  +      cache.getConfiguration().setUseMbean(true);
         cache.getConfiguration().setClusterName(clusterName);
         cache.create();
         cache.start();
  
  
  



More information about the jboss-cvs-commits mailing list