Package org.jivesoftware.smackx.omemo
Class OmemoMamDecryptionTest
@SpecificationReference(document="XEP-0384",
version="0.3.0")
public class OmemoMamDecryptionTest
extends AbstractTwoUsersOmemoIntegrationTest
This test sends a message from Alice to Bob, while Bob has automatic decryption disabled.
Then Bob fetches his Mam archive and decrypts the result.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
AbstractSmackIntTest.Condition
-
Field Summary
Fields inherited from class org.jivesoftware.smackx.omemo.AbstractTwoUsersOmemoIntegrationTest
alice, 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
-
Method Summary
Methods inherited from class org.jivesoftware.smackx.omemo.AbstractTwoUsersOmemoIntegrationTest
cleanUp, setup
Methods inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest
performActionAndWaitForPresence
Methods inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
assertResult, assertResult, assertResult, assertResult, createNewTempFile, getHttpUrlConnectionFor, performActionAndWaitUntilStanzaReceived, waitUntilTrue
-
Constructor Details
-
OmemoMamDecryptionTest
public OmemoMamDecryptionTest(SmackIntegrationTestEnvironment environment) throws org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException, TestNotPossibleException - Throws:
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
TestNotPossibleException
-
-
Method Details
-
mamDecryptionTest
@SmackIntegrationTest public void mamDecryptionTest() throws org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotLoggedInException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smackx.omemo.exceptions.CryptoFailedException, org.jivesoftware.smackx.omemo.exceptions.UndecidedOmemoIdentityException, IOException- Throws:
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotLoggedInException
org.jivesoftware.smack.SmackException.NotConnectedException
InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smackx.omemo.exceptions.CryptoFailedException
org.jivesoftware.smackx.omemo.exceptions.UndecidedOmemoIdentityException
IOException
-