@Test public void testAddLinkStateRequests() throws Exception { lsRequest.addLinkStateRequests(createLsRequestPacket()); result = lsRequest.getLinkStateRequests(); assertThat(result, is(notNullValue())); assertThat(result.size(), is(1)); }
public void addLinkStateRequests(LsRequestPacket lsRequestPacket) { if (!linkStateRequests.contains(lsRequestPacket)) { linkStateRequests.add(lsRequestPacket); } }
LsRequest extends OspfPacketHeader { public void addLinkStateRequests(LsRequestPacket lsRequestPacket) { if (!linkStateRequests.contains(lsRequestPacket)) { linkStateRequests.add(lsRequestPacket); } } }
LsRequest extends OspfPacketHeader { public void addLinkStateRequests(LsRequestPacket lsRequestPacket) { if (!linkStateRequests.contains(lsRequestPacket)) { linkStateRequests.add(lsRequestPacket); } } LsRequest();  LsRequest(OspfPacketHeader ospfHeader); }
LsRequest extends OspfPacketHeader { public void addLinkStateRequests(LsRequestPacket lsRequestPacket) { if (!linkStateRequests.contains(lsRequestPacket)) { linkStateRequests.add(lsRequestPacket); } } LsRequest();  LsRequest(OspfPacketHeader ospfHeader); void addLinkStateRequests(LsRequestPacket lsRequestPacket); List<LsRequestPacket> getLinkStateRequests(); @Override OspfPacketType ospfMessageType(); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); byte[] getLsrHeaderAsByteArray(); byte[] getLsrBodyAsByteArray(); @Override String toString(); }
LsRequest extends OspfPacketHeader { public void addLinkStateRequests(LsRequestPacket lsRequestPacket) { if (!linkStateRequests.contains(lsRequestPacket)) { linkStateRequests.add(lsRequestPacket); } } LsRequest();  LsRequest(OspfPacketHeader ospfHeader); void addLinkStateRequests(LsRequestPacket lsRequestPacket); List<LsRequestPacket> getLinkStateRequests(); @Override OspfPacketType ospfMessageType(); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); byte[] getLsrHeaderAsByteArray(); byte[] getLsrBodyAsByteArray(); @Override String toString();  }