mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-08 22:21:08 +01:00
Change IQ.Type to enum
This commit is contained in:
parent
944ac37fc3
commit
9be0c480e3
90 changed files with 284 additions and 299 deletions
|
|
@ -104,7 +104,7 @@
|
|||
// public void processPacket(Packet packet) {
|
||||
// latch.countDown();
|
||||
// }
|
||||
// }, new IQTypeFilter(IQ.Type.RESULT));
|
||||
// }, new IQTypeFilter(IQ.Type.result));
|
||||
//
|
||||
// // Time based testing kind of sucks, but this should be reliable on a DummyConnection since there
|
||||
// // is no actual server involved. This will provide enough time to ping and wait for the lack of response.
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ public class PingTest extends InitExtensions {
|
|||
IQ pong = (IQ) pongPacket;
|
||||
assertEquals("capulet.lit", pong.getTo());
|
||||
assertEquals("s2c1", pong.getPacketID());
|
||||
assertEquals(IQ.Type.RESULT, pong.getType());
|
||||
assertEquals(IQ.Type.result, pong.getType());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue