public class PubSubIntegrationTest extends AbstractSmackIntegrationTest
AbstractSmackIntTest.Conditionconnection, connections, conOne, conThree, conTwoINSECURE_RANDOM, LOGGER, sinttestConfiguration, testRunId, timeout| Constructor and Description |
|---|
PubSubIntegrationTest(SmackIntegrationTestEnvironment environment) |
| Modifier and Type | Method and Description |
|---|---|
void |
transientNotificationOnlyNodeWithItemTest()
Asserts that an error is returned when a publish request to a node that is both
'notification-only' as well as 'transient' contains an item element.
|
void |
transientNotificationOnlyNodeWithoutItemTest()
Asserts that an event notification (publication without item) can be published to
a node that is both 'notification-only' as well as 'transient'.
|
performActionAndWaitForPresencecreateNewTempFile, getHttpUrlConnectionFor, performActionAndWaitUntilStanzaReceived, waitUntilTruepublic PubSubIntegrationTest(SmackIntegrationTestEnvironment environment) throws TestNotPossibleException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
TestNotPossibleExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedException@SmackIntegrationTest public void transientNotificationOnlyNodeWithoutItemTest() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.@SmackIntegrationTest public void transientNotificationOnlyNodeWithItemTest() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
From XEP-0060 ยง 7.1.3.6:
If the event type is notification + transient and the publisher provides an item, the service MUST bounce the publication request with a <bad-request/> error and a pubsub-specific error condition of <item-forbidden/>.
org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.