1
0
Fork 0
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:
Florian Schmaus 2015-06-05 14:04:17 +02:00
parent 1cd268a8f0
commit 2f219c7317
11 changed files with 33 additions and 44 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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);

View file

@ -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);