@Test public void testGetDatapathID() { registry.init(); registry.registerConnectionAdapter(conn, features); Assert.assertEquals("Wrong map", new BigInteger("1"), registry.getDatapathID(conn)); }
public synchronized BigInteger getDatapathID(ConnectionAdapter connectionAdapter) throws NullPointerException { if (connectionAdapterMap.containsKey(connectionAdapter)) { GetFeaturesOutput obj = connectionAdapterMap.get(connectionAdapter); if (obj != null) { return obj.getDatapathId(); } } return null; }
ConnectionAdaptersRegistry { public synchronized BigInteger getDatapathID(ConnectionAdapter connectionAdapter) throws NullPointerException { if (connectionAdapterMap.containsKey(connectionAdapter)) { GetFeaturesOutput obj = connectionAdapterMap.get(connectionAdapter); if (obj != null) { return obj.getDatapathId(); } } return null; } }
ConnectionAdaptersRegistry { public synchronized BigInteger getDatapathID(ConnectionAdapter connectionAdapter) throws NullPointerException { if (connectionAdapterMap.containsKey(connectionAdapter)) { GetFeaturesOutput obj = connectionAdapterMap.get(connectionAdapter); if (obj != null) { return obj.getDatapathId(); } } return null; }  }
ConnectionAdaptersRegistry { public synchronized BigInteger getDatapathID(ConnectionAdapter connectionAdapter) throws NullPointerException { if (connectionAdapterMap.containsKey(connectionAdapter)) { GetFeaturesOutput obj = connectionAdapterMap.get(connectionAdapter); if (obj != null) { return obj.getDatapathId(); } } return null; }  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 BigInteger getDatapathID(ConnectionAdapter connectionAdapter) throws NullPointerException { if (connectionAdapterMap.containsKey(connectionAdapter)) { GetFeaturesOutput obj = connectionAdapterMap.get(connectionAdapter); if (obj != null) { return obj.getDatapathId(); } } return null; }  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);  }