KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > bus > management > jmx > JMXUtilsTest


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