diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-03-29 14:45:03 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2011-03-29 14:45:03 +0000 |
| commit | 0bd4c6ef331e958995108d55a307b5eb496f48d6 (patch) | |
| tree | ef262969b384a92a9a711432cd8b36e6b8c34539 /tests/tests.cpp | |
| parent | 26d90e15a13e470645be6e724e3e993585baa79e (diff) | |
| download | qxmpp-0bd4c6ef331e958995108d55a307b5eb496f48d6.tar.gz | |
check incorrect password fails
Diffstat (limited to 'tests/tests.cpp')
| -rw-r--r-- | tests/tests.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/tests.cpp b/tests/tests.cpp index b0eeed0a..f603a31d 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -1005,11 +1005,18 @@ void TestServer::testConnect() config.setDomain(testDomain); config.setHost(testHost.toString()); config.setUser(testUser); - config.setPassword(testPassword); config.setPort(testPort); + + // check bad password fails + config.setPassword("badpassword"); client.connectToServer(config); loop.exec(); + QCOMPARE(client.isConnected(), false); + // check correct password works + config.setPassword(testPassword); + client.connectToServer(config); + loop.exec(); QCOMPARE(client.isConnected(), true); } |
