[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/jmx ...
Manik Surtani
msurtani at jboss.com
Sat Dec 30 12:50:06 EST 2006
User: msurtani
Date: 06/12/30 12:50:06
Modified: tests/functional/org/jboss/cache/jmx CacheMBeanTest.java
Log:
Major changes to restructure cache and node object model
Revision Changes Path
1.7 +3 -3 JBossCache/tests/functional/org/jboss/cache/jmx/CacheMBeanTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheMBeanTest.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/jmx/CacheMBeanTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- CacheMBeanTest.java 16 Nov 2006 14:51:49 -0000 1.6
+++ CacheMBeanTest.java 30 Dec 2006 17:50:06 -0000 1.7
@@ -36,7 +36,7 @@
mBeanName = new ObjectName(mBeanNameStr);
JmxUtil.registerCacheMBean(mBeanServer, new org.jboss.cache.jmx.Cache((CacheSPI) cache), mBeanNameStr);
- JmxUtil.registerInterceptors(mBeanServer, ((CacheSPI)cache).getInterceptorChain(), mBeanNameStr);
+ JmxUtil.registerInterceptors(mBeanServer, ((CacheSPI) cache).getInterceptorChain(), mBeanNameStr);
}
protected void tearDown()
@@ -87,9 +87,9 @@
public void testCacheOperations() throws Exception
{
Cache cacheJmx = (Cache) mBeanServer.getAttribute(mBeanName, "Cache");
- cacheJmx.put("key", "value");
+ cacheJmx.getRoot().put("key", "value");
- assertEquals("value", cache.get("key"));
+ assertEquals("value", cache.getRoot().get("key"));
Fqn fqn = Fqn.fromString("//testing/jmx");
cache.put(fqn, "key", "value");
More information about the jboss-cvs-commits
mailing list