public void test_serviceAvailable_LBeanContextServiceRevokedEvent() {
BeanContextServicesSupport support = new BeanContextServicesSupport();
support.add(new MySupport());
support.addBeanContextServicesListener(new MyListener());
Class c = Object.class;
support.addService(c, new MyProvider());
BeanContextServiceAvailableEvent availableEvent = new BeanContextServiceAvailableEvent(
support, c);
support.serviceAvailable(availableEvent);
assertEquals(0, serviceRevoked);
assertEquals(2, serviceAvailable);
}
BeanContextServicesSupportTest.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:freeVM
作者:
评论列表
文章目录