Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-03-13 03:06:29 -0400
committerslewis2007-03-13 03:06:29 -0400
commitdd718c7becdb446bfeb75c37d2c9bc77dfefcc1c (patch)
tree21e6050cafbb6faf5015045bc792fc5251ca85b5 /tests/bundles/org.eclipse.ecf.tests.discovery
parent65fa28890fddc92acc74e746dec3d977e9f8b647 (diff)
downloadorg.eclipse.ecf-dd718c7becdb446bfeb75c37d2c9bc77dfefcc1c.tar.gz
org.eclipse.ecf-dd718c7becdb446bfeb75c37d2c9bc77dfefcc1c.tar.xz
org.eclipse.ecf-dd718c7becdb446bfeb75c37d2c9bc77dfefcc1c.zip
Added IServiceID interface and replaced references to ServiceID class to IServiceID interface
Diffstat (limited to 'tests/bundles/org.eclipse.ecf.tests.discovery')
-rwxr-xr-xtests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/DiscoveryServiceTest.java3
-rwxr-xr-xtests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/DiscoveryTest.java3
2 files changed, 4 insertions, 2 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 2de6d093a..5edb10170 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
@@ -21,6 +21,7 @@ import org.eclipse.ecf.discovery.IServiceListener;
import org.eclipse.ecf.discovery.IServiceTypeListener;
import org.eclipse.ecf.discovery.ServiceInfo;
import org.eclipse.ecf.discovery.ServiceProperties;
+import org.eclipse.ecf.discovery.identity.IServiceID;
import org.eclipse.ecf.discovery.identity.ServiceID;
import org.eclipse.ecf.discovery.service.IDiscoveryService;
@@ -90,7 +91,7 @@ public class DiscoveryServiceTest extends TestCase {
class CollabServiceTypeListener implements IServiceTypeListener {
public void serviceTypeAdded(IServiceEvent event) {
System.out.println("serviceTypeAdded(" + event + ")");
- ServiceID svcID = event.getServiceInfo().getServiceID();
+ IServiceID svcID = event.getServiceInfo().getServiceID();
discoveryInstance.addServiceListener(svcID.getServiceType(),
new CollabServiceListener());
discoveryInstance.registerServiceType(svcID.getServiceType());
diff --git a/tests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/DiscoveryTest.java b/tests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/DiscoveryTest.java
index cf206e2ea..4b3e458f6 100755
--- a/tests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/DiscoveryTest.java
+++ b/tests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/DiscoveryTest.java
@@ -24,6 +24,7 @@ import org.eclipse.ecf.discovery.IServiceListener;
import org.eclipse.ecf.discovery.IServiceTypeListener;
import org.eclipse.ecf.discovery.ServiceInfo;
import org.eclipse.ecf.discovery.ServiceProperties;
+import org.eclipse.ecf.discovery.identity.IServiceID;
import org.eclipse.ecf.discovery.identity.ServiceID;
public class DiscoveryTest extends TestCase {
@@ -83,7 +84,7 @@ public class DiscoveryTest extends TestCase {
class CollabServiceTypeListener implements IServiceTypeListener {
public void serviceTypeAdded(IServiceEvent event) {
System.out.println("serviceTypeAdded(" + event + ")");
- ServiceID svcID = event.getServiceInfo().getServiceID();
+ IServiceID svcID = event.getServiceInfo().getServiceID();
discoveryContainer.addServiceListener(svcID.getServiceType(),
new CollabServiceListener());
discoveryContainer.registerServiceType(svcID.getServiceType());

Back to the top