mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +02:00
s/processPacket/processStanza/ s/PacketCollector/StanzaCollector/
This commit is contained in:
parent
9328182912
commit
90a5e289f8
100 changed files with 406 additions and 406 deletions
|
@ -20,7 +20,7 @@ import java.util.Random;
|
|||
import java.util.concurrent.TimeoutException;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.jivesoftware.smack.PacketCollector;
|
||||
import org.jivesoftware.smack.StanzaCollector;
|
||||
import org.jivesoftware.smack.SmackException.NoResponseException;
|
||||
import org.jivesoftware.smack.SmackException.NotConnectedException;
|
||||
import org.jivesoftware.smack.XMPPConnection;
|
||||
|
@ -44,9 +44,9 @@ public abstract class AbstractSmackIntTest {
|
|||
|
||||
protected void performActionAndWaitUntilStanzaReceived(Runnable action, XMPPConnection connection, StanzaFilter filter)
|
||||
throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
|
||||
PacketCollector.Configuration configuration = PacketCollector.newConfiguration().setStanzaFilter(
|
||||
StanzaCollector.Configuration configuration = StanzaCollector.newConfiguration().setStanzaFilter(
|
||||
filter).setSize(1);
|
||||
PacketCollector collector = connection.createPacketCollector(configuration);
|
||||
StanzaCollector collector = connection.createStanzaCollector(configuration);
|
||||
|
||||
try {
|
||||
action.run();
|
||||
|
|
|
@ -67,7 +67,7 @@ public class ChatTest extends AbstractSmackIntegrationTest {
|
|||
@SmackIntegrationTest
|
||||
public void testProperties() throws XmppStringprepException, NotConnectedException, Exception {
|
||||
Chat newChat = chatManagerOne.createChat(conTwo.getUser());
|
||||
PacketCollector collector = conTwo.createPacketCollector(new ThreadFilter(newChat.getThreadID()));
|
||||
StanzaCollector collector = conTwo.createStanzaCollector(new ThreadFilter(newChat.getThreadID()));
|
||||
|
||||
Message msg = new Message();
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ public class StreamManagementTest extends AbstractSmackLowLevelIntegrationTest {
|
|||
final String body2 = "Hi, what's up? I've been just instantly shutdown" + testRunId;
|
||||
final String body3 = "Hi, what's up? I've been just resumed" + testRunId;
|
||||
|
||||
final PacketCollector collector = conTwo.createPacketCollector(new AndFilter(
|
||||
final StanzaCollector collector = conTwo.createStanzaCollector(new AndFilter(
|
||||
MessageWithBodiesFilter.INSTANCE,
|
||||
FromMatchesFilter.createFull(conOne.getUser())));
|
||||
|
||||
|
@ -84,7 +84,7 @@ public class StreamManagementTest extends AbstractSmackLowLevelIntegrationTest {
|
|||
from.sendStanza(message);
|
||||
}
|
||||
|
||||
private static void assertMessageWithBodyReceived(String body, PacketCollector collector) throws InterruptedException {
|
||||
private static void assertMessageWithBodyReceived(String body, StanzaCollector collector) throws InterruptedException {
|
||||
Message message = collector.nextResult();
|
||||
assertNotNull(message);
|
||||
assertEquals(body, message.getBody());
|
||||
|
|
|
@ -134,7 +134,7 @@ public class EntityCapsTest extends AbstractSmackIntegrationTest {
|
|||
conOne.addPacketSendingListener(new StanzaListener() {
|
||||
|
||||
@Override
|
||||
public void processPacket(Stanza stanza) {
|
||||
public void processStanza(Stanza stanza) {
|
||||
discoInfoSend = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue