TheMLetTagTest.java 文件源码

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

项目:freeVM 作者:
/**
 * Test for mandatory: Tags CODE, ARCHIVE, NAME
 * Check that mlet service work properly with comments in mlet text conf file 
 */
public Result testMletsComments() throws Exception {
    try {
        MBeanServer server = MBeanServerFactory.createMBeanServer();
        MLet mlet = new MLet();
        ObjectName name = new ObjectName("test:name=mlet");

        server.registerMBean(mlet, name);
        server.invoke(name, "getMBeansFromURL", new Object[] { MLET_URL
                + "ComMLet.conf" },
                new String[] { String.class.getName() });
    } catch (Exception exp) {
        exp.printStackTrace();
        return failed("Unexpected Exception");
    }
    return result();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号