messageSendingTest
public void messageSendingTest()
throws org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException,
java.lang.InterruptedException,
org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.SmackException.NotConnectedException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
org.jivesoftware.smack.SmackException.NotLoggedInException,
org.jivesoftware.smackx.pubsub.PubSubException.NotALeafNodeException,
org.jivesoftware.smackx.omemo.exceptions.CannotEstablishOmemoSessionException,
org.jivesoftware.smackx.omemo.exceptions.UndecidedOmemoIdentityException,
java.security.NoSuchAlgorithmException,
org.jivesoftware.smackx.omemo.exceptions.CryptoFailedException,
org.jivesoftware.smackx.pubsub.PubSubException.NotAPubSubNodeException
This Test tests sending and receiving messages.
Alice and Bob create fresh devices, then they add another to their rosters.
Next they build sessions with one another and Alice sends a message to Bob.
After receiving and successfully decrypting the message, its tested, if Bob
publishes a new Bundle. After that Bob replies to the message and its tested,
whether Alice can decrypt the message and if she does NOT publish a new Bundle.
- Throws:
org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException
java.lang.InterruptedException
SmackException.NoResponseException
SmackException.NotConnectedException
XMPPException.XMPPErrorException
SmackException.NotLoggedInException
PubSubException.NotALeafNodeException
org.jivesoftware.smackx.omemo.exceptions.CannotEstablishOmemoSessionException
org.jivesoftware.smackx.omemo.exceptions.UndecidedOmemoIdentityException
java.security.NoSuchAlgorithmException
org.jivesoftware.smackx.omemo.exceptions.CryptoFailedException
org.jivesoftware.smackx.pubsub.PubSubException.NotAPubSubNodeException