Search in sources :

Example 6 with TestServiceListener

use of org.eclipse.ecf.tests.discovery.listener.TestServiceListener in project ecf by eclipse.

the class DiscoveryTest method testRemoveServiceListenerIServiceTypeIDIServiceListener.

/**
 * Test method for
 * {@link org.eclipse.ecf.discovery.IDiscoveryContainerAdapter#removeServiceListener(org.eclipse.ecf.discovery.identity.IServiceTypeID, org.eclipse.ecf.discovery.IServiceListener)}.
 * @throws ContainerConnectException
 */
public void testRemoveServiceListenerIServiceTypeIDIServiceListener() throws ContainerConnectException {
    final TestServiceListener serviceListener = new TestServiceListener(eventsToExpect, discoveryLocator, getName(), getTestId());
    addServiceListener(serviceListener);
// TODO reregister and verify the listener doesn't receive any events any longer.
}
Also used : TestServiceListener(org.eclipse.ecf.tests.discovery.listener.TestServiceListener)

Example 7 with TestServiceListener

use of org.eclipse.ecf.tests.discovery.listener.TestServiceListener in project ecf by eclipse.

the class DiscoveryTest method testRemoveServiceListenerIServiceListener.

/**
 * Test method for
 * {@link org.eclipse.ecf.discovery.IDiscoveryContainerAdapter#removeServiceListener(org.eclipse.ecf.discovery.IServiceListener)}.
 * @throws ContainerConnectException
 */
public void testRemoveServiceListenerIServiceListener() throws ContainerConnectException {
    final TestServiceListener serviceListener = new TestServiceListener(eventsToExpect, discoveryLocator, getName(), getTestId());
    addServiceListener(serviceListener);
// TODO reregister and verify the listener doesn't receive any events any longer.
}
Also used : TestServiceListener(org.eclipse.ecf.tests.discovery.listener.TestServiceListener)

Aggregations

TestServiceListener (org.eclipse.ecf.tests.discovery.listener.TestServiceListener)7 IServiceInfo (org.eclipse.ecf.discovery.IServiceInfo)5 IContainerEvent (org.eclipse.ecf.core.events.IContainerEvent)4 IServiceEvent (org.eclipse.ecf.discovery.IServiceEvent)4 Properties (java.util.Properties)3 IServiceListener (org.eclipse.ecf.discovery.IServiceListener)3 ThreadTestServiceListener (org.eclipse.ecf.tests.discovery.listener.ThreadTestServiceListener)3 BundleContext (org.osgi.framework.BundleContext)3 ServiceRegistration (org.osgi.framework.ServiceRegistration)3 IServiceTypeID (org.eclipse.ecf.discovery.identity.IServiceTypeID)1