diff options
author | slewis | 2009-04-01 15:15:50 +0000 |
---|---|---|
committer | slewis | 2009-04-01 15:15:50 +0000 |
commit | 19f88c9f3ef7a0e4fa655010ee0724c9d473b9b1 (patch) | |
tree | 368d0a53bc4329a2bce5cfda1adc821ce2d029bd /tests | |
parent | af08cace41e87902065a1fa984d1bee8a9f73f29 (diff) | |
download | org.eclipse.ecf-19f88c9f3ef7a0e4fa655010ee0724c9d473b9b1.tar.gz org.eclipse.ecf-19f88c9f3ef7a0e4fa655010ee0724c9d473b9b1.tar.xz org.eclipse.ecf-19f88c9f3ef7a0e4fa655010ee0724c9d473b9b1.zip |
Fix tests for new ServicePublication interface
Diffstat (limited to 'tests')
4 files changed, 27 insertions, 0 deletions
diff --git a/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/AbstractServicePublicationTest.java b/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/AbstractServicePublicationTest.java index 5b72340c6..29cb9e2b4 100644 --- a/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/AbstractServicePublicationTest.java +++ b/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/AbstractServicePublicationTest.java @@ -42,6 +42,11 @@ public abstract class AbstractServicePublicationTest extends ECFAbstractTestCase protected abstract IContainer createContainer() throws Exception; protected abstract String[] createInterfaces() throws Exception; + private ServiceReference reference; + + public ServiceReference getReference() { + return reference; + } protected void setUp() throws Exception { super.setUp(); diff --git a/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/generic/GenericServicePublicationTest.java b/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/generic/GenericServicePublicationTest.java index 8ecf234df..d7382894d 100644 --- a/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/generic/GenericServicePublicationTest.java +++ b/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/generic/GenericServicePublicationTest.java @@ -15,6 +15,7 @@ import org.eclipse.ecf.core.ContainerFactory; import org.eclipse.ecf.core.IContainer; import org.eclipse.ecf.tests.osgi.services.distribution.AbstractServicePublicationTest; import org.eclipse.ecf.tests.osgi.services.distribution.TestServiceInterface1; +import org.osgi.framework.ServiceReference; public class GenericServicePublicationTest extends AbstractServicePublicationTest { @@ -26,4 +27,9 @@ public class GenericServicePublicationTest extends AbstractServicePublicationTes return new String[] { TestServiceInterface1.class.getName() }; } + public ServiceReference getReference() { + // TODO Auto-generated method stub + return null; + } + } diff --git a/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/generic/GenericServiceRegisterTest.java b/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/generic/GenericServiceRegisterTest.java index cecaa744d..146f82e06 100644 --- a/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/generic/GenericServiceRegisterTest.java +++ b/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/generic/GenericServiceRegisterTest.java @@ -11,6 +11,7 @@ package org.eclipse.ecf.tests.osgi.services.distribution.generic; import org.eclipse.ecf.tests.osgi.services.distribution.AbstractServiceRegisterTest; +import org.osgi.framework.ServiceReference; public class GenericServiceRegisterTest extends AbstractServiceRegisterTest { @@ -37,4 +38,12 @@ public class GenericServiceRegisterTest extends AbstractServiceRegisterTest { protected String getClientContainerName() { return "ecf.generic.client"; } + + + public ServiceReference getReference() { + // TODO Auto-generated method stub + return null; + } + + } diff --git a/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/r_osgi/R_OSGiServiceRegisterTest.java b/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/r_osgi/R_OSGiServiceRegisterTest.java index 0f4fb37b4..bcec4b640 100644 --- a/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/r_osgi/R_OSGiServiceRegisterTest.java +++ b/tests/bundles/org.eclipse.ecf.tests.osgi.services.distribution/src/org/eclipse/ecf/tests/osgi/services/distribution/r_osgi/R_OSGiServiceRegisterTest.java @@ -14,6 +14,7 @@ import org.eclipse.ecf.core.ContainerFactory; import org.eclipse.ecf.core.IContainer; import org.eclipse.ecf.core.identity.IDFactory; import org.eclipse.ecf.tests.osgi.services.distribution.AbstractServiceRegisterTest; +import org.osgi.framework.ServiceReference; public class R_OSGiServiceRegisterTest extends AbstractServiceRegisterTest { @@ -52,5 +53,11 @@ public class R_OSGiServiceRegisterTest extends AbstractServiceRegisterTest { protected String getClientContainerName() { return "ecf.r_osgi.peer"; } + + + public ServiceReference getReference() { + // TODO Auto-generated method stub + return null; + } } |