Class LoginIntegrationTest

    • Method Detail

      • testInvalidLogin

        @SmackIntegrationTest
        public void testInvalidLogin​(AbstractSmackLowLevelIntegrationTest.UnconnectedConnectionSource unconnectedConnectionSource)
                              throws org.jivesoftware.smack.SmackException,
                                     java.io.IOException,
                                     org.jivesoftware.smack.XMPPException,
                                     java.lang.InterruptedException,
                                     java.security.KeyManagementException,
                                     java.security.NoSuchAlgorithmException
        Check that the server is returning the correct error when trying to login using an invalid (i.e. non-existent) user.
        Parameters:
        unconnectedConnectionSource - the unconnected connections source that is used.
        Throws:
        java.lang.InterruptedException - if the calling thread was interrupted.
        org.jivesoftware.smack.XMPPException - if an XMPP protocol error was received.
        java.io.IOException - if an I/O error occurred.
        org.jivesoftware.smack.SmackException - if Smack detected an exceptional situation.
        java.security.NoSuchAlgorithmException - if no such algorithm is available.
        java.security.KeyManagementException - if there was a key mangement error.