|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smack.RosterTest
public class RosterTest
Tests that verifies the correct behavior of the Roster implementation.
Roster,
Roster Management| Nested Class Summary | |
|---|---|
static class |
RosterTest.TestRosterListener
This class can be used to check if the RosterListener was invoked. |
| Constructor Summary | |
|---|---|
RosterTest()
|
|
| Method Summary | |
|---|---|
static void |
initRoster(DummyConnection connection,
Roster roster)
Initialize the roster according to the example in RFC3921: Retrieving One's Roster on Login. |
static void |
removeAllRosterEntries(DummyConnection connection,
Roster roster)
Remove all roster entries by iterating trough Roster.getEntries()
and simulating receiving roster pushes from the server. |
void |
setUp()
|
void |
tearDown()
|
void |
testAddEmptyGroupEntry()
Test if adding an user with an empty group is equivalent with providing no group. |
void |
testAddRosterItem()
Test adding a roster item according to the example in RFC3921: Adding a Roster Item. |
void |
testDeleteRosterItem()
Test deleting a roster item according to the example in RFC3921: Deleting a Roster Item. |
void |
testEmptyGroupRosterPush()
Test processing a roster push with an empty group is equivalent with providing no group. |
void |
testSimpleRosterInitialization()
Test a simple roster initialization according to the example in RFC3921: Retrieving One's Roster on Login. |
void |
testSimpleRosterPush()
Test a simple roster push according to the example in RFC3921bis-03: Roster Push. |
void |
testUpdateRosterItem()
Test updating a roster item according to the example in RFC3921: Updating a Roster Item. |
static void |
verifyBenvoliosEntry(RosterEntry benvolio)
Check Benvolio's roster entry according to the example in RFC3921: Retrieving One's Roster on Login. |
static void |
verifyMercutiosEntry(RosterEntry mercutio)
Check Mercutio's roster entry according to the example in RFC3921: Retrieving One's Roster on Login. |
static void |
verifyRomeosEntry(RosterEntry romeo)
Check Romeo's roster entry according to the example in RFC3921: Retrieving One's Roster on Login. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RosterTest()
| Method Detail |
|---|
public void setUp()
throws java.lang.Exception
java.lang.Exception
public void tearDown()
throws java.lang.Exception
java.lang.Exception
public void testSimpleRosterInitialization()
throws java.lang.Exception
java.lang.Exception
public void testAddRosterItem()
throws java.lang.Throwable
java.lang.Throwable
public void testUpdateRosterItem()
throws java.lang.Throwable
java.lang.Throwable
public void testDeleteRosterItem()
throws java.lang.Throwable
java.lang.Throwable
public void testSimpleRosterPush()
throws java.lang.Throwable
java.lang.Throwable
public void testAddEmptyGroupEntry()
throws java.lang.Throwable
java.lang.Throwable
public void testEmptyGroupRosterPush()
throws java.lang.Throwable
java.lang.Throwable
public static void removeAllRosterEntries(DummyConnection connection,
Roster roster)
throws java.lang.InterruptedException,
XMPPException
Roster.getEntries()
and simulating receiving roster pushes from the server.
connection - the dummy connection of which the provided roster belongs to.roster - the roster (or buddy list) which should be initialized.
java.lang.InterruptedException
XMPPException
public static void initRoster(DummyConnection connection,
Roster roster)
throws java.lang.InterruptedException,
XMPPException
connection - the dummy connection of which the provided roster belongs to.roster - the roster (or buddy list) which should be initialized.
java.lang.InterruptedException
XMPPExceptionpublic static void verifyRomeosEntry(RosterEntry romeo)
romeo - the roster entry which should be verified.public static void verifyMercutiosEntry(RosterEntry mercutio)
mercutio - the roster entry which should be verified.public static void verifyBenvoliosEntry(RosterEntry benvolio)
benvolio - the roster entry which should be verified.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||