@Test public void testAddOspfLsa() throws Exception { LsaWrapper lsaWrapper = new LsaWrapperImpl(); lsaBin.addOspfLsa("lsa1", lsaWrapper); assertThat(lsaBin, is(notNullValue())); }
public void addOspfLsa(String lsaKey, LsaWrapper lsaWrapper) { if (!listOfLsa.containsKey(lsaKey)) { listOfLsa.put(lsaKey, lsaWrapper); lsaWrapper.setBinNumber(this.binNumber); } }
LsaBinImpl implements LsaBin { public void addOspfLsa(String lsaKey, LsaWrapper lsaWrapper) { if (!listOfLsa.containsKey(lsaKey)) { listOfLsa.put(lsaKey, lsaWrapper); lsaWrapper.setBinNumber(this.binNumber); } } }
LsaBinImpl implements LsaBin { public void addOspfLsa(String lsaKey, LsaWrapper lsaWrapper) { if (!listOfLsa.containsKey(lsaKey)) { listOfLsa.put(lsaKey, lsaWrapper); lsaWrapper.setBinNumber(this.binNumber); } } LsaBinImpl(int binNumber); }
LsaBinImpl implements LsaBin { public void addOspfLsa(String lsaKey, LsaWrapper lsaWrapper) { if (!listOfLsa.containsKey(lsaKey)) { listOfLsa.put(lsaKey, lsaWrapper); lsaWrapper.setBinNumber(this.binNumber); } } LsaBinImpl(int binNumber); void addOspfLsa(String lsaKey, LsaWrapper lsaWrapper); LsaWrapper ospfLsa(String lsaKey); void removeOspfLsa(String lsaKey, LsaWrapper lsaWrapper); Map<String, LsaWrapper> listOfLsa(); int binNumber(); @Override String toString(); }
LsaBinImpl implements LsaBin { public void addOspfLsa(String lsaKey, LsaWrapper lsaWrapper) { if (!listOfLsa.containsKey(lsaKey)) { listOfLsa.put(lsaKey, lsaWrapper); lsaWrapper.setBinNumber(this.binNumber); } } LsaBinImpl(int binNumber); void addOspfLsa(String lsaKey, LsaWrapper lsaWrapper); LsaWrapper ospfLsa(String lsaKey); void removeOspfLsa(String lsaKey, LsaWrapper lsaWrapper); Map<String, LsaWrapper> listOfLsa(); int binNumber(); @Override String toString();  }