@Test public void testCompleteSequenceNumberPduBody() throws Exception { channelBuffer = ChannelBuffers.copiedBuffer(csnpBytes); csnp.readFrom(channelBuffer); result = csnp.completeSequenceNumberPduBody(); assertThat(result, is(notNullValue())); }
public byte[] completeSequenceNumberPduBody() { List<Byte> bodyList = new ArrayList<>(); bodyList.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.startLspId())); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.endLspId())); for (IsisTlv isisTlv : variableLengths) { bodyList.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyList); }
Csnp extends IsisHeader { public byte[] completeSequenceNumberPduBody() { List<Byte> bodyList = new ArrayList<>(); bodyList.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.startLspId())); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.endLspId())); for (IsisTlv isisTlv : variableLengths) { bodyList.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyList); } }
Csnp extends IsisHeader { public byte[] completeSequenceNumberPduBody() { List<Byte> bodyList = new ArrayList<>(); bodyList.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.startLspId())); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.endLspId())); for (IsisTlv isisTlv : variableLengths) { bodyList.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyList); } Csnp(IsisHeader isisHeader); }
Csnp extends IsisHeader { public byte[] completeSequenceNumberPduBody() { List<Byte> bodyList = new ArrayList<>(); bodyList.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.startLspId())); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.endLspId())); for (IsisTlv isisTlv : variableLengths) { bodyList.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyList); } Csnp(IsisHeader isisHeader); List<IsisTlv> getAllTlv(); String sourceId(); void setSourceId(String sourceId); String startLspId(); void setStartLspId(String startLspId); String endLspId(); void setEndLspId(String endLspId); int pduLength(); void setPduLength(int pduLength); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); byte[] isisPduHeader(); byte[] completeSequenceNumberPduBody(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
Csnp extends IsisHeader { public byte[] completeSequenceNumberPduBody() { List<Byte> bodyList = new ArrayList<>(); bodyList.addAll(Bytes.asList(IsisUtil.convertToTwoBytes(this.pduLength()))); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.sourceId())); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.startLspId())); bodyList.addAll(IsisUtil.sourceAndLanIdToBytes(this.endLspId())); for (IsisTlv isisTlv : variableLengths) { bodyList.addAll(TlvsToBytes.tlvToBytes(isisTlv)); } return Bytes.toArray(bodyList); } Csnp(IsisHeader isisHeader); List<IsisTlv> getAllTlv(); String sourceId(); void setSourceId(String sourceId); String startLspId(); void setStartLspId(String startLspId); String endLspId(); void setEndLspId(String endLspId); int pduLength(); void setPduLength(int pduLength); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); byte[] isisPduHeader(); byte[] completeSequenceNumberPduBody(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }