1 package org.objectweb.celtix.bus.management.jmx; 2 3 import javax.management.ObjectName ; 4 5 import junit.framework.TestCase; 6 7 public class JMXUtilsTest extends TestCase { 8 static final String OBJECT_NAME = "org.objectweb.celtix.instrumentation:type=foo,Bus=celtix,name=boo"; 9 public void testGetObjectName() { 10 ObjectName name = JMXUtils.getObjectName("foo", ",name=boo", "celtix"); 11 assertTrue("The wrong object name", OBJECT_NAME.compareTo(name.toString()) == 0); 12 } 13 } 14 | Popular Tags |