1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-15 03:59:38 +02:00

Improved iqVersion code

including parsing and the version class.
This commit is contained in:
Florian Schmaus 2014-08-08 14:56:54 +02:00
parent 8274a9f25b
commit c9dd1cdc40
4 changed files with 144 additions and 59 deletions

View file

@ -37,7 +37,8 @@ public class VersionTest {
DummyConnection con = new DummyConnection();
// Enable version replys for this connection
VersionManager.getInstanceFor(con).setVersion(new Version("Test", "0.23", "DummyOS"));
VersionManager.setAutoAppendSmackVersion(false);
VersionManager.getInstanceFor(con).setVersion("Test", "0.23", "DummyOS");
IQ versionRequest = (IQ) PacketParserUtils.parseStanza(control);
assertTrue(versionRequest instanceof Version);