@Test public void testPartialSequenceNumberPduBody() throws Exception { channelBuffer = ChannelBuffers.copiedBuffer(psnpPkt); psnp.readFrom(channelBuffer); result = psnp.partialSequenceNumberPduBody(); assertThat(result, is(notNullValue())); }
public byte[] partialSequenceNumberPduBody() { List<Byte> bodyList = new ArrayList<>(); bodyList.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); for (IsisTlv isisTlv : variableLengths) { bodyList.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyList); }
Psnp extends IsisHeader { public byte[] partialSequenceNumberPduBody() { List<Byte> bodyList = new ArrayList<>(); bodyList.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); for (IsisTlv isisTlv : variableLengths) { bodyList.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyList); } }
Psnp extends IsisHeader { public byte[] partialSequenceNumberPduBody() { List<Byte> bodyList = new ArrayList<>(); bodyList.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); for (IsisTlv isisTlv : variableLengths) { bodyList.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyList); } Psnp(IsisHeader isisHeader); }
Psnp extends IsisHeader { public byte[] partialSequenceNumberPduBody() { List<Byte> bodyList = new ArrayList<>(); bodyList.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); for (IsisTlv isisTlv : variableLengths) { bodyList.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyList); } 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 { public byte[] partialSequenceNumberPduBody() { List<Byte> bodyList = new ArrayList<>(); bodyList.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); for (IsisTlv isisTlv : variableLengths) { bodyList.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyList); } 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();  }