Package org.jivesoftware.smackx.omemo
Class OmemoMamDecryptionTest
- java.lang.Object
-
@SpecificationReference(document="XEP-0384") 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
Constructors Constructor Description OmemoMamDecryptionTest(SmackIntegrationTestEnvironment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mamDecryptionTest()
-
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, createNewTempFile, getHttpUrlConnectionFor, performActionAndWaitUntilStanzaReceived, waitUntilTrue
-
-
-
-
Constructor Detail
-
OmemoMamDecryptionTest
public OmemoMamDecryptionTest(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
-
mamDecryptionTest
@SmackIntegrationTest public void mamDecryptionTest() throws org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotLoggedInException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smackx.omemo.exceptions.CryptoFailedException, org.jivesoftware.smackx.omemo.exceptions.UndecidedOmemoIdentityException, java.io.IOException
- Throws:
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotLoggedInException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smackx.omemo.exceptions.CryptoFailedException
org.jivesoftware.smackx.omemo.exceptions.UndecidedOmemoIdentityException
java.io.IOException
-
-