@Test(expected=IllegalStateException.class) public void testEnableThrowsExceptionIfNoListenerIsSet() throws Exception { Discovery discovery = new Discovery(); discovery.enable(); }
public void enable(DiscoveryListener listener) throws DiscoveryException { setDisoveryListener(listener); enable(); }
Discovery { public void enable(DiscoveryListener listener) throws DiscoveryException { setDisoveryListener(listener); enable(); } }
Discovery { public void enable(DiscoveryListener listener) throws DiscoveryException { setDisoveryListener(listener); enable(); } Discovery();  Discovery(int port);  Discovery(String multicastAddress, int port); }
Discovery { public void enable(DiscoveryListener listener) throws DiscoveryException { setDisoveryListener(listener); enable(); } Discovery();  Discovery(int port);  Discovery(String multicastAddress, int port); void setDisoveryListener(DiscoveryListener listener); void enable(DiscoveryListener listener); void enable(); void disable(); }
Discovery { public void enable(DiscoveryListener listener) throws DiscoveryException { setDisoveryListener(listener); enable(); } Discovery();  Discovery(int port);  Discovery(String multicastAddress, int port); void setDisoveryListener(DiscoveryListener listener); void enable(DiscoveryListener listener); void enable(); void disable();  }