assertNull(client.getConnectedID());
}
public void testConnectTwoClients() throws Exception {
for (int i = 0; i < 2; i++) {
final IContainer client = getClient(i);
assertNull(client.getConnectedID());
final ID serverConnectID = getServerConnectID(i);
assertNotNull(serverConnectID);
connectClient(client, serverConnectID, getConnectContext(i));
assertEquals(serverConnectID, client.getConnectedID());
}
sleep(3000);
for (int i = 0; i < 2; i++) {
final IContainer client = getClient(i);
client.disconnect();
assertNull(client.getConnectedID());
}
}