Search in sources :

Example 1 with IContainerConnectingEvent

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);
}
Also used : IContainerConnectingEvent(org.eclipse.ecf.core.events.IContainerConnectingEvent) IContainer(org.eclipse.ecf.core.IContainer)

Example 2 with IContainerConnectingEvent

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);
}
Also used : IContainerConnectingEvent(org.eclipse.ecf.core.events.IContainerConnectingEvent) IContainer(org.eclipse.ecf.core.IContainer)

Aggregations

IContainer (org.eclipse.ecf.core.IContainer)2 IContainerConnectingEvent (org.eclipse.ecf.core.events.IContainerConnectingEvent)2