@Test public void testAddRouterLink() throws Exception { routerLsa.setNoLink(0); ospflsaLink = createOspfLsaLink(); routerLsa.addRouterLink(ospflsaLink); routerLsa.incrementLinkNo(); result1 = routerLsa.noLink(); assertThat(result1, is(1)); }
public void addRouterLink(OspfLsaLink lsaLink) { if (!this.routerLinks.contains(lsaLink)) { this.routerLinks.add(lsaLink); } }
RouterLsa extends LsaHeader { public void addRouterLink(OspfLsaLink lsaLink) { if (!this.routerLinks.contains(lsaLink)) { this.routerLinks.add(lsaLink); } } }
RouterLsa extends LsaHeader { public void addRouterLink(OspfLsaLink lsaLink) { if (!this.routerLinks.contains(lsaLink)) { this.routerLinks.add(lsaLink); } } RouterLsa();  RouterLsa(LsaHeader lsaHeader); }
RouterLsa extends LsaHeader { public void addRouterLink(OspfLsaLink lsaLink) { if (!this.routerLinks.contains(lsaLink)) { this.routerLinks.add(lsaLink); } } RouterLsa();  RouterLsa(LsaHeader lsaHeader); void setVirtualEndPoint(boolean isVirtualEndPoint); void setAsBoundaryRouter(boolean isAsBoundaryRouter); void setAreaBorderRouter(boolean isAreaBorderRouter); int noLink(); void setNoLink(int noLink); void addRouterLink(OspfLsaLink lsaLink); List<OspfLsaLink> routerLink(); void readFrom(ChannelBuffer channelBuffer); byte[] asBytes(); byte[] getLsaBodyAsByteArray(); void incrementLinkNo(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
RouterLsa extends LsaHeader { public void addRouterLink(OspfLsaLink lsaLink) { if (!this.routerLinks.contains(lsaLink)) { this.routerLinks.add(lsaLink); } } RouterLsa();  RouterLsa(LsaHeader lsaHeader); void setVirtualEndPoint(boolean isVirtualEndPoint); void setAsBoundaryRouter(boolean isAsBoundaryRouter); void setAreaBorderRouter(boolean isAreaBorderRouter); int noLink(); void setNoLink(int noLink); void addRouterLink(OspfLsaLink lsaLink); List<OspfLsaLink> routerLink(); void readFrom(ChannelBuffer channelBuffer); byte[] asBytes(); byte[] getLsaBodyAsByteArray(); void incrementLinkNo(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }