Package org.jivesoftware.smackx.caps
Class EntityCapsTest
java.lang.Object
org.igniterealtime.smack.inttest.AbstractSmackIntTest
org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest
org.jivesoftware.smackx.caps.EntityCapsTest
@SpecificationReference(document="XEP-0115",
version="1.6.0")
public class EntityCapsTest
extends AbstractSmackIntegrationTest
-
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
-
Method Summary
Methods inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntegrationTest
performActionAndWaitForPresence
Methods inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
assertResult, assertResult, assertResult, assertResult, createNewTempFile, getHttpUrlConnectionFor, performActionAndWaitUntilStanzaReceived, waitUntilTrue
-
Constructor Details
-
EntityCapsTest
-
-
Method Details
-
setUp
@BeforeClass public void setUp() throws org.jivesoftware.smack.SmackException.NotLoggedInException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, TimeoutException- Throws:
org.jivesoftware.smack.SmackException.NotLoggedInException
org.jivesoftware.smack.SmackException.NotConnectedException
InterruptedException
TimeoutException
-
tearDown
@AfterClass public void tearDown() throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException- Throws:
org.jivesoftware.smack.SmackException.NotConnectedException
InterruptedException
-
testLocalEntityCaps
@SmackIntegrationTest public void testLocalEntityCaps() throws InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException- Throws:
InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
-
testPreventDiscoInfo
Test if entity caps actually prevent a disco info request and reply.- Throws:
Exception
- if exception.
-
testCapsChanged
- Throws:
Exception
-
testEntityCaps
@SmackIntegrationTest public void testEntityCaps() throws org.jivesoftware.smack.XMPPException, InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.SmackException.NotConnectedException, TimeoutException- Throws:
org.jivesoftware.smack.XMPPException
InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.SmackException.NotConnectedException
TimeoutException
-