@Test public void testRegister() { Set<URL> registered = null; registered = registry.getRegistered(); for (int i = 0; i < 2; i++) { registry.register(serviceUrl); registered = registry.getRegistered(); assertTrue(registered.contains(serviceUrl)); } registered = registry.getRegistered(); assertEquals(1, registered.size()); }
public void register(URL url) { super.register(url); registered(url); }
MulticastRegistry extends FailbackRegistry { public void register(URL url) { super.register(url); registered(url); } }
MulticastRegistry extends FailbackRegistry { public void register(URL url) { super.register(url); registered(url); } MulticastRegistry(URL url); }
MulticastRegistry extends FailbackRegistry { public void register(URL url) { super.register(url); registered(url); } MulticastRegistry(URL url); boolean isAvailable(); void destroy(); void register(URL url); void unregister(URL url); void subscribe(URL url, NotifyListener listener); void unsubscribe(URL url, NotifyListener listener); List<URL> lookup(URL url); MulticastSocket getMutilcastSocket(); Map<URL, Set<URL>> getReceived(); }
MulticastRegistry extends FailbackRegistry { public void register(URL url) { super.register(url); registered(url); } MulticastRegistry(URL url); boolean isAvailable(); void destroy(); void register(URL url); void unregister(URL url); void subscribe(URL url, NotifyListener listener); void unsubscribe(URL url, NotifyListener listener); List<URL> lookup(URL url); MulticastSocket getMutilcastSocket(); Map<URL, Set<URL>> getReceived();  }