Class PubSubIntegrationTest

    • Constructor Detail

      • PubSubIntegrationTest

        public PubSubIntegrationTest​(SmackIntegrationTestEnvironment environment)
                              throws TestNotPossibleException,
                                     org.jivesoftware.smack.SmackException.NoResponseException,
                                     org.jivesoftware.smack.XMPPException.XMPPErrorException,
                                     org.jivesoftware.smack.SmackException.NotConnectedException,
                                     java.lang.InterruptedException
        Throws:
        TestNotPossibleException
        org.jivesoftware.smack.SmackException.NoResponseException
        org.jivesoftware.smack.XMPPException.XMPPErrorException
        org.jivesoftware.smack.SmackException.NotConnectedException
        java.lang.InterruptedException
    • Method Detail

      • transientNotificationOnlyNodeWithoutItemTest

        @SmackIntegrationTest
        public void transientNotificationOnlyNodeWithoutItemTest()
                                                          throws org.jivesoftware.smack.SmackException.NoResponseException,
                                                                 org.jivesoftware.smack.XMPPException.XMPPErrorException,
                                                                 org.jivesoftware.smack.SmackException.NotConnectedException,
                                                                 java.lang.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.
        java.lang.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,
                                                              java.lang.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.
        java.lang.InterruptedException - if the calling thread was interrupted.
        See Also:
        7.1.3.6 Request Does Not Match Configuration