@Test public void testRemoveLspFromBin() throws Exception { defaultIsisLsdbAge.addLspBin(1400, isisLspBin); defaultIsisLsdbAge.removeLspFromBin(lspWrapper); assertThat(resultLspBin, is(nullValue())); }
public void removeLspFromBin(LspWrapper lspWrapper) { if (ageBins.containsKey(lspWrapper.binNumber())) { IsisLspBin lsaBin = ageBins.get(lspWrapper.binNumber()); lsaBin.removeIsisLsp(((LsPdu) lspWrapper.lsPdu()).lspId(), lspWrapper); } }
DefaultIsisLsdbAge implements IsisLsdbAge { public void removeLspFromBin(LspWrapper lspWrapper) { if (ageBins.containsKey(lspWrapper.binNumber())) { IsisLspBin lsaBin = ageBins.get(lspWrapper.binNumber()); lsaBin.removeIsisLsp(((LsPdu) lspWrapper.lsPdu()).lspId(), lspWrapper); } } }
DefaultIsisLsdbAge implements IsisLsdbAge { public void removeLspFromBin(LspWrapper lspWrapper) { if (ageBins.containsKey(lspWrapper.binNumber())) { IsisLspBin lsaBin = ageBins.get(lspWrapper.binNumber()); lsaBin.removeIsisLsp(((LsPdu) lspWrapper.lsPdu()).lspId(), lspWrapper); } } DefaultIsisLsdbAge(); }
DefaultIsisLsdbAge implements IsisLsdbAge { public void removeLspFromBin(LspWrapper lspWrapper) { if (ageBins.containsKey(lspWrapper.binNumber())) { IsisLspBin lsaBin = ageBins.get(lspWrapper.binNumber()); lsaBin.removeIsisLsp(((LsPdu) lspWrapper.lsPdu()).lspId(), lspWrapper); } } DefaultIsisLsdbAge(); int ageCounter(); int ageCounterRollOver(); void addLspBin(int binNumber, IsisLspBin lspBin); IsisLspBin getLspBin(int binKey); void removeLspFromBin(LspWrapper lspWrapper); int age2Bin(int age); void startDbAging(); void ageLsp(); void maxAgeLsa(); void refreshLsa(); }
DefaultIsisLsdbAge implements IsisLsdbAge { public void removeLspFromBin(LspWrapper lspWrapper) { if (ageBins.containsKey(lspWrapper.binNumber())) { IsisLspBin lsaBin = ageBins.get(lspWrapper.binNumber()); lsaBin.removeIsisLsp(((LsPdu) lspWrapper.lsPdu()).lspId(), lspWrapper); } } DefaultIsisLsdbAge(); int ageCounter(); int ageCounterRollOver(); void addLspBin(int binNumber, IsisLspBin lspBin); IsisLspBin getLspBin(int binKey); void removeLspFromBin(LspWrapper lspWrapper); int age2Bin(int age); void startDbAging(); void ageLsp(); void maxAgeLsa(); void refreshLsa();  }