1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-16 17:22:06 +01:00
Smack/smack-extensions/src/integration-test/java/org/jivesoftware/smackx
Florian Schmaus 717090d272 Rework incoming packet listeners and Roster
Differentiate between asynchronous and synchronous ones. Asynchronous
are the ones where the invocation order may not be the same as the order
in which the stanzas arrived.

Since it's no longer guaranteed that when a unit test calls

processPacket(stanza)

the stanza will be completely processed when the call returns, it was
necessary to extend the unit tests (mostly Roster and ChatManager) with
a packet listener that waits for his invocation. Since we now also use
LinkedHashMaps as Map for the packet listeners (SMACK-531, SMACK-424),
adding a packet listeners as last also means that it will be called as
last. We exploit this behavior change now in the unit tests.

Rename 'recvListeners' to 'syncRecvListeners' in AbstractXMPPConnection.

Rename 'rosterInitialized' to 'loaded' in Roster.

Add Roster.isLoaded().

Reset 'loaded' to false in
Roster.setOfflinePresencesAndResetLoaded() (was setOfflinePresences()).

Fixes SMACK-583, SMACK-532, SMACK-424
2015-01-07 14:35:23 +01:00
..
bytestreams Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
commands Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
entitycaps Change IQ.Type to enum 2014-06-06 21:10:13 -03:00
muc Remove MUC DeafOccupantIntercepter 2014-10-09 23:12:22 +02:00
packet Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
pubsub Rework Smack Provider design 2014-10-08 16:01:14 +02:00
CompressionTest.java Merge branch '4.0' 2014-07-05 14:37:22 +02:00
FileTransferTest.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
FormTest.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
GroupChatInvitationTest.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
LastActivityManagerTest.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
MessageEventManagerTest.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
MessageEventTests.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
MultipleRecipientManagerTest.java s/JEP/XEP/ 2014-06-14 11:48:46 +02:00
OfflineMessageManagerTest.java s/JEP/XEP/ 2014-06-14 11:48:46 +02:00
RosterExchangeManagerTest.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
RosterExchangeTests.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
ServiceDiscoveryManagerTest.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
SharedGroupsTest.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
VCardTest.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
VersionTest.java Change IQ.Type to enum 2014-06-06 21:10:13 -03:00
XHTMLManagerTest.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
XHTMLSupportTests.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00