1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 17:19:39 +02:00

s/occured/occurred/

This commit is contained in:
Florian Schmaus 2019-10-30 12:02:36 +01:00
parent b0277d7e74
commit eb4c2c5572
50 changed files with 196 additions and 196 deletions

View file

@ -58,7 +58,7 @@ public class MessageEventManagerTest extends SmackTestCase {
try {
chat1.sendMessage(msg);
} catch (Exception e) {
fail("An error occured sending the message");
fail("An error occurred sending the message");
}
}
@ -113,7 +113,7 @@ public class MessageEventManagerTest extends SmackTestCase {
// Wait a few seconds so that the XMPP client can send any event
Thread.sleep(200);
} catch (Exception e) {
fail("An error occured sending the message");
fail("An error occurred sending the message");
}
}
@ -229,7 +229,7 @@ public class MessageEventManagerTest extends SmackTestCase {
results.containsAll(resultsExpected));
} catch (Exception e) {
fail("An error occured sending the message");
fail("An error occurred sending the message");
}
}

View file

@ -56,7 +56,7 @@ public class RosterExchangeManagerTest extends SmackTestCase {
}
catch (Exception e) {
e.printStackTrace();
fail("An error occured sending the roster");
fail("An error occurred sending the roster");
}
}
@ -76,7 +76,7 @@ public class RosterExchangeManagerTest extends SmackTestCase {
}
catch (Exception e) {
e.printStackTrace();
fail("An error occured sending the roster");
fail("An error occurred sending the roster");
}
}
@ -121,7 +121,7 @@ public class RosterExchangeManagerTest extends SmackTestCase {
}
}
catch (Exception e) {
fail("An error occured sending the message with the roster");
fail("An error occurred sending the message with the roster");
}
assertEquals(
"Number of sent and received entries does not match",
@ -179,7 +179,7 @@ public class RosterExchangeManagerTest extends SmackTestCase {
}
}
catch (Exception e) {
fail("An error occured sending the message with the roster");
fail("An error occurred sending the message with the roster");
}
assertEquals(
"Number of sent and received entries does not match",

View file

@ -75,7 +75,7 @@ public class XHTMLManagerTest extends SmackTestCase {
chat1.sendMessage(msg);
Thread.sleep(200);
} catch (Exception e) {
fail("An error occured sending the message with XHTML");
fail("An error occurred sending the message with XHTML");
}
}
@ -116,7 +116,7 @@ public class XHTMLManagerTest extends SmackTestCase {
try {
chat1.sendMessage(msg);
} catch (Exception e) {
fail("An error occured sending the message with XHTML");
fail("An error occurred sending the message with XHTML");
}
Packet packet = chat2.nextResult(2000);
@ -197,7 +197,7 @@ public class XHTMLManagerTest extends SmackTestCase {
bodiesReceived = 0;
chat1.sendMessage(msg);
} catch (Exception e) {
fail("An error occured sending the message with XHTML");
fail("An error occurred sending the message with XHTML");
}
Packet packet = chat2.nextResult(2000);

View file

@ -64,7 +64,7 @@ public class MessageEventTest extends SmackTestCase {
Thread.sleep(200);
}
catch (Exception e) {
fail("An error occured sending the message");
fail("An error occurred sending the message");
}
}
@ -122,7 +122,7 @@ public class MessageEventTest extends SmackTestCase {
Thread.sleep(200);
}
catch (Exception e) {
fail("An error occured sending the message");
fail("An error occurred sending the message");
}
}

View file

@ -58,7 +58,7 @@ public class RosterExchangeTest extends SmackTestCase {
try {
chat1.sendMessage(msg);
} catch (Exception e) {
fail("An error occured sending the message with the roster");
fail("An error occurred sending the message with the roster");
}
}
@ -87,7 +87,7 @@ public class RosterExchangeTest extends SmackTestCase {
try {
chat1.sendMessage(msg);
} catch (Exception e) {
fail("An error occured sending the message with the roster");
fail("An error occurred sending the message with the roster");
}
// Wait for 2 seconds for a reply
Packet packet = chat2.nextResult(2000);
@ -131,7 +131,7 @@ public class RosterExchangeTest extends SmackTestCase {
try {
chat1.sendMessage(msg);
} catch (Exception e) {
fail("An error occured sending the message with the roster");
fail("An error occurred sending the message with the roster");
}
// Wait for 10 seconds for a reply
Packet packet = chat2.nextResult(5000);

View file

@ -68,7 +68,7 @@ public class XHTMLExtensionTest extends SmackTestCase {
Thread.sleep(200);
}
catch (Exception e) {
fail("An error occured sending the message with XHTML");
fail("An error occurred sending the message with XHTML");
}
}
@ -101,7 +101,7 @@ public class XHTMLExtensionTest extends SmackTestCase {
chat1.sendMessage(msg);
}
catch (Exception e) {
fail("An error occured sending the message with XHTML");
fail("An error occurred sending the message with XHTML");
}
Packet packet = chat2.nextResult(2000);
Message message = (Message) packet;
@ -172,7 +172,7 @@ public class XHTMLExtensionTest extends SmackTestCase {
chat1.sendMessage(msg);
}
catch (Exception e) {
fail("An error occured sending the message with XHTML");
fail("An error occurred sending the message with XHTML");
}
Packet packet = chat2.nextResult(2000);
int received = 0;

View file

@ -38,8 +38,8 @@ public class AMPExtensionProvider extends ExtensionElementProvider<AMPExtension>
*
* @param parser the XML parser, positioned at the starting element of the extension.
* @return a PacketExtension.
* @throws IOException if an I/O error occured.
* @throws XmlPullParserException if an error in the XML parser occured.
* @throws IOException if an I/O error occurred.
* @throws XmlPullParserException if an error in the XML parser occurred.
*/
@Override
public AMPExtension parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment)

View file

@ -130,7 +130,7 @@ public class Socks5Client {
* supported by the Socks5Client.
*
* @param socket connected to a SOCKS5 proxy
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
* @throws SmackMessageException if there was an error.
*/
protected void establish(Socket socket) throws IOException, SmackMessageException {

View file

@ -127,7 +127,7 @@ public class SimpleDirectoryPersistentCache implements EntityCapsPersistentCache
*
* @param file TODO javadoc me please
* @param info TODO javadoc me please
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
*/
private static void writeInfoToFile(File file, DiscoverInfo info) throws IOException {
try (DataOutputStream dos = new DataOutputStream(new FileOutputStream(file))) {

View file

@ -110,7 +110,7 @@ public class IncomingFileTransfer extends FileTransfer {
*
* @param file The location to save the file.
* @throws SmackException when the file transfer fails
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
* @throws IllegalArgumentException This exception is thrown when the the provided file is
* either null, or cannot be written to.
*/

View file

@ -229,7 +229,7 @@ public final class LastActivityManager extends Manager {
* the JID of the user.
* @return the LastActivity stanza of the jid.
* @throws XMPPErrorException if there was an XMPP error returned.
* thrown if a server error has occured.
* thrown if a server error has occurred.
* @throws NoResponseException if there was no response from the server.
* @throws NotConnectedException if the XMPP connection is not connected.
* @throws InterruptedException if the calling thread was interrupted.

View file

@ -41,8 +41,8 @@ public interface PrivateDataProvider {
*
* @param parser an XML parser.
* @return a new PrivateData instance.
* @throws XmlPullParserException if an error in the XML parser occured.
* @throws IOException if an I/O error occured.
* @throws XmlPullParserException if an error in the XML parser occurred.
* @throws IOException if an I/O error occurred.
*/
PrivateData parsePrivateData(XmlPullParser parser) throws XmlPullParserException, IOException;
}

View file

@ -48,8 +48,8 @@ public class JivePropertiesExtensionProvider extends ExtensionElementProvider<Ji
*
* @param parser the XML parser, positioned at the start of a properties sub-packet.
* @return a map of the properties.
* @throws IOException if an I/O error occured.
* @throws XmlPullParserException if an error in the XML parser occured.
* @throws IOException if an I/O error occurred.
* @throws XmlPullParserException if an error in the XML parser occurred.
*/
@Override
public JivePropertiesExtension parse(XmlPullParser parser,

View file

@ -1897,7 +1897,7 @@ public class MultiUserChat {
*
* @param role the role of the occupant in the room.
* @return a list of <code>Occupant</code> that have the specified room role.
* @throws XMPPErrorException if an error occured while performing the request to the server or you
* @throws XMPPErrorException if an error occurred while performing the request to the server or you
* don't have enough privileges to get this information.
* @throws NoResponseException if there was no response from the server.
* @throws NotConnectedException if the XMPP connection is not connected.

View file

@ -43,8 +43,8 @@ public class MUCUserProvider extends ExtensionElementProvider<MUCUser> {
*
* @param parser the XML parser, positioned at the starting element of the extension.
* @return a PacketExtension.
* @throws IOException if an I/O error occured.
* @throws XmlPullParserException if an error in the XML parser occured.
* @throws IOException if an I/O error occurred.
* @throws XmlPullParserException if an error in the XML parser occurred.
*/
@Override
public MUCUser parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, IOException {

View file

@ -99,8 +99,8 @@ public class OfflineMessageInfo implements ExtensionElement {
*
* @param parser the XML parser, positioned at the starting element of the extension.
* @return a PacketExtension.
* @throws IOException if an I/O error occured.
* @throws XmlPullParserException if an error in the XML parser occured.
* @throws IOException if an I/O error occurred.
* @throws XmlPullParserException if an error in the XML parser occurred.
*/
@Override
public OfflineMessageInfo parse(XmlPullParser parser,

View file

@ -135,7 +135,7 @@ public class Socks5ByteStreamManagerTest {
* @throws XMPPException if an XMPP protocol error was received.
* @throws InterruptedException if the calling thread was interrupted.
* @throws SmackException if Smack detected an exceptional situation.
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
*/
@Test
public void shouldFailIfTargetDoesNotSupportSocks5()
@ -163,7 +163,7 @@ public class Socks5ByteStreamManagerTest {
* @throws InterruptedException if the calling thread was interrupted.
* @throws SmackException if Smack detected an exceptional situation.
* @throws XMPPException if an XMPP protocol error was received.
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
*/
@Test
public void shouldFailIfNoSocks5ProxyFound1()
@ -215,7 +215,7 @@ public class Socks5ByteStreamManagerTest {
* @throws InterruptedException if the calling thread was interrupted.
* @throws SmackException if Smack detected an exceptional situation.
* @throws XMPPException if an XMPP protocol error was received.
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
*/
@Test
public void shouldFailIfNoSocks5ProxyFound2()
@ -277,7 +277,7 @@ public class Socks5ByteStreamManagerTest {
* @throws InterruptedException if the calling thread was interrupted.
* @throws SmackException if Smack detected an exceptional situation.
* @throws XMPPException if an XMPP protocol error was received.
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
*/
@Test
public void shouldBlacklistNonSocks5Proxies() throws SmackException, InterruptedException, IOException, XMPPException {
@ -360,7 +360,7 @@ public class Socks5ByteStreamManagerTest {
* @throws InterruptedException if the calling thread was interrupted.
* @throws SmackException if Smack detected an exceptional situation.
* @throws XMPPException if an XMPP protocol error was received.
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
*/
@Test
public void shouldFailIfTargetDoesNotAcceptSocks5Bytestream() throws SmackException, InterruptedException, IOException, XMPPException {
@ -440,7 +440,7 @@ public class Socks5ByteStreamManagerTest {
* @throws InterruptedException if the calling thread was interrupted.
* @throws SmackException if Smack detected an exceptional situation.
* @throws XMPPException if an XMPP protocol error was received.
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
*/
@Test
public void shouldFailIfTargetUsesInvalidSocks5Proxy()
@ -622,7 +622,7 @@ public class Socks5ByteStreamManagerTest {
* @throws InterruptedException if the calling thread was interrupted.
* @throws SmackException if Smack detected an exceptional situation.
* @throws XMPPException if an XMPP protocol error was received.
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
*/
@Test
public void shouldNegotiateSocks5BytestreamAndTransferData()
@ -741,7 +741,7 @@ public class Socks5ByteStreamManagerTest {
*
* @throws InterruptedException if the calling thread was interrupted.
* @throws SmackException if Smack detected an exceptional situation.
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
* @throws XMPPException if an XMPP protocol error was received.
* @throws TimeoutException if there was a timeout.
*/
@ -848,7 +848,7 @@ public class Socks5ByteStreamManagerTest {
* @throws InterruptedException if the calling thread was interrupted.
* @throws SmackException if Smack detected an exceptional situation.
* @throws XMPPException if an XMPP protocol error was received.
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
*
*/
@Test
@ -934,7 +934,7 @@ public class Socks5ByteStreamManagerTest {
* should successfully negotiate a SOCKS5 Bytestream via the second SOCKS5 proxy. The second
* negotiation should run in the same manner if prioritization is disabled.
*
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
* @throws InterruptedException if the calling thread was interrupted.
* @throws SmackException if Smack detected an exceptional situation.
* @throws XMPPException if an XMPP protocol error was received.

View file

@ -99,7 +99,7 @@ public class PingTest extends InitExtensions {
* DummyConnection will not reply so it will timeout.
* @throws SmackException if Smack detected an exceptional situation.
* @throws XMPPException if an XMPP protocol error was received.
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
* @throws InterruptedException if the calling thread was interrupted.
*/
@Test
@ -239,7 +239,7 @@ public class PingTest extends InitExtensions {
*
* @return
* @throws XMPPException if an XMPP protocol error was received.
* @throws IOException if an I/O error occured.
* @throws IOException if an I/O error occurred.
* @throws SmackException if Smack detected an exceptional situation.
* @throws InterruptedException if the calling thread was interrupted.
*/