ErrorTest.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:freeVM 作者:
/** Actions before every test case (common) */
public void setUp() {

    res = true;
    mySb.setString("match");
    mySb.setExceptionFlag(false);
    mySb.setNullFlag(false);

    server = MBeanServerFactory.createMBeanServer();
    monitor = new StringMonitor();

    try {
        monitorName = new ObjectName(
                "org.apache.harmony.test.func.api.javax.management.monitor."
                        + "stringMonitor:type=StringMonitor,id=1");
        mySbName = new ObjectName(MyStringBuffer.MSB_NAME_TEMPLATE + "1");
    } catch (Throwable e) {
        e.printStackTrace();
        System.err.println("Test: ERROR: Internal error!");
        System.exit(106);
    }

    monitor.addNotificationListener(nListener, null, "handback");
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号