@Test public void testRemoveURLConnection() { m_genericURLFactory.removeURLConnection("myProtocol"); Assert.assertNull("Test add URL connection", m_genericURLFactory.getURLConnections().get("myProtocol")); }
public void removeURLConnection(String protocol) { if (urlConnections.containsKey(protocol)) { urlConnections.remove(protocol); logger.debug("Remove existing protocol: '{}'", protocol); } }
GenericURLFactory implements URLStreamHandlerFactory { public void removeURLConnection(String protocol) { if (urlConnections.containsKey(protocol)) { urlConnections.remove(protocol); logger.debug("Remove existing protocol: '{}'", protocol); } } }
GenericURLFactory implements URLStreamHandlerFactory { public void removeURLConnection(String protocol) { if (urlConnections.containsKey(protocol)) { urlConnections.remove(protocol); logger.debug("Remove existing protocol: '{}'", protocol); } } private  GenericURLFactory(); }
GenericURLFactory implements URLStreamHandlerFactory { public void removeURLConnection(String protocol) { if (urlConnections.containsKey(protocol)) { urlConnections.remove(protocol); logger.debug("Remove existing protocol: '{}'", protocol); } } private  GenericURLFactory(); static void initialize(); static GenericURLFactory getInstance(); void addURLConnection(String protocol, String classname, int defaultPort); void addURLConnection(String protocol, String classname); void removeURLConnection(String protocol); HashMap<String, String> getURLConnections(); @SuppressWarnings("unchecked") URLStreamHandler createURLStreamHandler(String protocol); }
GenericURLFactory implements URLStreamHandlerFactory { public void removeURLConnection(String protocol) { if (urlConnections.containsKey(protocol)) { urlConnections.remove(protocol); logger.debug("Remove existing protocol: '{}'", protocol); } } private  GenericURLFactory(); static void initialize(); static GenericURLFactory getInstance(); void addURLConnection(String protocol, String classname, int defaultPort); void addURLConnection(String protocol, String classname); void removeURLConnection(String protocol); HashMap<String, String> getURLConnections(); @SuppressWarnings("unchecked") URLStreamHandler createURLStreamHandler(String protocol);  }