From 6dc7d05a5d8180ea37474dd0c46a486e9c7344fd Mon Sep 17 00:00:00 2001 From: Gaston Dombiak Date: Thu, 8 Dec 2005 21:05:12 +0000 Subject: [PATCH] Fixed test case. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3176 b35dd754-fafc-0310-a699-88a17e54d16e --- test/org/jivesoftware/smack/RosterTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/org/jivesoftware/smack/RosterTest.java b/test/org/jivesoftware/smack/RosterTest.java index 352df4a25..a66aa9f86 100644 --- a/test/org/jivesoftware/smack/RosterTest.java +++ b/test/org/jivesoftware/smack/RosterTest.java @@ -421,6 +421,7 @@ public class RosterTest extends SmackTestCase { 2, roster.getGroup("Amigos").getEntryCount()); + // Setting the name to empty is like removing this group roster.getGroup("Amigos").setName(""); // Wait up to 2 seconds for the group to change its name @@ -430,12 +431,11 @@ public class RosterTest extends SmackTestCase { Thread.sleep(100); } - assertNull("The group Amigos still exists", roster.getGroup("Amigos")); - assertNotNull("The group with no name does not exist", roster.getGroup("")); + assertEquals("There are still groups in the roster", 0, roster.getGroupCount()); assertEquals( "Wrong number of entries in the group \"\" ", 2, - roster.getGroup("").getEntryCount()); + roster.getUnfiledEntryCount()); cleanUpRoster(); Thread.sleep(200);