@Test public void testAddLinkStateHeader() throws Exception { lsaHeader = createLsaHeader(); lsAck.addLinkStateHeader(lsaHeader); lsAck.addLinkStateHeader(lsaHeader); assertThat(lsAck, is(notNullValue())); }
public void addLinkStateHeader(LsaHeader lsaHeader) { if (!linkStateHeaders.contains(lsaHeader)) { linkStateHeaders.add(lsaHeader); } }
LsAcknowledge extends OspfPacketHeader { public void addLinkStateHeader(LsaHeader lsaHeader) { if (!linkStateHeaders.contains(lsaHeader)) { linkStateHeaders.add(lsaHeader); } } }
LsAcknowledge extends OspfPacketHeader { public void addLinkStateHeader(LsaHeader lsaHeader) { if (!linkStateHeaders.contains(lsaHeader)) { linkStateHeaders.add(lsaHeader); } } LsAcknowledge();  LsAcknowledge(OspfPacketHeader ospfHeader); }
LsAcknowledge extends OspfPacketHeader { public void addLinkStateHeader(LsaHeader lsaHeader) { if (!linkStateHeaders.contains(lsaHeader)) { linkStateHeaders.add(lsaHeader); } } LsAcknowledge();  LsAcknowledge(OspfPacketHeader ospfHeader); List<LsaHeader> getLinkStateHeaders(); void addLinkStateHeader(LsaHeader lsaHeader); @Override OspfPacketType ospfMessageType(); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); byte[] getLsAckAsByteArray(); byte[] getLsAckBodyAsByteArray(); @Override String toString(); }
LsAcknowledge extends OspfPacketHeader { public void addLinkStateHeader(LsaHeader lsaHeader) { if (!linkStateHeaders.contains(lsaHeader)) { linkStateHeaders.add(lsaHeader); } } LsAcknowledge();  LsAcknowledge(OspfPacketHeader ospfHeader); List<LsaHeader> getLinkStateHeaders(); void addLinkStateHeader(LsaHeader lsaHeader); @Override OspfPacketType ospfMessageType(); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); byte[] getLsAckAsByteArray(); byte[] getLsAckBodyAsByteArray(); @Override String toString();  }