@Test public void testDeleteBindingsOnBadInputs() { List<SxpDatabaseBinding> deleted = database.deleteBindings(null); assertTrue(deleted.isEmpty()); List<SxpDatabaseBinding> deleted2 = database.deleteBindings(null, Collections.EMPTY_LIST); assertTrue(deleted2.isEmpty()); List<SxpDatabaseBinding> deleted3 = database.deleteBindings(NodeId.getDefaultInstance("30.30.30.30"), Collections.EMPTY_LIST); assertTrue(deleted3.isEmpty()); List<SxpDatabaseBinding> deleted4 = database.deleteBindings(NodeId.getDefaultInstance("30.30.30.30"), (List) null); assertTrue(deleted4.isEmpty()); List<SxpDatabaseBinding> deleted5 = database.deleteBindings(null, (List) null); assertTrue(deleted5.isEmpty()); }
@Override protected boolean deleteBindings(NodeId nodeId, BindingDatabase.BindingType bindingType) { return this.bindings.get(bindingType).remove(nodeId) != null; }
SxpDatabaseImpl extends org.opendaylight.sxp.util.database.SxpDatabase { @Override protected boolean deleteBindings(NodeId nodeId, BindingDatabase.BindingType bindingType) { return this.bindings.get(bindingType).remove(nodeId) != null; } }
SxpDatabaseImpl extends org.opendaylight.sxp.util.database.SxpDatabase { @Override protected boolean deleteBindings(NodeId nodeId, BindingDatabase.BindingType bindingType) { return this.bindings.get(bindingType).remove(nodeId) != null; } SxpDatabaseImpl(); }
SxpDatabaseImpl extends org.opendaylight.sxp.util.database.SxpDatabase { @Override protected boolean deleteBindings(NodeId nodeId, BindingDatabase.BindingType bindingType) { return this.bindings.get(bindingType).remove(nodeId) != null; } SxpDatabaseImpl(); @Override void close(); }
SxpDatabaseImpl extends org.opendaylight.sxp.util.database.SxpDatabase { @Override protected boolean deleteBindings(NodeId nodeId, BindingDatabase.BindingType bindingType) { return this.bindings.get(bindingType).remove(nodeId) != null; } SxpDatabaseImpl(); @Override void close();  }