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
-
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 voidsetUp()voidtearDown()voidtestCapsChanged()voidtestEntityCaps()voidtestLocalEntityCaps()voidtestPreventDiscoInfo()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
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.NotLoggedInExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionjava.util.concurrent.TimeoutException
-
tearDown
@AfterClass public void tearDown() throws org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
org.jivesoftware.smack.SmackException.NotConnectedExceptionjava.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.InterruptedExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.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.XMPPExceptionjava.lang.InterruptedExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.util.concurrent.TimeoutException
-
-