01: package org.objectweb.celtix.bus.management.jmx;
02:
03: import javax.management.ObjectName;
04:
05: import junit.framework.TestCase;
06:
07: public class JMXUtilsTest extends TestCase {
08: static final String OBJECT_NAME = "org.objectweb.celtix.instrumentation:type=foo,Bus=celtix,name=boo";
09:
10: public void testGetObjectName() {
11: ObjectName name = JMXUtils.getObjectName("foo", ",name=boo",
12: "celtix");
13: assertTrue("The wrong object name", OBJECT_NAME.compareTo(name
14: .toString()) == 0);
15: }
16: }
|