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") 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
Constructors Constructor Description EntityCapsTest(SmackIntegrationTestEnvironment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
tearDown()
void
testCapsChanged()
void
testEntityCaps()
void
testLocalEntityCaps()
void
testPreventDiscoInfo()
Test if entity caps actually prevent a disco info request and reply.-
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
-
EntityCapsTest
public EntityCapsTest(SmackIntegrationTestEnvironment environment)
-
-
Method Detail
-
setUp
@BeforeClass public void setUp() throws org.jivesoftware.smack.SmackException.NotLoggedInException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, java.util.concurrent.TimeoutException
- Throws:
org.jivesoftware.smack.SmackException.NotLoggedInException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
-
tearDown
@AfterClass public void tearDown() throws org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
-
testLocalEntityCaps
@SmackIntegrationTest public void testLocalEntityCaps() throws java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException
- Throws:
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
-
testPreventDiscoInfo
@SmackIntegrationTest public void testPreventDiscoInfo() throws java.lang.Exception
Test if entity caps actually prevent a disco info request and reply.- Throws:
java.lang.Exception
- if exception.
-
testCapsChanged
@SmackIntegrationTest public void testCapsChanged() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testEntityCaps
@SmackIntegrationTest public void testEntityCaps() throws org.jivesoftware.smack.XMPPException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.SmackException.NotConnectedException, java.util.concurrent.TimeoutException
- Throws:
org.jivesoftware.smack.XMPPException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.SmackException.NotConnectedException
java.util.concurrent.TimeoutException
-
-