diff options
author | Emil Ivov <emcho@jitsi.org> | 2006-10-04 08:37:12 +0000 |
---|---|---|
committer | Emil Ivov <emcho@jitsi.org> | 2006-10-04 08:37:12 +0000 |
commit | 830034092bea28b666c00a0dbfb9e386d5c705d5 (patch) | |
tree | 4ff257f3b322220b3878481f479ab5d3b258c28b /test | |
parent | 0dc3205c8d2351b2a57e6f50e40f62c0a5a46e4a (diff) | |
download | jitsi-830034092bea28b666c00a0dbfb9e386d5c705d5.zip jitsi-830034092bea28b666c00a0dbfb9e386d5c705d5.tar.gz jitsi-830034092bea28b666c00a0dbfb9e386d5c705d5.tar.bz2 |
Allow the meta contact list to fire events for removal of contacts when the parent group is removed.
Diffstat (limited to 'test')
-rw-r--r-- | test/net/java/sip/communicator/slick/contactlist/TestMetaContactList.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/net/java/sip/communicator/slick/contactlist/TestMetaContactList.java b/test/net/java/sip/communicator/slick/contactlist/TestMetaContactList.java index 4d08d69..837a195 100644 --- a/test/net/java/sip/communicator/slick/contactlist/TestMetaContactList.java +++ b/test/net/java/sip/communicator/slick/contactlist/TestMetaContactList.java @@ -610,15 +610,17 @@ public class TestMetaContactList fixture.metaClService.removeMetaContactListListener(mclEvtCollector); //first check that the group was really removed - assertEquals("Number of evts dispatched while removing a contact group" - , 1 - , mclEvtCollector.collectedMetaContactGroupEvents.size()); + assertTrue("Number of evts dispatched while removing a contact group" + , mclEvtCollector.collectedMetaContactGroupEvents.size() > 0); evt = (MetaContactGroupEvent)mclEvtCollector - .collectedMetaContactGroupEvents.remove(0); + .collectedMetaContactGroupEvents.get( + mclEvtCollector + .collectedMetaContactGroupEvents.size() - 1); + mclEvtCollector.collectedMetaContactGroupEvents.clear(); assertEquals("ID of the generated event", - MetaContactGroupEvent.CONTACT_GROUP_REMOVED_FROM_META_GROUP, - evt.getEventID()); + evt.getEventID(), + MetaContactGroupEvent.CONTACT_GROUP_REMOVED_FROM_META_GROUP); assertEquals("Source group for the RemoveEvent." , newMetaGroup |