Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-03-13 01:45:38 -0400
committerslewis2007-03-13 01:45:38 -0400
commitf0ab1319063683f267aa34334f956c8fbfa670ab (patch)
treedcdc1ddece7f316e155a21620f461c4e87801f67 /tests/bundles/org.eclipse.ecf.tests.discovery
parentd73c385a245696bc85c2637b4f0929fd1a8cb9c0 (diff)
downloadorg.eclipse.ecf-f0ab1319063683f267aa34334f956c8fbfa670ab.tar.gz
org.eclipse.ecf-f0ab1319063683f267aa34334f956c8fbfa670ab.tar.xz
org.eclipse.ecf-f0ab1319063683f267aa34334f956c8fbfa670ab.zip
Simplification of discovery API
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.java4
-rwxr-xr-xtests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/JMDNSDiscoveryTest.java4
2 files changed, 4 insertions, 4 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 fa3da1615..2de6d093a 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
@@ -91,9 +91,9 @@ public class DiscoveryServiceTest extends TestCase {
public void serviceTypeAdded(IServiceEvent event) {
System.out.println("serviceTypeAdded(" + event + ")");
ServiceID svcID = event.getServiceInfo().getServiceID();
- discoveryInstance.addServiceListener(svcID,
+ discoveryInstance.addServiceListener(svcID.getServiceType(),
new CollabServiceListener());
- discoveryInstance.registerServiceType(svcID);
+ discoveryInstance.registerServiceType(svcID.getServiceType());
}
}
class CollabServiceListener implements IServiceListener {
diff --git a/tests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/JMDNSDiscoveryTest.java b/tests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/JMDNSDiscoveryTest.java
index d7a767cbd..5bf4a7b2d 100755
--- a/tests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/JMDNSDiscoveryTest.java
+++ b/tests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/JMDNSDiscoveryTest.java
@@ -84,9 +84,9 @@ public class JMDNSDiscoveryTest extends TestCase {
public void serviceTypeAdded(IServiceEvent event) {
System.out.println("serviceTypeAdded(" + event + ")");
ServiceID svcID = event.getServiceInfo().getServiceID();
- discoveryContainer.addServiceListener(svcID,
+ discoveryContainer.addServiceListener(svcID.getServiceType(),
new CollabServiceListener());
- discoveryContainer.registerServiceType(svcID);
+ discoveryContainer.registerServiceType(svcID.getServiceType());
}
}
class CollabServiceListener implements IServiceListener {

Back to the top