@Test public void testAsBytes() throws Exception { channelBuffer = ChannelBuffers.copiedBuffer(psnpPkt); psnp.readFrom(channelBuffer); result = psnp.asBytes(); assertThat(result, is(notNullValue())); }
@Override public byte[] asBytes() { byte[] psnpMessage = null; byte[] isisPduHeader = isisPduHeader(); byte[] psnpBody = partialSequenceNumberPduBody(); psnpMessage = Bytes.concat(isisPduHeader, psnpBody); return psnpMessage; }
Psnp extends IsisHeader { @Override public byte[] asBytes() { byte[] psnpMessage = null; byte[] isisPduHeader = isisPduHeader(); byte[] psnpBody = partialSequenceNumberPduBody(); psnpMessage = Bytes.concat(isisPduHeader, psnpBody); return psnpMessage; } }
Psnp extends IsisHeader { @Override public byte[] asBytes() { byte[] psnpMessage = null; byte[] isisPduHeader = isisPduHeader(); byte[] psnpBody = partialSequenceNumberPduBody(); psnpMessage = Bytes.concat(isisPduHeader, psnpBody); return psnpMessage; } Psnp(IsisHeader isisHeader); }
Psnp extends IsisHeader { @Override public byte[] asBytes() { byte[] psnpMessage = null; byte[] isisPduHeader = isisPduHeader(); byte[] psnpBody = partialSequenceNumberPduBody(); psnpMessage = Bytes.concat(isisPduHeader, psnpBody); return psnpMessage; } Psnp(IsisHeader isisHeader); void addTlv(IsisTlv isisTlv); List<IsisTlv> getAllTlv(); String sourceId(); void setSourceId(String sourceId); int pduLength(); void setPduLength(int pduLength); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); byte[] isisPduHeader(); byte[] partialSequenceNumberPduBody(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
Psnp extends IsisHeader { @Override public byte[] asBytes() { byte[] psnpMessage = null; byte[] isisPduHeader = isisPduHeader(); byte[] psnpBody = partialSequenceNumberPduBody(); psnpMessage = Bytes.concat(isisPduHeader, psnpBody); return psnpMessage; } Psnp(IsisHeader isisHeader); void addTlv(IsisTlv isisTlv); List<IsisTlv> getAllTlv(); String sourceId(); void setSourceId(String sourceId); int pduLength(); void setPduLength(int pduLength); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); byte[] isisPduHeader(); byte[] partialSequenceNumberPduBody(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }