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:
parent
8274a9f25b
commit
c9dd1cdc40
4 changed files with 144 additions and 59 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue