From 204ffb915cb1e3373c1ac1cb097b1477870ec82f Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Tue, 24 Jan 2006 18:16:29 +0000 Subject: [PATCH] Changing group name to "" does not remove it from list of groups. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3350 b35dd754-fafc-0310-a699-88a17e54d16e --- test/org/jivesoftware/smack/RosterTest.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/org/jivesoftware/smack/RosterTest.java b/test/org/jivesoftware/smack/RosterTest.java index a66aa9f86..fb46361f8 100644 --- a/test/org/jivesoftware/smack/RosterTest.java +++ b/test/org/jivesoftware/smack/RosterTest.java @@ -431,11 +431,18 @@ public class RosterTest extends SmackTestCase { Thread.sleep(100); } - assertEquals("There are still groups in the roster", 0, roster.getGroupCount()); + assertNull("The group Amigos still exists", roster.getGroup("Amigos")); + assertNotNull("The group with no name does not exist", roster.getGroup("")); + assertEquals( + "Wrong number of entries in the group with no name", + 2, + roster.getGroup("").getEntryCount()); + + /*assertEquals("There are still groups in the roster", 0, roster.getGroupCount()); assertEquals( "Wrong number of entries in the group \"\" ", 2, - roster.getUnfiledEntryCount()); + roster.getUnfiledEntryCount());*/ cleanUpRoster(); Thread.sleep(200);