// disconnected callback (but not a loginFailed callback).
public void testLoginNoServer() throws Exception {
DummySimpleClientListener listener =
new DummySimpleClientListener();
SimpleClient client = new SimpleClient(listener);
Properties props =
createProperties(
"host", "localhost",
"port", Integer.toString(5382),
"connectTimeout", Long.toString(TIMEOUT));
client.login(props);
synchronized (client) {
client.wait(TIMEOUT * 2);
}
assertTrue(listener.disconnected);
assertEquals(0, listener.getPasswordAuthentication);
if (listener.disconnectReason == null) {
fail("Received null disconnect reason");