Package org.jivesoftware.smackx.muc
Class MultiUserChatEntityIntegrationTest
- java.lang.Object
-
- org.igniterealtime.smack.inttest.AbstractSmackIntTest
-
- org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest
-
- org.jivesoftware.smackx.muc.AbstractMultiUserChatIntegrationTest
-
- org.jivesoftware.smackx.muc.MultiUserChatEntityIntegrationTest
-
@SpecificationReference(document="XEP-0045") public class MultiUserChatEntityIntegrationTest extends AbstractMultiUserChatIntegrationTest
-
-
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 MultiUserChatEntityIntegrationTest(SmackIntegrationTestEnvironment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mucTestForDiscoveringFeatures()
Asserts that a MUC service can have its features discovered.void
mucTestForDiscoveringRoomInfo()
Asserts that a MUC Service returns disco info for a room.void
mucTestForDiscoveringRoomItems()
Asserts that a MUC Service returns disco info for a room's items.void
mucTestForDiscoveringRooms()
Asserts that a MUC Service lists its public rooms.void
mucTestForRejectingDiscoOnRoomOccupantByNonOccupant()
Asserts that a non-occupant receives a Bad Request error when attempting to query an occupant by their occupant JID.-
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, createNewTempFile, getHttpUrlConnectionFor, performActionAndWaitUntilStanzaReceived, waitUntilTrue
-
-
-
-
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
-
-