1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-11 01:59:38 +02:00

Add XMPPConnection.sendStanza(Stanza)

and deprecate sendPacket().
This commit is contained in:
Florian Schmaus 2015-03-04 21:44:43 +01:00
parent 183af99ffb
commit ed4fa3390f
58 changed files with 183 additions and 167 deletions

View file

@ -53,7 +53,7 @@ public class ConnectionUtils {
* <pre>
* <code>
* PacketCollector collector = connection.createPacketCollector(new PacketFilter());
* connection.sendPacket(packet);
* connection.sendStanza(packet);
* Packet reply = collector.nextResult();
* </code>
* </pre>
@ -95,7 +95,7 @@ public class ConnectionUtils {
return null;
}
};
doAnswer(addIncoming).when(connection).sendPacket(isA(Stanza.class));
doAnswer(addIncoming).when(connection).sendStanza(isA(Stanza.class));
// mock receive methods
Answer<Stanza> answer = new Answer<Stanza>() {