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