Class PubSubIntegrationTest


@SpecificationReference(document="XEP-0060", version="1.26.0") public class PubSubIntegrationTest extends AbstractSmackIntegrationTest
  • Constructor Details

  • Method Details

    • transientNotificationOnlyNodeWithoutItemTest

      @SmackIntegrationTest public void transientNotificationOnlyNodeWithoutItemTest() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Asserts that an event notification (publication without item) can be published to a node that is both 'notification-only' as well as 'transient'.
      Throws:
      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.
      InterruptedException - if the calling thread was interrupted.
    • transientNotificationOnlyNodeWithItemTest

      @SmackIntegrationTest(section="7.1.3.6", quote="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/>.") public void transientNotificationOnlyNodeWithItemTest() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      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.
      Throws:
      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.
      InterruptedException - if the calling thread was interrupted.
      See Also: