@Test(expected=RuntimeException.class)
public void testDoubleRegister() throws Exception {
ControlService cs = new JMXControlService(DOMAIN, new Hashtable<>());
String type = "timer";
String id = "a";
String alias = "ControlA";
String controlId = cs.registerControl(type, id, alias, TimerMBean.class, new Timer());
try {
cs.registerControl(type, id, alias, TimerMBean.class, new Timer());
} finally {
cs.unregister(controlId);
}
}
JMXControlServiceTest.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:quarks
作者:
评论列表
文章目录