Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkuppe2008-05-20 11:58:35 +0000
committermkuppe2008-05-20 11:58:35 +0000
commit035a1c24ded3f355a4e0557b79952abae5582d69 (patch)
tree91124c5148332e0eac0bf547e1e2fdc3846de09d
parent836195b13b3bb99fc912b0bb64b574cd5df6763c (diff)
downloadorg.eclipse.ecf-035a1c24ded3f355a4e0557b79952abae5582d69.tar.gz
org.eclipse.ecf-035a1c24ded3f355a4e0557b79952abae5582d69.tar.xz
org.eclipse.ecf-035a1c24ded3f355a4e0557b79952abae5582d69.zip
NEW - bug 232813: [Discovery][jSLP] No OSGi service is registered
https://bugs.eclipse.org/bugs/show_bug.cgi?id=232813
-rwxr-xr-xtests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/DiscoveryServiceTest.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/DiscoveryServiceTest.java b/tests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/DiscoveryServiceTest.java
index d58004de5..6a8b03b9e 100755
--- a/tests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/DiscoveryServiceTest.java
+++ b/tests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/DiscoveryServiceTest.java
@@ -17,6 +17,8 @@ import org.osgi.util.tracker.ServiceTracker;
public abstract class DiscoveryServiceTest extends DiscoveryTest {
+ private static final String NO_PROVIDER_REGISTERED = "No discovery provider by that name seems to be registered";
+
/**
* @param name
*/
@@ -29,16 +31,17 @@ public abstract class DiscoveryServiceTest extends DiscoveryTest {
*/
protected IDiscoveryContainerAdapter getAdapter(Class notNeeded) {
final ServiceTracker serviceTracker = Activator.getDefault().getDiscoveryServiceTracker();
- assertNotNull(serviceTracker);
+ assertNotNull(NO_PROVIDER_REGISTERED, serviceTracker);
final ServiceReference[] serviceReferences = serviceTracker.getServiceReferences();
- assertNotNull(serviceReferences);
+ assertNotNull(NO_PROVIDER_REGISTERED, serviceReferences);
for(int i = 0; i < serviceReferences.length; i++) {
ServiceReference sr = serviceReferences[i];
+ //TODO-mkuppe https://bugs.eclipse.org/232813
if(containerUnderTest.equals(sr.getProperty(IDiscoveryContainerAdapter.CONTAINER_CONNECT_TARGET))) {
return (IDiscoveryContainerAdapter) serviceTracker.getService(sr);
}
}
- fail("No discovery provider by that name seems to be registered");
+ fail(NO_PROVIDER_REGISTERED);
return null;
}

Back to the top