BeanContextServicesSupportTest.java 文件源码

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

项目:cn1 作者:
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);

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号