Class ParticipantStatusIntegrationTest

    • 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