Package org.jivesoftware.smack
Class LoginIntegrationTest
- java.lang.Object
-
- org.igniterealtime.smack.inttest.AbstractSmackIntTest
-
- org.igniterealtime.smack.inttest.AbstractSmackLowLevelIntegrationTest
-
- org.jivesoftware.smack.LoginIntegrationTest
-
public class LoginIntegrationTest extends AbstractSmackLowLevelIntegrationTest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
AbstractSmackIntTest.Condition
-
-
Field Summary
-
Fields inherited from class org.igniterealtime.smack.inttest.AbstractSmackLowLevelIntegrationTest
configuration, service
-
Fields inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
INSECURE_RANDOM, LOGGER, sinttestConfiguration, testRunId, timeout
-
-
Constructor Summary
Constructors Constructor Description LoginIntegrationTest(SmackIntegrationTestEnvironment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
testInvalidLogin()
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, getUnconnectedConnection, getUnconnectedConnections, recycle
-
Methods inherited from class org.igniterealtime.smack.inttest.AbstractSmackIntTest
createNewTempFile, getHttpUrlConnectionFor, performActionAndWaitUntilStanzaReceived, waitUntilTrue
-
-
-
-
Constructor Detail
-
LoginIntegrationTest
public LoginIntegrationTest(SmackIntegrationTestEnvironment environment)
-
-
Method Detail
-
testInvalidLogin
@SmackIntegrationTest public void testInvalidLogin() 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.- 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.
-
-