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, bobFields inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest
connection, connections, conOne, conThree, conTwoFields inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
INSECURE_RANDOM, LOGGER, sinttestConfiguration, testRunId, timeout - 
Constructor Summary
ConstructorsConstructorDescription - 
Method Summary
Modifier and TypeMethodDescriptionvoidThis test checks whether the following actions are performed.Methods inherited from class org.jivesoftware.smackx.omemo.AbstractTwoUsersOmemoIntegrationTest
cleanUp, setupMethods inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest
performActionAndWaitForPresenceMethods 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.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionTestNotPossibleException
 
 - 
 - 
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.
 
 -