mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-08 06:01:07 +01:00
Add XMPPConnection.sendStanza(Stanza)
and deprecate sendPacket().
This commit is contained in:
parent
183af99ffb
commit
ed4fa3390f
58 changed files with 183 additions and 167 deletions
|
|
@ -63,7 +63,7 @@ public class InBandBytestreamTest extends SmackTestCase {
|
|||
|
||||
PacketCollector collector = initiatorConnection.createPacketCollector(new PacketIDFilter(
|
||||
open.getStanzaId()));
|
||||
initiatorConnection.sendPacket(open);
|
||||
initiatorConnection.sendStanza(open);
|
||||
Packet result = collector.nextResult();
|
||||
|
||||
assertNotNull(result.getError());
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ public class Socks5ByteStreamTest extends SmackTestCase {
|
|||
|
||||
PacketCollector collector = initiatorConnection.createPacketCollector(new PacketIDFilter(
|
||||
bytestreamInitiation.getStanzaId()));
|
||||
initiatorConnection.sendPacket(bytestreamInitiation);
|
||||
initiatorConnection.sendStanza(bytestreamInitiation);
|
||||
Packet result = collector.nextResult();
|
||||
|
||||
assertNotNull(result.getError());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue