Package org.jivesoftware.smackx.muc
Class MultiUserChatIntegrationTest
- java.lang.Object
-
- org.igniterealtime.smack.inttest.AbstractSmackIntTest
-
- org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest
-
- org.jivesoftware.smackx.muc.AbstractMultiUserChatIntegrationTest
-
- org.jivesoftware.smackx.muc.MultiUserChatIntegrationTest
-
public class MultiUserChatIntegrationTest extends AbstractMultiUserChatIntegrationTest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
AbstractSmackIntTest.Condition
-
-
Field Summary
-
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 MultiUserChatIntegrationTest(SmackIntegrationTestEnvironment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mucDestroyTest()
Asserts that a user is notified when a room is destroyedvoid
mucJoinTest()
Asserts that when a user joins a room, they are themselves included on the list of users notified (self-presence).void
mucLeaveTest()
Asserts that when a user leaves a room, they are themselves included on the list of users notified (self-presence).void
mucTest()
-
Methods inherited from class org.jivesoftware.smackx.muc.AbstractMultiUserChatIntegrationTest
getRandomRoom
-
Methods inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest
performActionAndWaitForPresence
-
Methods inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
createNewTempFile, getHttpUrlConnectionFor, performActionAndWaitUntilStanzaReceived, waitUntilTrue
-
-
-
-
Constructor Detail
-
MultiUserChatIntegrationTest
public MultiUserChatIntegrationTest(SmackIntegrationTestEnvironment environment) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, TestNotPossibleException
- Throws:
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
TestNotPossibleException
-
-
Method Detail
-
mucJoinTest
@SmackIntegrationTest public void mucJoinTest() throws java.lang.Exception
Asserts that when a user joins a room, they are themselves included on the list of users notified (self-presence).From XEP-0045 § 7.2.2:
...the service MUST also send presence from the new participant's occupant JID to the full JIDs of all the occupants (including the new occupant)
- Throws:
java.lang.Exception
- when errors occur
-
mucLeaveTest
@SmackIntegrationTest public void mucLeaveTest() throws java.lang.Exception
Asserts that when a user leaves a room, they are themselves included on the list of users notified (self-presence).From XEP-0045 § 7.14:
The service MUST then send a presence stanzas of type "unavailable" from the departing user's occupant JID to the departing occupant's full JIDs, including a status code of "110" to indicate that this notification is "self-presence"
- Throws:
java.lang.Exception
- when errors occur
-
mucTest
@SmackIntegrationTest public void mucTest() throws java.lang.Exception
- Throws:
java.lang.Exception
-
mucDestroyTest
@SmackIntegrationTest public void mucDestroyTest() throws java.util.concurrent.TimeoutException, java.lang.Exception
Asserts that a user is notified when a room is destroyedFrom XEP-0045 § 10.9:
A room owner MUST be able to destroy a room, especially if the room is persistent... The room removes all users from the room... and destroys the room
- Throws:
java.util.concurrent.TimeoutException
- when roomDestroyed event doesn't get firedjava.lang.Exception
- when other errors occur
-
-