Package org.jivesoftware.smackx.omemo
Class AbstractTwoUsersOmemoIntegrationTest
- java.lang.Object
-
- org.igniterealtime.smack.inttest.AbstractSmackIntTest
-
- org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest
-
- org.jivesoftware.smackx.omemo.AbstractOmemoIntegrationTest
-
- org.jivesoftware.smackx.omemo.AbstractTwoUsersOmemoIntegrationTest
-
- Direct Known Subclasses:
MessageEncryptionIntegrationTest
,OmemoMamDecryptionTest
,ReadOnlyDeviceIntegrationTest
,SessionRenegotiationIntegrationTest
public abstract class AbstractTwoUsersOmemoIntegrationTest extends AbstractOmemoIntegrationTest
Abstract OMEMO integration test framing, which creates and initializes two OmemoManagers (for conOne and conTwo). Both users subscribe to one another and trust their identities. After the test traces in PubSub and in the users Rosters are removed.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
AbstractSmackIntTest.Condition
-
-
Field Summary
Fields Modifier and Type Field Description protected org.jivesoftware.smackx.omemo.OmemoManager
alice
protected org.jivesoftware.smackx.omemo.OmemoManager
bob
-
Fields inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest
connection, connections, conOne, conThree, conTwo
-
Fields inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
INSECURE_RANDOM, LOGGER, sinttestConfiguration, testRunId, timeout
-
-
Constructor Summary
Constructors Constructor Description AbstractTwoUsersOmemoIntegrationTest(SmackIntegrationTestEnvironment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUp()
void
setup()
-
Methods inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest
performActionAndWaitForPresence
-
Methods inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
assertResult, assertResult, createNewTempFile, getHttpUrlConnectionFor, performActionAndWaitUntilStanzaReceived, waitUntilTrue
-
-
-
-
Constructor Detail
-
AbstractTwoUsersOmemoIntegrationTest
public AbstractTwoUsersOmemoIntegrationTest(SmackIntegrationTestEnvironment environment) throws org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException, TestNotPossibleException
- Throws:
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
TestNotPossibleException
-
-
Method Detail
-
setup
@BeforeClass public void setup() throws java.lang.Exception
- Throws:
java.lang.Exception
-
cleanUp
@AfterClass public void cleanUp() throws java.io.IOException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
java.io.IOException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
-
-