blob: 2d5b694102acf6b83c505a1436b3293cc1156da7 (
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
|
/*******************************************************************************
* Copyright (c) 2007 Versant Corp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Markus Kuppe (mkuppe <at> versant <dot> com) - initial API and implementation
******************************************************************************/
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);
}
}
|