/**
* Test for the method
* getLibraryDirectory()
* setLibraryDirectory()
*
* @see javax.management.loading.mlet#setLibraryDirectory()
*/
public Result testSetLibraryDirectory() throws Exception {
try{
MBeanServer server = MBeanServerFactory.createMBeanServer();
MLet mlet = new MLet();
ObjectName name = new ObjectName("test:name=mlet");
server.registerMBean(mlet, name);
mlet.getMBeansFromURL(MLET_URL+"mlet2.conf");
String libPath = mlet.getLibraryDirectory();
mlet.setLibraryDirectory(libPath);
if(libPath.equals(null))
return failed("method MLet.getLibraryDirectory()return wrong value = " + libPath);
}catch(Exception e){
//e.printStackTrace();
return failed("Unexpected Exception occur");
}
return result();
}
LoadingMBeanTest.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:freeVM
作者:
评论列表
文章目录