mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-12 18:49:39 +02:00
Change IQ.Type to enum
This commit is contained in:
parent
944ac37fc3
commit
9be0c480e3
90 changed files with 284 additions and 299 deletions
|
@ -55,7 +55,7 @@ public class CompressionTest extends SmackTestCase {
|
|||
|
||||
// Request the version of the server
|
||||
Version version = new Version();
|
||||
version.setType(IQ.Type.GET);
|
||||
version.setType(IQ.Type.get);
|
||||
version.setTo(getServiceName());
|
||||
|
||||
// Create a packet collector to listen for a response.
|
||||
|
@ -69,7 +69,7 @@ public class CompressionTest extends SmackTestCase {
|
|||
collector.cancel();
|
||||
|
||||
assertNotNull("No reply was received from the server", result);
|
||||
assertEquals("Incorrect IQ type from server", IQ.Type.RESULT, result.getType());
|
||||
assertEquals("Incorrect IQ type from server", IQ.Type.result, result.getType());
|
||||
|
||||
// Close connection
|
||||
connection.disconnect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue