/** Actions before every test case (common) */
public void setUp() {
res = true;
counter.setInteger(new Integer(0));
counter.setExceptionFlag(false);
counter.setNullFlag(false);
server = MBeanServerFactory.createMBeanServer();
monitor = new CounterMonitor();
try {
monitorName = new ObjectName(
"org.apache.harmony.test.func.api.javax.management.monitor."
+ "gaugemonitor:type=GaugeMonitor,id=1");
counterName = new ObjectName(Counter.COUNTER_NAME_TEMPLATE + "1");
} catch (Throwable e) {
e.printStackTrace();
System.err.println("Test: ERROR: Internal error!");
System.exit(106);
}
monitor.addNotificationListener(nListener, null, "handback");
}
ErrorNotificationsTest.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:freeVM
作者:
评论列表
文章目录