Smack/smack-core/src/test/java/org/jivesoftware/smack
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
..
filters Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
packet Rework XMPP Error class design 2014-11-25 13:19:32 +01:00
parsing Rework Smack Provider design 2014-10-08 16:01:14 +02:00
provider Rework Smack Provider design 2014-10-08 16:01:14 +02:00
rosterstore Create org.jivesoftware.smack.rosterstore package 2014-08-16 15:37:16 +02:00
sasl Add SCRAM-SHA1 support 2014-10-21 15:03:48 +02:00
test/util Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
util Add support for SASL failure 'text' elements 2014-11-19 09:57:39 +01:00
ChatConnectionTest.java Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
DummyConnection.java Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
PacketCollectorTest.java Add support for SASL failure 'text' elements 2014-11-19 09:57:39 +01:00
RosterTest.java Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
RosterVersioningTest.java Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
SmackConfigurationTest.java Split SmackConfiguration into Configuration and Initalization 2014-09-05 15:56:00 +02:00
SmackExceptionTest.java Remove trailing comma in ConnectionException message 2014-10-05 12:19:33 +02:00
StanzaIdTest.java Enable PacketExtensions for IQs 2014-11-10 11:43:18 +01:00
ThreadedDummyConnection.java Fix PubSub namespaces 2014-12-17 13:34:49 +01:00