Package org.igniterealtime.smack.inttest
Class AbstractSmackIntTest
java.lang.Object
org.igniterealtime.smack.inttest.AbstractSmackIntTest
- Direct Known Subclasses:
AbstractSmackIntegrationTest,AbstractSmackLowLevelIntegrationTest
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Randomprotected static final Loggerprotected final Configurationprotected final Stringprotected final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSmackIntTest(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> RassertResult(ResultSyncPoint<R, ?> syncPoint, long timeout, String message) <R> RassertResult(ResultSyncPoint<R, ?> syncPoint, String message) protected Fileprotected HttpURLConnectionprotected voidperformActionAndWaitUntilStanzaReceived(Runnable action, org.jivesoftware.smack.XMPPConnection connection, org.jivesoftware.smack.filter.StanzaFilter filter) protected voidwaitUntilTrue(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.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
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:
TimeoutExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
createNewTempFile
- Throws:
IOException
-
getHttpUrlConnectionFor
- Throws:
IOException
-
assertResult
public <R> R assertResult(ResultSyncPoint<R, ?> syncPoint, String message) throws InterruptedException, TimeoutException, org.opentest4j.AssertionFailedError- Throws:
InterruptedExceptionTimeoutExceptionorg.opentest4j.AssertionFailedError
-
assertResult
public static <R> R assertResult(ResultSyncPoint<R, ?> syncPoint, long timeout, String message) throws InterruptedException, TimeoutException, org.opentest4j.AssertionFailedError- Throws:
InterruptedExceptionTimeoutExceptionorg.opentest4j.AssertionFailedError
-
assertResult
public <R> List<R> assertResult(MultiResultSyncPoint<R, ?> syncPoint, String message) throws InterruptedException, TimeoutException, org.opentest4j.AssertionFailedError- Throws:
InterruptedExceptionTimeoutExceptionorg.opentest4j.AssertionFailedError
-
assertResult
public static <R> List<R> assertResult(MultiResultSyncPoint<R, ?> syncPoint, long timeout, String message) throws InterruptedException, TimeoutException, org.opentest4j.AssertionFailedError- Throws:
InterruptedExceptionTimeoutExceptionorg.opentest4j.AssertionFailedError
-