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

Ben Wang bwang at jboss.com
Thu Sep 28 11:57:31 EDT 2006


  User: bwang   
  Date: 06/09/28 11:57:31

  Modified:    tests-50/functional/org/jboss/cache/pojo/jmx  MBeanTest.java
  Log:
  upd
  
  Revision  Changes    Path
  1.2       +3 -4      JBossCache/tests-50/functional/org/jboss/cache/pojo/jmx/MBeanTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: MBeanTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests-50/functional/org/jboss/cache/pojo/jmx/MBeanTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- MBeanTest.java	25 Sep 2006 05:50:05 -0000	1.1
  +++ MBeanTest.java	28 Sep 2006 15:57:31 -0000	1.2
  @@ -8,11 +8,8 @@
   package org.jboss.cache.pojo.jmx;
   
   import junit.framework.TestCase;
  -import org.jboss.cache.Cache;
  -import org.jboss.cache.Fqn;
   import org.jboss.cache.pojo.jmx.JmxUtil;
   import org.jboss.cache.pojo.PojoCacheFactory;
  -import org.jboss.cache.factories.DefaultCacheFactory;
   import org.jboss.cache.config.Configuration;
   
   import javax.management.MBeanServer;
  @@ -73,7 +70,9 @@
   
      public void testConfiguration() throws Exception
      {
  -      Configuration cfgFromJmx = (Configuration) mBeanServer.getAttribute(mBeanName, "Configuration");
  +      String tmpName = JmxUtil.getCacheObjectName((org.jboss.cache.CacheSPI)cache.getCache());
  +      ObjectName tmpBeanName = new ObjectName(tmpName);
  +      Configuration cfgFromJmx = (Configuration) mBeanServer.getAttribute(tmpBeanName, "Configuration");
         assertEquals(cache.getCache().getConfiguration(), cfgFromJmx);
      }
   
  
  
  



More information about the jboss-cvs-commits mailing list