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