@Test public void testGetLsaBodyAsByteArray() throws Exception { opqueHeader = new OpaqueLsaHeader(); opqueHeader.setLsType(11); opqueHeader.setLsPacketLen(48); opqueHeader.setLsCheckSum(10); opqueHeader.setAge(4); opqueHeader.setOpaqueId(1); opqueHeader.setOpaqueType(11); opqueHeader.setLsSequenceNo(250); opqueHeader.setAdvertisingRouter(Ip4Address.valueOf("100.226.165.165")); opqueHeader.setOptions(2); opaqueLsa11 = new OpaqueLsa11(opqueHeader); channelBuffer = ChannelBuffers.copiedBuffer(packet); opaqueLsa11.readFrom(channelBuffer); result = opaqueLsa11.getLsaBodyAsByteArray(); assertThat(result, is(notNullValue())); }
public byte[] getLsaBodyAsByteArray() { return opaqueInfo; }
OpaqueLsa11 extends OpaqueLsaHeader { public byte[] getLsaBodyAsByteArray() { return opaqueInfo; } }
OpaqueLsa11 extends OpaqueLsaHeader { public byte[] getLsaBodyAsByteArray() { return opaqueInfo; } OpaqueLsa11(OpaqueLsaHeader lsaHeader); }
OpaqueLsa11 extends OpaqueLsaHeader { public byte[] getLsaBodyAsByteArray() { return opaqueInfo; } OpaqueLsa11(OpaqueLsaHeader lsaHeader); void readFrom(ChannelBuffer channelBuffer); byte[] asBytes(); byte[] getLsaBodyAsByteArray(); @Override OspfLsaType getOspfLsaType(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
OpaqueLsa11 extends OpaqueLsaHeader { public byte[] getLsaBodyAsByteArray() { return opaqueInfo; } OpaqueLsa11(OpaqueLsaHeader lsaHeader); void readFrom(ChannelBuffer channelBuffer); byte[] asBytes(); byte[] getLsaBodyAsByteArray(); @Override OspfLsaType getOspfLsaType(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }