Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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