1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-09-10 18:59:41 +02:00

Globally 's;stanza(/packet);stanza;'

This commit is contained in:
Florian Schmaus 2018-03-31 14:17:30 +02:00
parent 1d12be1644
commit ad87243060
171 changed files with 911 additions and 599 deletions

View file

@ -45,7 +45,7 @@ public class DataListenerTest extends InitExtensions {
private static final Jid targetJID = JidTestUtil.FULL_JID_1_RESOURCE_1;
/**
* If a data stanza(/packet) of an unknown session is received it should be replied
* If a data stanza of an unknown session is received it should be replied
* with an <item-not-found/> error.
*
* @throws Exception should not happen

View file

@ -252,7 +252,7 @@ public class InBandBytestreamSessionMessageTest extends InitExtensions {
}
/**
* If a data stanza(/packet) is received out of order the session should be closed. See XEP-0047 Section
* If a data stanza is received out of order the session should be closed. See XEP-0047 Section
* 2.2.
*
* @throws Exception should not happen

View file

@ -363,7 +363,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
}
/**
* If the data stanza(/packet) has a sequence that is already used an 'unexpected-request' error should
* If the data stanza has a sequence that is already used an 'unexpected-request' error should
* be returned. See XEP-0047 Section 2.2.
*
* @throws Exception should not happen
@ -405,7 +405,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
}
/**
* If the data stanza(/packet) contains invalid Base64 encoding an 'bad-request' error should be
* If the data stanza contains invalid Base64 encoding an 'bad-request' error should be
* returned. See XEP-0047 Section 2.2.
*
* @throws Exception should not happen
@ -441,7 +441,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
}
/**
* If a data stanza(/packet) is received out of order the session should be closed. See XEP-0047 Section
* If a data stanza is received out of order the session should be closed. See XEP-0047 Section
* 2.2.
*
* @throws Exception should not happen

View file

@ -51,7 +51,7 @@ public class Socks5PacketUtils {
}
/**
* Returns a response to a SOCKS5 Bytestream initialization request. The stanza(/packet) doesn't contain
* Returns a response to a SOCKS5 Bytestream initialization request. The stanza doesn't contain
* the uses-host information.
*
* @param from the target
@ -67,7 +67,7 @@ public class Socks5PacketUtils {
}
/**
* Returns a response to an item discovery request. The stanza(/packet) doesn't contain any items.
* Returns a response to an item discovery request. The stanza doesn't contain any items.
*
* @param from the XMPP server
* @param to the XMPP client
@ -82,7 +82,7 @@ public class Socks5PacketUtils {
}
/**
* Returns a response to an info discovery request. The stanza(/packet) doesn't contain any infos.
* Returns a response to an info discovery request. The stanza doesn't contain any infos.
*
* @param from the target
* @param to the initiator

View file

@ -46,7 +46,7 @@ import org.mockito.stubbing.Answer;
public class ConnectionUtils {
/**
* Creates a mocked XMPP connection that stores every stanza(/packet) that is send over this
* Creates a mocked XMPP connection that stores every stanza that is send over this
* connection in the given protocol instance and returns the predefined answer packets
* form the protocol instance.
* <p>

View file

@ -50,7 +50,7 @@ import org.jivesoftware.smack.packet.Stanza;
* <pre>
* <code>
* public void methodToTest() {
* Stanza(/Packet) stanza(/packet) = new Packet(); // create an XMPP packet
* Stanza(/Packet) stanza = new Packet(); // create an XMPP packet
* StanzaCollector collector = connection.createStanzaCollector(new StanzaIdFilter());
* connection.sendStanza(packet);
* Stanza(/Packet) reply = collector.nextResult();
@ -62,7 +62,7 @@ import org.jivesoftware.smack.packet.Stanza;
* // create mocked connection
* XMPPConnection connection = ConnectionUtils.createMockedConnection(protocol, "user@xmpp-server", "xmpp-server");
*
* // add reply stanza(/packet) to protocol
* // add reply stanza to protocol
* Stanza(/Packet) reply = new Packet();
* protocol.add(reply);
*