Class UserStatusIntegrationTest


@SpecificationReference(document="XEP-0045", version="1.34.6") public class UserStatusIntegrationTest extends AbstractMultiUserChatIntegrationTest
Tests that verify the correct functionality of Smack's UserStatusListener.
  • Constructor Details

    • UserStatusIntegrationTest

      public UserStatusIntegrationTest(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 Exception
      Verifies 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 Exception
      Verifies that when a member gets its membership removed in a members-only room, the appropriate event listeners are invoked.
      Throws:
      Exception - On unexpected results