Smack/smack-extensions/src/test/java/org/jivesoftware/smackx
Florian Schmaus ed02bcf0d4 [ibb] Ensure InBandBytestreamManager is a singleton
InBandBytestreamManager followed an unusual pattern: Within the
connectionTermianted() callback, it would remove itself from the
'managers' map. This allowed for multiple instances of an
InBandBytestreamManager to exist for the same connection, causing all
kinds of issues.

This fixes the issue by changing InBandBytestreamManager to use the
Smack-idiomatic pattern used by managers.

We also do no longer reset the listeners if the connection is
termianted, as listeners (and handlers) typically persist until they
are explicitly removed by the user.

As positive side-effect, the number of indeterministic unit-tests,
caused by using Thread.sleep(), is reduced. The executor service in
InitiationListener was also removed, because the IQ handler is already
called asynchronously to the connections main loop.

Thanks to Anno van Vliet for reporting this.
2020-07-03 22:01:15 +02:00
..
amp Replace JUnit4 with JUnit5 in `smack-extensions`. 2020-04-07 15:46:21 +05:30
attention Rename XmlUnitUtils to XmlAssertUtil 2020-06-14 16:53:21 +02:00
blocking Replace JUnit4 with JUnit5 in `smack-extensions`. 2020-04-07 15:46:21 +05:30
bob Replace JUnit4 with JUnit5 in `smack-extensions`. 2020-04-07 15:46:21 +05:30
bytestreams [ibb] Ensure InBandBytestreamManager is a singleton 2020-07-03 22:01:15 +02:00
caps Re-work data form API 2020-05-13 20:14:41 +02:00
commands/provider Replace JUnit4 with JUnit5 in `smack-extensions`. 2020-04-07 15:46:21 +05:30
delay/provider test: remove InitExtensions 2020-04-12 09:34:08 +02:00
filetransfer test: remove InitExtensions 2020-04-12 09:34:08 +02:00
forward Replace JUnit4 with JUnit5 in `smack-extensions`. 2020-04-07 15:46:21 +05:30
geoloc geoloc: GeoLocation constructor should have Builder as sole paramter 2020-04-13 20:39:43 +02:00
iqlast test: remove InitExtensions 2020-04-12 09:34:08 +02:00
iqversion test: remove InitExtensions 2020-04-12 09:34:08 +02:00
jingle extensions: comment out unfinished jingle util test 2020-04-12 12:07:32 +02:00
jiveproperties test: remove InitExtensions 2020-04-12 09:34:08 +02:00
last_interaction Rename XmlUnitUtils to XmlAssertUtil 2020-06-14 16:53:21 +02:00
mediaelement Replace JUnit4 with JUnit5 in `smack-extensions`. 2020-04-07 15:46:21 +05:30
message_correct Replace JUnit4 with JUnit5 in `smack-extensions`. 2020-04-07 15:46:21 +05:30
mood Rename XmlUnitUtils to XmlAssertUtil 2020-06-14 16:53:21 +02:00
muc Re-work data form API 2020-05-13 20:14:41 +02:00
nick Rename XmlUnitUtils to XmlAssertUtil 2020-06-14 16:53:21 +02:00
ping test: remove InitExtensions 2020-04-12 09:34:08 +02:00
privacy/provider test: remove InitExtensions 2020-04-12 09:34:08 +02:00
pubsub Rename XmlUnitUtils to XmlAssertUtil 2020-06-14 16:53:21 +02:00
receipts test: remove InitExtensions 2020-04-12 09:34:08 +02:00
rsm/provider test: remove InitExtensions 2020-04-12 09:34:08 +02:00
shim/provider Replace JUnit4 with JUnit5 in `smack-extensions`. 2020-04-07 15:46:21 +05:30
softwareinfo Rename XmlUnitUtils to XmlAssertUtil 2020-06-14 16:53:21 +02:00
time test: remove InitExtensions 2020-04-12 09:34:08 +02:00
usertune Rename XmlUnitUtils to XmlAssertUtil 2020-06-14 16:53:21 +02:00
vcardtemp test: remove InitExtensions 2020-04-12 09:34:08 +02:00
xdata Rename XmlUnitUtils to XmlAssertUtil 2020-06-14 16:53:21 +02:00
xdatalayout/packet Replace JUnit4 with JUnit5 in `smack-extensions`. 2020-04-07 15:46:21 +05:30
xdatavalidation [core] Improve NumberUtil's exception message and fix javadoc 2020-05-24 13:08:03 +02:00
xhtmlim/provider Replace JUnit4 with JUnit5 in `smack-extensions`. 2020-04-07 15:46:21 +05:30
ExtensionsInitializerTest.java Replace JUnit4 with JUnit5 in `smack-extensions`. 2020-04-07 15:46:21 +05:30