@Test public void testGetBindingsOnNullNode() { NodeId nodeId = null; List<SxpDatabaseBinding> bindings = database.getBindings(nodeId); assertTrue(bindings.isEmpty()); }
@Override protected List<SxpDatabaseBinding> getBindings(BindingDatabase.BindingType bindingType) { List<SxpDatabaseBinding> bindingsList = new ArrayList<>(); this.bindings.get(bindingType).values().forEach(bindingsList::addAll); return bindingsList; }
SxpDatabaseImpl extends org.opendaylight.sxp.util.database.SxpDatabase { @Override protected List<SxpDatabaseBinding> getBindings(BindingDatabase.BindingType bindingType) { List<SxpDatabaseBinding> bindingsList = new ArrayList<>(); this.bindings.get(bindingType).values().forEach(bindingsList::addAll); return bindingsList; } }
SxpDatabaseImpl extends org.opendaylight.sxp.util.database.SxpDatabase { @Override protected List<SxpDatabaseBinding> getBindings(BindingDatabase.BindingType bindingType) { List<SxpDatabaseBinding> bindingsList = new ArrayList<>(); this.bindings.get(bindingType).values().forEach(bindingsList::addAll); return bindingsList; } SxpDatabaseImpl(); }
SxpDatabaseImpl extends org.opendaylight.sxp.util.database.SxpDatabase { @Override protected List<SxpDatabaseBinding> getBindings(BindingDatabase.BindingType bindingType) { List<SxpDatabaseBinding> bindingsList = new ArrayList<>(); this.bindings.get(bindingType).values().forEach(bindingsList::addAll); return bindingsList; } SxpDatabaseImpl(); @Override void close(); }
SxpDatabaseImpl extends org.opendaylight.sxp.util.database.SxpDatabase { @Override protected List<SxpDatabaseBinding> getBindings(BindingDatabase.BindingType bindingType) { List<SxpDatabaseBinding> bindingsList = new ArrayList<>(); this.bindings.get(bindingType).values().forEach(bindingsList::addAll); return bindingsList; } SxpDatabaseImpl(); @Override void close();  }