Class MultiUserChatEntityIntegrationTest

    • Constructor Detail

      • MultiUserChatEntityIntegrationTest

        public MultiUserChatEntityIntegrationTest​(SmackIntegrationTestEnvironment environment)
                                           throws org.jivesoftware.smack.SmackException.NoResponseException,
                                                  org.jivesoftware.smack.XMPPException.XMPPErrorException,
                                                  org.jivesoftware.smack.SmackException.NotConnectedException,
                                                  java.lang.InterruptedException,
                                                  TestNotPossibleException
        Throws:
        org.jivesoftware.smack.SmackException.NoResponseException
        org.jivesoftware.smack.XMPPException.XMPPErrorException
        org.jivesoftware.smack.SmackException.NotConnectedException
        java.lang.InterruptedException
        TestNotPossibleException
    • Method Detail

      • mucTestForDiscoveringFeatures

        @SmackIntegrationTest(section="6.2",
                              quote="An entity may wish to discover if a service implements the Multi-User Chat protocol; in order to do so, it sends a service discovery information (\"disco#info\") query to the MUC service\'s JID. The service MUST return its identity and the features it supports.")
        public void mucTestForDiscoveringFeatures()
                                           throws java.lang.Exception
        Asserts that a MUC service can have its features discovered.
        Throws:
        java.lang.Exception - when errors occur
      • mucTestForDiscoveringRooms

        @SmackIntegrationTest(section="6.3",
                              quote="The service discovery items (\"disco#items\") protocol enables an entity to query a service for a list of associated items, which in the case of a chat service would consist of the specific chat rooms hosted by theservice. The service SHOULD return a full list of the public rooms it hosts (i.e., not return any rooms thatare hidden).")
        public void mucTestForDiscoveringRooms()
                                        throws java.lang.Exception
        Asserts that a MUC Service lists its public rooms.
        Throws:
        java.lang.Exception - when errors occur
      • mucTestForDiscoveringRoomInfo

        @SmackIntegrationTest(section="6.4",
                              quote="Using the disco#info protocol, an entity may also query a specific chat room for more detailed information about the room....The room MUST return its identity and SHOULD return the features it supports")
        public void mucTestForDiscoveringRoomInfo()
                                           throws java.lang.Exception
        Asserts that a MUC Service returns disco info for a room.
        Throws:
        java.lang.Exception - when errors occur
      • mucTestForDiscoveringRoomItems

        @SmackIntegrationTest(section="6.5",
                              quote="An entity MAY also query a specific chat room for its associated items. An implementation MAY return a list of existing occupants if that information is publicly available, or return no list at all if this information is kept private.")
        public void mucTestForDiscoveringRoomItems()
                                            throws java.lang.Exception
        Asserts that a MUC Service returns disco info for a room's items.
        Throws:
        java.lang.Exception - when errors occur
      • mucTestForRejectingDiscoOnRoomOccupantByNonOccupant

        @SmackIntegrationTest(section="6.6",
                              quote="If a non-occupant attempts to send a disco request to an address of the form <room@service/nick>, a MUC service MUST return a <bad-request> error")
        public void mucTestForRejectingDiscoOnRoomOccupantByNonOccupant()
                                                                 throws java.lang.Exception
        Asserts that a non-occupant receives a Bad Request error when attempting to query an occupant by their occupant JID.
        Throws:
        java.lang.Exception - when errors occur