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

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/factories 
                        InterceptorChainFactoryTest.java
  Log:
  1. Modify useInterceptorMbeans to useMbean
  2. Added PojoCache jmx framework 
  3. added test
  
  Revision  Changes    Path
  1.2       +12 -12    JBossCache/tests/functional/org/jboss/cache/factories/InterceptorChainFactoryTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: InterceptorChainFactoryTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/factories/InterceptorChainFactoryTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- InterceptorChainFactoryTest.java	13 Sep 2006 13:11:18 -0000	1.1
  +++ InterceptorChainFactoryTest.java	25 Sep 2006 05:50:05 -0000	1.2
  @@ -35,7 +35,7 @@
   
      public void testBareConfig() throws Exception
      {
  -      cache.getConfiguration().setUseInterceptorMbeans(false);
  +      cache.getConfiguration().setUseMbean(false);
         Interceptor chain = new InterceptorChainFactory().buildInterceptorChain(cache);
         List<Interceptor> list = InterceptorChainFactory.asList(chain);
         Iterator<Interceptor> interceptors = list.iterator();
  @@ -56,7 +56,7 @@
   
      public void testTxConfig() throws Exception
      {
  -      cache.getConfiguration().setUseInterceptorMbeans(false);
  +      cache.getConfiguration().setUseMbean(false);
         cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
   
         Interceptor chain = new InterceptorChainFactory().buildInterceptorChain(cache);
  @@ -99,7 +99,7 @@
   
      public void testSharedCacheLoaderConfig() throws Exception
      {
  -      cache.getConfiguration().setUseInterceptorMbeans(false);
  +      cache.getConfiguration().setUseMbean(false);
         cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
         cache.getConfiguration().setCacheLoaderConfiguration(getCacheLoaderConfig(false, false));
         cache.getConfiguration().setCacheMode("REPL_ASYNC");
  @@ -128,7 +128,7 @@
   
      public void testUnsharedCacheLoaderConfig() throws Exception
      {
  -      cache.getConfiguration().setUseInterceptorMbeans(false);
  +      cache.getConfiguration().setUseMbean(false);
         cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
         cache.getConfiguration().setCacheLoaderConfiguration(getCacheLoaderConfig(false, true));
         cache.getConfiguration().setCacheMode("REPL_ASYNC");
  @@ -157,7 +157,7 @@
   
      public void testTxAndRepl() throws Exception
      {
  -      cache.getConfiguration().setUseInterceptorMbeans(false);
  +      cache.getConfiguration().setUseMbean(false);
         cache.getConfiguration().setCacheMode("repl_sync");
         cache.getConfiguration().setTransactionManagerLookupClass("org.jboss.cache.DummyTransactionManagerLookup");
         Interceptor chain = new InterceptorChainFactory().buildInterceptorChain(cache);
  @@ -183,7 +183,7 @@
      public void testOptimisticChain() throws Exception
      {
         TreeCache cache = new TreeCache();
  -      cache.getConfiguration().setUseInterceptorMbeans(false);
  +      cache.getConfiguration().setUseMbean(false);
         cache.getConfiguration().setNodeLockingOptimistic(true);
   
         Interceptor next = new InterceptorChainFactory().buildInterceptorChain(cache);
  @@ -208,7 +208,7 @@
      public void testOptimisticReplicatedChain() throws Exception
      {
         TreeCache cache = new TreeCache();
  -      cache.getConfiguration().setUseInterceptorMbeans(false);
  +      cache.getConfiguration().setUseMbean(false);
         cache.getConfiguration().setNodeLockingOptimistic(true);
         cache.getConfiguration().setCacheMode("REPL_SYNC");
   
  @@ -235,7 +235,7 @@
      public void testOptimisticCacheLoaderChain() throws Exception
      {
         TreeCache cache = new TreeCache();
  -      cache.getConfiguration().setUseInterceptorMbeans(false);
  +      cache.getConfiguration().setUseMbean(false);
         cache.getConfiguration().setNodeLockingOptimistic(true);
         cache.getConfiguration().setCacheLoaderConfiguration(getCacheLoaderConfig(false, false));
         cache.create();
  @@ -263,7 +263,7 @@
      public void testOptimisticPassivationCacheLoaderChain() throws Exception
      {
         TreeCache cache = new TreeCache();
  -      cache.getConfiguration().setUseInterceptorMbeans(false);
  +      cache.getConfiguration().setUseMbean(false);
         cache.getConfiguration().setNodeLockingOptimistic(true);
         cache.getConfiguration().setCacheLoaderConfiguration(getCacheLoaderConfig(true, false));
         cache.create();
  @@ -292,7 +292,7 @@
      public void testInvalidationInterceptorChain() throws Exception
      {
         TreeCache cache = new TreeCache();
  -      cache.getConfiguration().setUseInterceptorMbeans(false);
  +      cache.getConfiguration().setUseMbean(false);
         cache.getConfiguration().setCacheMode("REPL_ASYNC");
   
         Interceptor chain = new InterceptorChainFactory().buildInterceptorChain(cache);
  @@ -314,7 +314,7 @@
   
         // now for my invalidation chain.
         cache = new TreeCache();
  -      cache.getConfiguration().setUseInterceptorMbeans(false);
  +      cache.getConfiguration().setUseMbean(false);
         cache.getConfiguration().setCacheMode("INVALIDATION_ASYNC");
         chain = new InterceptorChainFactory().buildInterceptorChain(cache);
   
  @@ -336,7 +336,7 @@
   
      public void testCacheMgmtConfig() throws Exception
      {
  -      cache.getConfiguration().setUseInterceptorMbeans(true);
  +      cache.getConfiguration().setUseMbean(true);
         Interceptor chain = new InterceptorChainFactory().buildInterceptorChain(cache);
         List<Interceptor> list = InterceptorChainFactory.asList(chain);
         Iterator<Interceptor> interceptors = list.iterator();
  
  
  



More information about the jboss-cvs-commits mailing list