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'sParticipantStatusListener
.
-
-
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 ParticipantStatusIntegrationTest(SmackIntegrationTestEnvironment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testMembershipRevokedInMemberOnlyRoom()
Verifies that when a member gets its membership removed in a members-only room, the appropriate event listeners are invoked.void
testMembershipRevokedInOpenRoom()
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 Detail
-
ParticipantStatusIntegrationTest
public ParticipantStatusIntegrationTest(SmackIntegrationTestEnvironment environment) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.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
java.lang.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 Detail
-
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 java.lang.Exception
Verifies that when a member gets its membership removed in an open room, the appropriate event listener is invoked.- Throws:
java.lang.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 java.lang.Exception
Verifies that when a member gets its membership removed in a members-only room, the appropriate event listeners are invoked.- Throws:
java.lang.Exception
- On unexpected results
-
-