public class EntityCapsTest extends AbstractSmackIntegrationTest
AbstractSmackIntTest.Condition
connection, conOne, conThree, conTwo
INSECURE_RANDOM, LOGGER, sinttestConfiguration, testRunId, timeout
Constructor and Description |
---|
EntityCapsTest(SmackIntegrationTestEnvironment environment) |
Modifier and Type | Method and 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.
|
createNewTempFile, getHttpUrlConnectionFor, performActionAndWaitUntilStanzaReceived, waitUntilTrue
public EntityCapsTest(SmackIntegrationTestEnvironment environment)
public void setUp() throws org.jivesoftware.smack.SmackException.NotLoggedInException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, java.util.concurrent.TimeoutException
org.jivesoftware.smack.SmackException.NotLoggedInException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
public void tearDown() throws org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
public void testLocalEntityCaps() throws java.lang.InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedException
public void testPreventDiscoInfo() throws java.lang.Exception
org.jivesoftware.smack.XMPPException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NotConnectedException
org.jivesoftware.smack.SmackException.NoResponseException
java.lang.Exception
public void testCapsChanged()
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
org.jivesoftware.smack.XMPPException
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.SmackException.NotConnectedException
java.util.concurrent.TimeoutException