Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-09-06 12:28:27 -0400
committerslewis2007-09-06 12:28:27 -0400
commit37fc938ddb30b377517f719d78c42c5ba7be19e6 (patch)
treeafe70a1ad4c3b463fccae1d275714352d4cf1056
parentd3315db02dc3b7c05c2f378b8d3479fe653f37b2 (diff)
downloadorg.eclipse.ecf-37fc938ddb30b377517f719d78c42c5ba7be19e6.tar.gz
org.eclipse.ecf-37fc938ddb30b377517f719d78c42c5ba7be19e6.tar.xz
org.eclipse.ecf-37fc938ddb30b377517f719d78c42c5ba7be19e6.zip
Applied patch for 200791
-rwxr-xr-xtests/bundles/org.eclipse.ecf.tests.discovery/src/org/eclipse/ecf/tests/discovery/DiscoveryTest.java5
1 files changed, 1 insertions, 4 deletions
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 e70ff77b1..13c748026 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
@@ -19,7 +19,6 @@ import junit.framework.TestCase;
import org.eclipse.ecf.core.ContainerFactory;
import org.eclipse.ecf.core.IContainer;
import org.eclipse.ecf.core.identity.IDFactory;
-import org.eclipse.ecf.core.identity.Namespace;
import org.eclipse.ecf.discovery.IDiscoveryContainerAdapter;
import org.eclipse.ecf.discovery.IServiceEvent;
import org.eclipse.ecf.discovery.IServiceListener;
@@ -77,9 +76,7 @@ public class DiscoveryTest extends TestCase {
final InetAddress host = InetAddress.getByName(TEST_HOST);
final int port = TEST_PORT;
final String svcName = System.getProperty("user.name") + "." + protocol;
- // XXX change this to create IServiceID in appropriate way
- final Namespace ns = IDFactory.getDefault().getNamespaceByName("ecf.namespace.jmdns");
- final IServiceID serviceID = (IServiceID) IDFactory.getDefault().createID(ns, new Object[] {TEST_SERVICE_TYPE, svcName});
+ final IServiceID serviceID = (IServiceID) IDFactory.getDefault().createID(discoveryContainer.getServicesNamespace(), new Object[] {TEST_SERVICE_TYPE, svcName});
final ServiceInfo svcInfo = new ServiceInfo(host, serviceID, port, 0, 0, new ServiceProperties(props));
discoveryContainer.registerService(svcInfo);
}

Back to the top