Package org.jivesoftware.smackx.muc
Class ParticipantStatusIntegrationTest
java.lang.Object
org.igniterealtime.smack.inttest.AbstractSmackIntTest
org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest
org.jivesoftware.smackx.muc.AbstractMultiUserChatIntegrationTest
org.jivesoftware.smackx.muc.ParticipantStatusIntegrationTest
@SpecificationReference(document="XEP-0045",
version="1.34.6")
public class ParticipantStatusIntegrationTest
extends AbstractMultiUserChatIntegrationTest
Tests that verify the correct functionality of Smack's
ParticipantStatusListener
.-
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
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
Verifies that when a member gets its membership removed in a members-only room, the appropriate event listeners are invoked.void
Verifies that when a member gets its membership removed in an open room, the appropriate event listener is invoked.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
-
ParticipantStatusIntegrationTest
public ParticipantStatusIntegrationTest(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.jxmpp.stringprep.XmppStringprepException, org.jivesoftware.smackx.muc.MultiUserChatException.NotAMucServiceException - 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.jxmpp.stringprep.XmppStringprepException
org.jivesoftware.smackx.muc.MultiUserChatException.NotAMucServiceException
-
-
Method Details
-
testMembershipRevokedInOpenRoom
@SmackIntegrationTest(section="9.4", quote="An admin might want to revoke a user\'s membership [...] The service MUST then send updated presence from this individual to all occupants, indicating the loss of membership by sending a presence element that contains an <x/> element qualified by the \'http://jabber.org/protocol/muc#user\' namespace and containing an <item/> child with the \'affiliation\' attribute set to a value of \"none\".") public void testMembershipRevokedInOpenRoom() throws ExceptionVerifies that when a member gets its membership removed in an open room, the appropriate event listener is invoked.- Throws:
Exception
- On unexpected results
-
testMembershipRevokedInMemberOnlyRoom
@SmackIntegrationTest(section="9.4", quote="An admin might want to revoke a user\'s membership [...] If the room is members-only, the service MUST remove the user from the room, including a status code of 321 to indicate that the user was removed because of an affiliation change, and inform all remaining occupants") public void testMembershipRevokedInMemberOnlyRoom() throws ExceptionVerifies that when a member gets its membership removed in a members-only room, the appropriate event listeners are invoked.- Throws:
Exception
- On unexpected results
-