Package org.eclipse.ecf.provider.dnssd

Examples of org.eclipse.ecf.provider.dnssd.DnsSdDiscoveryAdvertiser.registerService()


  public void testRegisterServiceWithoutHostKey() throws ContainerConnectException {
    final DnsSdDiscoveryAdvertiser advertiser = new DnsSdDiscoveryAdvertiser();
    advertiser.connect(null, null);
   
    try {
      advertiser.registerService(serviceInfo);
    } catch(ECFRuntimeException e) {
      advertiser.disconnect();
      return;
    }
    fail("Register should have failed without a host key given.");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.