mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Rename processPacket to processStanza
and assert that 'stanza' is a Stanza.
This commit is contained in:
parent
1cd268a8f0
commit
2f219c7317
11 changed files with 33 additions and 44 deletions
|
@ -46,7 +46,7 @@ public class LastActivityTest extends InitExtensions {
|
|||
IQ lastRequest = (IQ) PacketParserUtils.parseStanza(xml.asString());
|
||||
assertTrue(lastRequest instanceof LastActivity);
|
||||
|
||||
c.processPacket(lastRequest);
|
||||
c.processStanza(lastRequest);
|
||||
Stanza reply = c.getSentPacket();
|
||||
assertTrue(reply instanceof LastActivity);
|
||||
LastActivity l = (LastActivity) reply;
|
||||
|
|
|
@ -47,7 +47,7 @@ public class VersionTest extends InitExtensions {
|
|||
|
||||
assertTrue(versionRequest instanceof Version);
|
||||
|
||||
con.processPacket(versionRequest);
|
||||
con.processStanza(versionRequest);
|
||||
|
||||
Stanza replyPacket = con.getSentPacket();
|
||||
assertTrue(replyPacket instanceof Version);
|
||||
|
|
|
@ -56,7 +56,7 @@ public class PingTest extends InitExtensions {
|
|||
|
||||
assertTrue(pingRequest instanceof Ping);
|
||||
|
||||
con.processPacket(pingRequest);
|
||||
con.processStanza(pingRequest);
|
||||
|
||||
Stanza pongPacket = con.getSentPacket();
|
||||
assertTrue(pongPacket instanceof IQ);
|
||||
|
|
|
@ -85,7 +85,7 @@ public class DeliveryReceiptTest extends InitExtensions {
|
|||
m.setFrom(JidCreate.from("julia@capulet.com"));
|
||||
m.setStanzaId("reply-id");
|
||||
m.addExtension(new DeliveryReceipt("original-test-id"));
|
||||
c.processPacket(m);
|
||||
c.processStanza(m);
|
||||
|
||||
rrl.waitUntilInvocationOrTimeout();
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ public class DeliveryReceiptTest extends InitExtensions {
|
|||
DeliveryReceiptRequest.addTo(m);
|
||||
|
||||
// the DRM will send a reply-packet
|
||||
c.processPacket(m);
|
||||
c.processStanza(m);
|
||||
|
||||
Stanza reply = c.getSentPacket();
|
||||
DeliveryReceipt r = DeliveryReceipt.from((Message) reply);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue