@Test public void testAgeLsaAndFlood() throws Exception { lsaWrapper = EasyMock.createMock(LsaWrapperImpl.class); lsdbAge.addLsaToMaxAgeBin("lsa1", lsaWrapper); lsaWrapper = EasyMock.createMock(LsaWrapperImpl.class); lsdbAge.addLsaToMaxAgeBin("lsa2", lsaWrapper); lsdbAge.startDbAging(); lsdbAge.ageLsaAndFlood(); Assert.assertNotNull(lsdbAge); }
public void ageLsaAndFlood() { checkAges(); refreshLsa(); maxAgeLsa(); if (ageCounter == OspfParameters.MAXAGE) { ageCounter = 0; ageCounterRollOver++; } else { ageCounter++; } }
LsdbAgeImpl implements LsdbAge { public void ageLsaAndFlood() { checkAges(); refreshLsa(); maxAgeLsa(); if (ageCounter == OspfParameters.MAXAGE) { ageCounter = 0; ageCounterRollOver++; } else { ageCounter++; } } }
LsdbAgeImpl implements LsdbAge { public void ageLsaAndFlood() { checkAges(); refreshLsa(); maxAgeLsa(); if (ageCounter == OspfParameters.MAXAGE) { ageCounter = 0; ageCounterRollOver++; } else { ageCounter++; } } LsdbAgeImpl(OspfArea ospfArea); }
LsdbAgeImpl implements LsdbAge { public void ageLsaAndFlood() { checkAges(); refreshLsa(); maxAgeLsa(); if (ageCounter == OspfParameters.MAXAGE) { ageCounter = 0; ageCounterRollOver++; } else { ageCounter++; } } LsdbAgeImpl(OspfArea ospfArea); @Override boolean equals(Object o); @Override int hashCode(); void addLsaBin(Integer binKey, LsaBin lsaBin); LsaBin getLsaBin(Integer binKey); void addLsaToMaxAgeBin(String key, LsaWrapper wrapper); void removeLsaFromBin(LsaWrapper lsaWrapper); void startDbAging(); void ageLsaAndFlood(); void maxAgeLsa(); void refreshLsa(); void checkAges(); Channel getChannel(); void setChannel(Channel channel); int getAgeCounter(); int getAgeCounterRollOver(); LsaBin getMaxAgeBin(); int age2Bin(int x); }
LsdbAgeImpl implements LsdbAge { public void ageLsaAndFlood() { checkAges(); refreshLsa(); maxAgeLsa(); if (ageCounter == OspfParameters.MAXAGE) { ageCounter = 0; ageCounterRollOver++; } else { ageCounter++; } } LsdbAgeImpl(OspfArea ospfArea); @Override boolean equals(Object o); @Override int hashCode(); void addLsaBin(Integer binKey, LsaBin lsaBin); LsaBin getLsaBin(Integer binKey); void addLsaToMaxAgeBin(String key, LsaWrapper wrapper); void removeLsaFromBin(LsaWrapper lsaWrapper); void startDbAging(); void ageLsaAndFlood(); void maxAgeLsa(); void refreshLsa(); void checkAges(); Channel getChannel(); void setChannel(Channel channel); int getAgeCounter(); int getAgeCounterRollOver(); LsaBin getMaxAgeBin(); int age2Bin(int x);  }