Package org.igniterealtime.smack.inttest
Class AbstractSmackIntTest
java.lang.Object
org.igniterealtime.smack.inttest.AbstractSmackIntTest
- Direct Known Subclasses:
AbstractSmackIntegrationTest
,AbstractSmackLowLevelIntegrationTest
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final Random
protected static final Logger
protected final Configuration
protected final String
protected final long
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractSmackIntTest
(SmackIntegrationTestEnvironment environment) -
Method Summary
Modifier and TypeMethodDescriptionstatic <R> List<R>
assertResult
(MultiResultSyncPoint<R, ?> syncPoint, long timeout, String message) <R> List<R>
assertResult
(MultiResultSyncPoint<R, ?> syncPoint, String message) static <R> R
assertResult
(ResultSyncPoint<R, ?> syncPoint, long timeout, String message) <R> R
assertResult
(ResultSyncPoint<R, ?> syncPoint, String message) protected File
protected HttpURLConnection
protected void
performActionAndWaitUntilStanzaReceived
(Runnable action, org.jivesoftware.smack.XMPPConnection connection, org.jivesoftware.smack.filter.StanzaFilter filter) protected void
waitUntilTrue
(AbstractSmackIntTest.Condition condition)
-
Field Details
-
LOGGER
-
INSECURE_RANDOM
-
testRunId
-
timeout
protected final long timeout -
sinttestConfiguration
-
-
Constructor Details
-
AbstractSmackIntTest
-
-
Method Details
-
performActionAndWaitUntilStanzaReceived
protected void performActionAndWaitUntilStanzaReceived(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, InterruptedException - Throws:
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
InterruptedException
-
waitUntilTrue
protected void waitUntilTrue(AbstractSmackIntTest.Condition condition) throws TimeoutException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Throws:
TimeoutException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
InterruptedException
-
createNewTempFile
- Throws:
IOException
-
getHttpUrlConnectionFor
- Throws:
IOException
-
assertResult
public <R> R assertResult(ResultSyncPoint<R, ?> syncPoint, String message) throws InterruptedException, TimeoutException, org.opentest4j.AssertionFailedError- Throws:
InterruptedException
TimeoutException
org.opentest4j.AssertionFailedError
-
assertResult
public static <R> R assertResult(ResultSyncPoint<R, ?> syncPoint, long timeout, String message) throws InterruptedException, TimeoutException, org.opentest4j.AssertionFailedError- Throws:
InterruptedException
TimeoutException
org.opentest4j.AssertionFailedError
-
assertResult
public <R> List<R> assertResult(MultiResultSyncPoint<R, ?> syncPoint, String message) throws InterruptedException, TimeoutException, org.opentest4j.AssertionFailedError- Throws:
InterruptedException
TimeoutException
org.opentest4j.AssertionFailedError
-
assertResult
public static <R> List<R> assertResult(MultiResultSyncPoint<R, ?> syncPoint, long timeout, String message) throws InterruptedException, TimeoutException, org.opentest4j.AssertionFailedError- Throws:
InterruptedException
TimeoutException
org.opentest4j.AssertionFailedError
-