mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-05 12:41:08 +01:00
Rename 'Packet' class to 'Stanza'
Smack still uses the term 'Packet' in some places. This is just the first step towards using correct XMPP terms in Smack.
This commit is contained in:
parent
9fc26f1d83
commit
4698805a34
142 changed files with 595 additions and 572 deletions
|
|
@ -59,7 +59,7 @@ public class CompressionTest extends SmackTestCase {
|
|||
version.setTo(getServiceName());
|
||||
|
||||
// Create a packet collector to listen for a response.
|
||||
PacketCollector collector = connection.createPacketCollector(new PacketIDFilter(version.getPacketID()));
|
||||
PacketCollector collector = connection.createPacketCollector(new PacketIDFilter(version.getStanzaId()));
|
||||
|
||||
connection.sendPacket(version);
|
||||
|
||||
|
|
|
|||
|
|
@ -212,9 +212,9 @@ public class MessageEventManagerTest extends SmackTestCase {
|
|||
// Send the message that contains the notifications request
|
||||
try {
|
||||
chat1.sendMessage(msg);
|
||||
messageEventManager2.sendDisplayedNotification(getBareJID(0), msg.getPacketID());
|
||||
messageEventManager2.sendComposingNotification(getBareJID(0), msg.getPacketID());
|
||||
messageEventManager2.sendCancelledNotification(getBareJID(0), msg.getPacketID());
|
||||
messageEventManager2.sendDisplayedNotification(getBareJID(0), msg.getStanzaId());
|
||||
messageEventManager2.sendComposingNotification(getBareJID(0), msg.getStanzaId());
|
||||
messageEventManager2.sendCancelledNotification(getBareJID(0), msg.getStanzaId());
|
||||
// Wait up to 2 seconds
|
||||
long initial = System.currentTimeMillis();
|
||||
while (System.currentTimeMillis() - initial < 2000 &&
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public class VersionTest extends SmackTestCase {
|
|||
version.setTo(getServiceName());
|
||||
|
||||
// Create a packet collector to listen for a response.
|
||||
PacketCollector collector = getConnection(0).createPacketCollector(new PacketIDFilter(version.getPacketID()));
|
||||
PacketCollector collector = getConnection(0).createPacketCollector(new PacketIDFilter(version.getStanzaId()));
|
||||
|
||||
getConnection(0).sendPacket(version);
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ public class InBandBytestreamTest extends SmackTestCase {
|
|||
open.setTo(targetConnection.getUser());
|
||||
|
||||
PacketCollector collector = initiatorConnection.createPacketCollector(new PacketIDFilter(
|
||||
open.getPacketID()));
|
||||
open.getStanzaId()));
|
||||
initiatorConnection.sendPacket(open);
|
||||
Packet result = collector.nextResult();
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ public class Socks5ByteStreamTest extends SmackTestCase {
|
|||
bytestreamInitiation.addStreamHost("proxy.localhost", "127.0.0.1", 7777);
|
||||
|
||||
PacketCollector collector = initiatorConnection.createPacketCollector(new PacketIDFilter(
|
||||
bytestreamInitiation.getPacketID()));
|
||||
bytestreamInitiation.getStanzaId()));
|
||||
initiatorConnection.sendPacket(bytestreamInitiation);
|
||||
Packet result = collector.nextResult();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue