Compliant BeanContexts fire events on this interface when the state of the membership of the BeanContext changes.
101910201021102210231024102510261027
assertNull(result); } public void testGetChildBeanContextMembershipListener() { MockBeanContextMembershipListener child = new MockBeanContextMembershipListener(); BeanContextMembershipListener result = MockBeanContextSupport .publicGetChildBeanContextMembershipListener(child); assertSame(child, result); }
102510261027102810291030103110321033
.publicGetChildBeanContextMembershipListener(child); assertSame(child, result); } public void testGetChildBeanContextMembershipListener_WrongClass() { BeanContextMembershipListener result = MockBeanContextSupport .publicGetChildBeanContextMembershipListener(new Integer(129)); assertNull(result); }
101210131014101510161017101810191020
// expected } } public void testGetChildBeanContextMembershipListener_NullParam() { BeanContextMembershipListener result = MockBeanContextSupport .publicGetChildBeanContextMembershipListener(null); assertNull(result); }
464748495051525354555657
* Regression test for HARMONY-4011 */ public void test4011() { BeanContextSupport context = new BeanContextSupport(); final int[] k = { 0 }; BeanContextMembershipListener listener = new BeanContextMembershipListener() { public void childrenAdded(BeanContextMembershipEvent bcme) { k[0]++; }