@Test public void testRemoveConnectionAdapter() { registry.init(); Assert.assertEquals(false, registry.removeConnectionAdapter(conn)); registry.registerConnectionAdapter(conn, features); Assert.assertEquals(true, registry.removeConnectionAdapter(conn)); Assert.assertNull(registry.getConnectionAdapter(1L)); }
public synchronized boolean removeConnectionAdapter(ConnectionAdapter conn) throws NullPointerException { GetFeaturesOutput datapathID = connectionAdapterMap.remove(conn); if (datapathID != null) { return true; } return false; }
ConnectionAdaptersRegistry { public synchronized boolean removeConnectionAdapter(ConnectionAdapter conn) throws NullPointerException { GetFeaturesOutput datapathID = connectionAdapterMap.remove(conn); if (datapathID != null) { return true; } return false; } }
ConnectionAdaptersRegistry { public synchronized boolean removeConnectionAdapter(ConnectionAdapter conn) throws NullPointerException { GetFeaturesOutput datapathID = connectionAdapterMap.remove(conn); if (datapathID != null) { return true; } return false; }  }
ConnectionAdaptersRegistry { public synchronized boolean removeConnectionAdapter(ConnectionAdapter conn) throws NullPointerException { GetFeaturesOutput datapathID = connectionAdapterMap.remove(conn); if (datapathID != null) { return true; } return false; }  synchronized void init(); synchronized void setConnectionAdapterMap(HashMap<ConnectionAdapter, GetFeaturesOutput> map); synchronized void registerConnectionAdapter(ConnectionAdapter connectionAdapter,
            GetFeaturesOutput datapathID); synchronized GetFeaturesOutput getFeaturesOutput(ConnectionAdapter connectionAdapter); synchronized BigInteger getDatapathID(ConnectionAdapter connectionAdapter); synchronized ConnectionAdapter getConnectionAdapter(Long datapathId); Set<ConnectionAdapter> getConnectionAdapters(); synchronized boolean removeConnectionAdapter(ConnectionAdapter conn); }
ConnectionAdaptersRegistry { public synchronized boolean removeConnectionAdapter(ConnectionAdapter conn) throws NullPointerException { GetFeaturesOutput datapathID = connectionAdapterMap.remove(conn); if (datapathID != null) { return true; } return false; }  synchronized void init(); synchronized void setConnectionAdapterMap(HashMap<ConnectionAdapter, GetFeaturesOutput> map); synchronized void registerConnectionAdapter(ConnectionAdapter connectionAdapter,
            GetFeaturesOutput datapathID); synchronized GetFeaturesOutput getFeaturesOutput(ConnectionAdapter connectionAdapter); synchronized BigInteger getDatapathID(ConnectionAdapter connectionAdapter); synchronized ConnectionAdapter getConnectionAdapter(Long datapathId); Set<ConnectionAdapter> getConnectionAdapters(); synchronized boolean removeConnectionAdapter(ConnectionAdapter conn);  }