Package org.igniterealtime.smack.inttest
Class AbstractSmackIntTest
- java.lang.Object
-
- org.igniterealtime.smack.inttest.AbstractSmackIntTest
-
- Direct Known Subclasses:
AbstractSmackIntegrationTest
,AbstractSmackLowLevelIntegrationTest
public abstract class AbstractSmackIntTest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
AbstractSmackIntTest.Condition
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Random
INSECURE_RANDOM
protected static java.util.logging.Logger
LOGGER
protected Configuration
sinttestConfiguration
protected java.lang.String
testRunId
protected long
timeout
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSmackIntTest(SmackIntegrationTestEnvironment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.File
createNewTempFile()
protected java.net.HttpURLConnection
getHttpUrlConnectionFor(java.net.URL url)
protected void
performActionAndWaitUntilStanzaReceived(java.lang.Runnable action, org.jivesoftware.smack.XMPPConnection connection, org.jivesoftware.smack.filter.StanzaFilter filter)
protected void
waitUntilTrue(AbstractSmackIntTest.Condition condition)
-
-
-
Field Detail
-
LOGGER
protected static final java.util.logging.Logger LOGGER
-
INSECURE_RANDOM
protected static final java.util.Random INSECURE_RANDOM
-
testRunId
protected final java.lang.String testRunId
-
timeout
protected final long timeout
-
sinttestConfiguration
protected final Configuration sinttestConfiguration
-
-
Constructor Detail
-
AbstractSmackIntTest
protected AbstractSmackIntTest(SmackIntegrationTestEnvironment environment)
-
-
Method Detail
-
performActionAndWaitUntilStanzaReceived
protected void performActionAndWaitUntilStanzaReceived(java.lang.Runnable action, org.jivesoftware.smack.XMPPConnection connection, org.jivesoftware.smack.filter.StanzaFilter filter) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
-
waitUntilTrue
protected void waitUntilTrue(AbstractSmackIntTest.Condition condition) throws java.util.concurrent.TimeoutException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
java.util.concurrent.TimeoutException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
-
createNewTempFile
protected java.io.File createNewTempFile() throws java.io.IOException
- Throws:
java.io.IOException
-
getHttpUrlConnectionFor
protected java.net.HttpURLConnection getHttpUrlConnectionFor(java.net.URL url) throws java.io.IOException
- Throws:
java.io.IOException
-
-