Package org.igniterealtime.smack.inttest
Class AbstractSmackLowLevelIntegrationTest
java.lang.Object
org.igniterealtime.smack.inttest.AbstractSmackIntTest
org.igniterealtime.smack.inttest.AbstractSmackLowLevelIntegrationTest
- Direct Known Subclasses:
AbstractSmackSpecificLowLevelIntegrationTest,LoginIntegrationTest,LowLevelRosterIntegrationTest,MultiUserChatLowLevelIntegrationTest,SimpleXmppConnectionIntegrationTest,WaitForClosingStreamElementTest,XmppConnectionIntegrationTest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceNested classes/interfaces inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
AbstractSmackIntTest.Condition -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConfigurationThe configurationprotected final org.jxmpp.jid.DomainBareJidFields inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
INSECURE_RANDOM, LOGGER, sinttestConfiguration, testRunId, timeout -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jivesoftware.smack.AbstractXMPPConnectionGet a connected connection.protected voidrecycle(org.jivesoftware.smack.AbstractXMPPConnection connection) Methods inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
assertResult, assertResult, assertResult, assertResult, createNewTempFile, getHttpUrlConnectionFor, performActionAndWaitUntilStanzaReceived, waitUntilTrue
-
Field Details
-
configuration
The configuration -
service
protected final org.jxmpp.jid.DomainBareJid service
-
-
Constructor Details
-
AbstractSmackLowLevelIntegrationTest
-
-
Method Details
-
getConnectedConnection
protected org.jivesoftware.smack.AbstractXMPPConnection getConnectedConnection() throws InterruptedException, org.jivesoftware.smack.SmackException, IOException, org.jivesoftware.smack.XMPPExceptionGet a connected connection. Note that this method will return a connection constructed via the default connection descriptor. It is primarily meant for integration tests to discover if the XMPP service supports a certain feature, that the integration test requires to run. This feature discovery is typically done in the constructor of the integration tests. And if the discovery fails aTestNotPossibleExceptionshould be thrown by the constructor.Please ensure that you invoke
recycle(AbstractXMPPConnection connection)once you are done with this connection.- Returns:
- a connected connection.
- Throws:
InterruptedException- if the calling thread was interrupted.org.jivesoftware.smack.SmackException- if Smack detected an exceptional situation.IOException- if an I/O error occurred.org.jivesoftware.smack.XMPPException- if an XMPP protocol error was received.
-
recycle
protected void recycle(org.jivesoftware.smack.AbstractXMPPConnection connection)
-