Package org.jivesoftware.smack
Class LoginIntegrationTest
java.lang.Object
org.igniterealtime.smack.inttest.AbstractSmackIntTest
org.igniterealtime.smack.inttest.AbstractSmackLowLevelIntegrationTest
org.jivesoftware.smack.LoginIntegrationTest
-
Nested Class Summary
Nested classes/interfaces inherited from class org.igniterealtime.smack.inttest.AbstractSmackLowLevelIntegrationTest
AbstractSmackLowLevelIntegrationTest.UnconnectedConnectionSourceNested classes/interfaces inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
AbstractSmackIntTest.Condition -
Field Summary
Fields inherited from class org.igniterealtime.smack.inttest.AbstractSmackLowLevelIntegrationTest
configuration, serviceFields inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
INSECURE_RANDOM, LOGGER, sinttestConfiguration, testRunId, timeout -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtestInvalidLogin(AbstractSmackLowLevelIntegrationTest.UnconnectedConnectionSource unconnectedConnectionSource) Check that the server is returning the correct error when trying to login using an invalid (i.e.Methods inherited from class org.igniterealtime.smack.inttest.AbstractSmackLowLevelIntegrationTest
getConnectedConnection, recycleMethods inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
assertResult, assertResult, assertResult, assertResult, createNewTempFile, getHttpUrlConnectionFor, performActionAndWaitUntilStanzaReceived, waitUntilTrue
-
Constructor Details
-
LoginIntegrationTest
-
-
Method Details
-
testInvalidLogin
@SmackIntegrationTest public void testInvalidLogin(AbstractSmackLowLevelIntegrationTest.UnconnectedConnectionSource unconnectedConnectionSource) throws org.jivesoftware.smack.SmackException, IOException, org.jivesoftware.smack.XMPPException, InterruptedException, KeyManagementException, 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:
InterruptedException- if the calling thread was interrupted.org.jivesoftware.smack.XMPPException- if an XMPP protocol error was received.IOException- if an I/O error occurred.org.jivesoftware.smack.SmackException- if Smack detected an exceptional situation.NoSuchAlgorithmException- if no such algorithm is available.KeyManagementException- if there was a key management error.
-