use of org.eclipse.ecf.core.events.IContainerConnectingEvent in project ecf by eclipse.
the class SSLClientContainerConnectTest method testListenerConnecting.
public void testListenerConnecting() throws Exception {
final IContainer client = getClients()[0];
client.addListener(createListener());
client.connect(createServerID(), null);
final Object o = clientConnectingEvents.get(0);
assertTrue(o instanceof IContainerConnectingEvent);
final IContainerConnectingEvent cco = (IContainerConnectingEvent) o;
assertTrue(cco.getLocalContainerID().equals(client.getID()));
assertTrue(cco.getTargetID().equals(createServerID()));
assertTrue(cco.getData() == null);
}
use of org.eclipse.ecf.core.events.IContainerConnectingEvent in project ecf by eclipse.
the class ClientContainerConnectTest method testListenerConnecting.
public void testListenerConnecting() throws Exception {
final IContainer client = getClients()[0];
client.addListener(createListener());
client.connect(createServerID(), null);
final Object o = clientConnectingEvents.get(0);
assertTrue(o instanceof IContainerConnectingEvent);
final IContainerConnectingEvent cco = (IContainerConnectingEvent) o;
assertTrue(cco.getLocalContainerID().equals(client.getID()));
assertTrue(cco.getTargetID().equals(createServerID()));
assertTrue(cco.getData() == null);
}
Aggregations