Class MultiUserChatEntityIntegrationTest


@SpecificationReference(document="XEP-0045", version="1.34.6") public class MultiUserChatEntityIntegrationTest extends AbstractMultiUserChatIntegrationTest
  • Constructor Details

    • MultiUserChatEntityIntegrationTest

      public MultiUserChatEntityIntegrationTest(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.jivesoftware.smackx.muc.MultiUserChatException.NotAMucServiceException, org.jxmpp.stringprep.XmppStringprepException
      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.jivesoftware.smackx.muc.MultiUserChatException.NotAMucServiceException
      org.jxmpp.stringprep.XmppStringprepException
  • Method Details

    • mucTestForDiscoveringMuc

      @SmackIntegrationTest(section="6.1", quote="An entity often discovers a MUC service by sending a Service Discovery items (\"disco#items\") request to its own server. The server then returns the services that are associated with it.") public void mucTestForDiscoveringMuc() throws Exception
      Asserts that a MUC service can be discovered.
      Throws:
      Exception - when errors occur
    • 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 Exception
      Asserts that a MUC service can have its features discovered.
      Throws:
      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 Exception
      Asserts that a MUC Service lists its public rooms.
      Throws:
      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 Exception
      Asserts that a MUC Service returns disco info for a room.
      Throws:
      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 Exception
      Asserts that a MUC Service returns disco info for a room's items.
      Throws:
      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 Exception
      Asserts that a non-occupant receives a Bad Request error when attempting to query an occupant by their occupant JID.
      Throws:
      Exception - when errors occur