Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkuppe2008-12-18 10:17:16 -0500
committermkuppe2008-12-18 10:17:16 -0500
commitca07022fe6217682010f13d233f799d6c5c75b0f (patch)
treeb8833507034ca7acd6e55a9559e70b838b935032 /tests/bundles/org.eclipse.ecf.tests.provider.jslp
parentdcc3d3bfad3901c770b6fe9ceb88af991633f699 (diff)
downloadorg.eclipse.ecf-ca07022fe6217682010f13d233f799d6c5c75b0f.tar.gz
org.eclipse.ecf-ca07022fe6217682010f13d233f799d6c5c75b0f.tar.xz
org.eclipse.ecf-ca07022fe6217682010f13d233f799d6c5c75b0f.zip
NEW - bug 230183: [remotesvcs] Remove create org.eclipse.ecf.discovery.identity.IServiceID by java.lang.String
https://bugs.eclipse.org/bugs/show_bug.cgi?id=230183
Diffstat (limited to 'tests/bundles/org.eclipse.ecf.tests.provider.jslp')
-rwxr-xr-xtests/bundles/org.eclipse.ecf.tests.provider.jslp/src/org/eclipse/ecf/tests/provider/jslp/identity/JSLPServiceIDTest.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/bundles/org.eclipse.ecf.tests.provider.jslp/src/org/eclipse/ecf/tests/provider/jslp/identity/JSLPServiceIDTest.java b/tests/bundles/org.eclipse.ecf.tests.provider.jslp/src/org/eclipse/ecf/tests/provider/jslp/identity/JSLPServiceIDTest.java
index 91da21a10..2a5735012 100755
--- a/tests/bundles/org.eclipse.ecf.tests.provider.jslp/src/org/eclipse/ecf/tests/provider/jslp/identity/JSLPServiceIDTest.java
+++ b/tests/bundles/org.eclipse.ecf.tests.provider.jslp/src/org/eclipse/ecf/tests/provider/jslp/identity/JSLPServiceIDTest.java
@@ -32,9 +32,12 @@ public class JSLPServiceIDTest extends ServiceIDTest {
private static final int PRIORITY = 42;
private static final String ASERVICENAME = "aServicename";
private static final String IANA = "iana";
+ private static final String[] scopes = {"ascope"};
+ private static final String[] services = {"ecf", "foo", "bar"};
+ private static final String[] protocols = {"aproto"};
public JSLPServiceIDTest() {
- super(JSLPNamespace.NAME);
+ super(JSLPNamespace.NAME, services, scopes, protocols, "ecf-eclipse");
}
/* (non-Javadoc)
@@ -82,7 +85,7 @@ public class JSLPServiceIDTest extends ServiceIDTest {
final String internalRep = "service:foo.eclipse:bar";
final ServiceURL sUrl = new ServiceURL(internalRep + "://localhost:1234/a/path/to/something", ServiceURL.LIFETIME_PERMANENT);
- final IServiceInfo serviceInfo = new JSLPServiceInfo(new ServiceURLAdapter(sUrl, "aServiceNameString"), PRIORITY, WEIGHT, new ServicePropertiesAdapter(new ArrayList()));
+ final IServiceInfo serviceInfo = new JSLPServiceInfo(new ServiceURLAdapter(sUrl, ASERVICENAME), PRIORITY, WEIGHT, new ServicePropertiesAdapter(new ArrayList()));
assertEquals(serviceInfo.getPriority(), PRIORITY);
assertEquals(serviceInfo.getWeight(), WEIGHT);
final IServiceID sid = serviceInfo.getServiceID();

Back to the top