mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-17 04:32:04 +01:00
Fixed test case.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3176 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
18ad3cfb66
commit
6dc7d05a5d
1 changed files with 3 additions and 3 deletions
|
@ -421,6 +421,7 @@ public class RosterTest extends SmackTestCase {
|
||||||
2,
|
2,
|
||||||
roster.getGroup("Amigos").getEntryCount());
|
roster.getGroup("Amigos").getEntryCount());
|
||||||
|
|
||||||
|
// Setting the name to empty is like removing this group
|
||||||
roster.getGroup("Amigos").setName("");
|
roster.getGroup("Amigos").setName("");
|
||||||
|
|
||||||
// Wait up to 2 seconds for the group to change its name
|
// Wait up to 2 seconds for the group to change its name
|
||||||
|
@ -430,12 +431,11 @@ public class RosterTest extends SmackTestCase {
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
assertNull("The group Amigos still exists", roster.getGroup("Amigos"));
|
assertEquals("There are still groups in the roster", 0, roster.getGroupCount());
|
||||||
assertNotNull("The group with no name does not exist", roster.getGroup(""));
|
|
||||||
assertEquals(
|
assertEquals(
|
||||||
"Wrong number of entries in the group \"\" ",
|
"Wrong number of entries in the group \"\" ",
|
||||||
2,
|
2,
|
||||||
roster.getGroup("").getEntryCount());
|
roster.getUnfiledEntryCount());
|
||||||
|
|
||||||
cleanUpRoster();
|
cleanUpRoster();
|
||||||
Thread.sleep(200);
|
Thread.sleep(200);
|
||||||
|
|
Loading…
Reference in a new issue