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
@SpecificationReference(document="XEP-0045",
version="1.34.6")
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Asserts that an owner is notified of room destruction when they destroy a room.void
Asserts that an occupant of a room is notified when a room is destroyed.void
void
mucTest()
void
void
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
assertResult, assertResult, assertResult, assertResult, createNewTempFile, getHttpUrlConnectionFor, performActionAndWaitUntilStanzaReceived, waitUntilTrue
-
Constructor Details
-
MultiUserChatIntegrationTest
public MultiUserChatIntegrationTest(SmackIntegrationTestEnvironment environment) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, TestNotPossibleException, org.jivesoftware.smackx.muc.MultiUserChatException.MucAlreadyJoinedException, org.jivesoftware.smackx.muc.MultiUserChatException.MissingMucCreationAcknowledgeException, org.jivesoftware.smackx.muc.MultiUserChatException.NotAMucServiceException, org.jxmpp.stringprep.XmppStringprepException - Throws:
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
InterruptedException
TestNotPossibleException
org.jivesoftware.smackx.muc.MultiUserChatException.MucAlreadyJoinedException
org.jivesoftware.smackx.muc.MultiUserChatException.MissingMucCreationAcknowledgeException
org.jivesoftware.smackx.muc.MultiUserChatException.NotAMucServiceException
org.jxmpp.stringprep.XmppStringprepException
-
-
Method Details
-
mucTest
- Throws:
Exception
-
mucDestroyOwnerTest
@SmackIntegrationTest(section="10.9", quote="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") public void mucDestroyOwnerTest() throws TimeoutException, ExceptionAsserts that an owner is notified of room destruction when they destroy a room.- Throws:
TimeoutException
- when roomDestroyed event doesn't get firedException
- when other errors occur
-
mucDestroyTestOccupant
@SmackIntegrationTest(section="10.9", quote="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") public void mucDestroyTestOccupant() throws TimeoutException, ExceptionAsserts that an occupant of a room is notified when a room is destroyed.- Throws:
TimeoutException
- when roomDestroyed event doesn't get firedException
- when other errors occur
-
mucNameChangeTest
@SmackIntegrationTest public void mucNameChangeTest() throws org.jxmpp.stringprep.XmppStringprepException, org.jivesoftware.smackx.muc.MultiUserChatException.MucAlreadyJoinedException, org.jivesoftware.smackx.muc.MultiUserChatException.MissingMucCreationAcknowledgeException, org.jivesoftware.smackx.muc.MultiUserChatException.NotAMucServiceException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smackx.muc.MultiUserChatException.MucConfigurationNotSupportedException- Throws:
org.jxmpp.stringprep.XmppStringprepException
org.jivesoftware.smackx.muc.MultiUserChatException.MucAlreadyJoinedException
org.jivesoftware.smackx.muc.MultiUserChatException.MissingMucCreationAcknowledgeException
org.jivesoftware.smackx.muc.MultiUserChatException.NotAMucServiceException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
InterruptedException
org.jivesoftware.smackx.muc.MultiUserChatException.MucConfigurationNotSupportedException
-
mucTestVisitorNotAllowedToChangeSubject
@SmackIntegrationTest(section="8.1", quote="modify the subject [...] MUST be denied if the <user@host> of the \'from\' address of the request does not match the bare JID portion of one of the moderators; in this case, the service MUST return a <forbidden/> error.") public void mucTestVisitorNotAllowedToChangeSubject() throws org.jxmpp.stringprep.XmppStringprepException, org.jivesoftware.smackx.muc.MultiUserChatException.MucAlreadyJoinedException, org.jivesoftware.smackx.muc.MultiUserChatException.MissingMucCreationAcknowledgeException, org.jivesoftware.smackx.muc.MultiUserChatException.NotAMucServiceException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, TestNotPossibleException- Throws:
org.jxmpp.stringprep.XmppStringprepException
org.jivesoftware.smackx.muc.MultiUserChatException.MucAlreadyJoinedException
org.jivesoftware.smackx.muc.MultiUserChatException.MissingMucCreationAcknowledgeException
org.jivesoftware.smackx.muc.MultiUserChatException.NotAMucServiceException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
InterruptedException
TestNotPossibleException
-
mucTestChangeRoomName
@SmackIntegrationTest public void mucTestChangeRoomName() throws org.jxmpp.stringprep.XmppStringprepException, org.jivesoftware.smackx.muc.MultiUserChatException.MucAlreadyJoinedException, org.jivesoftware.smackx.muc.MultiUserChatException.MissingMucCreationAcknowledgeException, org.jivesoftware.smackx.muc.MultiUserChatException.NotAMucServiceException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, TestNotPossibleException- Throws:
org.jxmpp.stringprep.XmppStringprepException
org.jivesoftware.smackx.muc.MultiUserChatException.MucAlreadyJoinedException
org.jivesoftware.smackx.muc.MultiUserChatException.MissingMucCreationAcknowledgeException
org.jivesoftware.smackx.muc.MultiUserChatException.NotAMucServiceException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
InterruptedException
TestNotPossibleException
-