Package org.jivesoftware.smackx.omemo
Class MessageEncryptionIntegrationTest
java.lang.Object
org.igniterealtime.smack.inttest.AbstractSmackIntTest
org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest
org.jivesoftware.smackx.omemo.AbstractOmemoIntegrationTest
org.jivesoftware.smackx.omemo.AbstractTwoUsersOmemoIntegrationTest
org.jivesoftware.smackx.omemo.MessageEncryptionIntegrationTest
@SpecificationReference(document="XEP-0384",
version="0.3.0")
public class MessageEncryptionIntegrationTest
extends AbstractTwoUsersOmemoIntegrationTest
Simple OMEMO message encryption integration test.
During this test Alice sends an encrypted message to Bob. Bob decrypts it and sends a response to Alice.
It is checked whether the messages can be decrypted, and if used up pre-keys result in renewed bundles.
-
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
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
This test checks whether the following actions are performed.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
-
MessageEncryptionIntegrationTest
public MessageEncryptionIntegrationTest(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
-
messageTest
This test checks whether the following actions are performed. Alice publishes bundle A1 Bob publishes bundle B1 Alice sends message to Bob (preKeyMessage) Bob publishes bundle B2 Alice still has A1 Bob responds to Alice (normal message) Alice still has A1 Bob still has B2- Throws:
Exception
- if an exception occurs.
-