Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: a7ea670a10a01d117a51bca223327ee37b53a0c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/****************************************************************************
 * Copyright (c) 2007 Versant Corp.
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * Contributors:
 *     Markus Kuppe (mkuppe <at> versant <dot> com) - initial API and implementation
 *
 * SPDX-License-Identifier: EPL-2.0
 *****************************************************************************/

package org.eclipse.ecf.tests.provider.jmdns.identity;

import org.eclipse.ecf.tests.discovery.identity.ServiceIDTest;

/**
 *
 */
public class JMDNSServiceIDTest extends ServiceIDTest {
//	private static final String[] scopes = {"local", "default"};
//	private static final String[] services = {"ecf", "foo", "bar"};
//	private static final String[] protocols = {"tcp", "udp"};

	public JMDNSServiceIDTest() {
		super("ecf.namespace.jmdns");//, services, scopes, protocols, "ecf-eclipse");
	}

//	public void testJMDNSServiceTypeIDWithIPv6() {
//		final String serviceType = "1.0.0.0.0.c.e.f.f.f.6.5.0.5.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa.";
//		fail("Not implemented yet, don't know how to handle this service type " + serviceType + " if it even is one");
//	}

	/* (non-Javadoc)
	 * @see org.eclipse.ecf.tests.discovery.identity.ServiceIDTest#testCreateServiceTypeIDFromInternalString()
	 */
	public void testCreateServiceTypeIDWithProviderSpecificString() {
		final String internalRep = "_service._tcp.local";
		createIDFromString(internalRep);
	}

	/* (non-Javadoc)
	 * @see org.eclipse.ecf.tests.discovery.identity.ServiceIDTest#testCreateServiceTypeIDFromInternalString()
	 */
	public void testCreateServiceTypeIDFromInternalString2() {
		final String internalRep = "_service._tcp.ecf.eclipse.org";
		createIDFromString(internalRep);
	}
}

Back to the top