예제 #1
0
 @Test
 public void testToString() throws Exception {
   JmxAttribute attr = new JmxAttribute("test");
   assertEquals(attr.toString(), new JmxAttribute("test").toString());
 }
예제 #2
0
 @Test
 public void testJmxAttributeHashCode() throws Exception {
   JmxAttribute a1 = new JmxAttribute("test_string");
   assertEquals(a1.hashCode(), new String("test_string").hashCode());
 }
예제 #3
0
 @Test
 public void testJmxAttribute() throws Exception {
   JmxAttribute attr = new JmxAttribute("test");
   assertEquals("test", attr.getAttributeName());
 }