@Test public void testReadFrom() throws Exception { channelBuffer = ChannelBuffers.copiedBuffer(entry); lspEntry.readFrom(channelBuffer); assertThat(lspEntry, is(notNullValue())); }
public void readFrom(ChannelBuffer channelBuffer) { this.setRemainingTime(channelBuffer.readUnsignedShort()); byte[] tempByteArray = new byte[IsisUtil.ID_PLUS_TWO_BYTE]; channelBuffer.readBytes(tempByteArray, 0, IsisUtil.ID_PLUS_TWO_BYTE); this.setLspId(IsisUtil.systemIdPlus(tempByteArray)); this.setLspSequenceNumber(channelBuffer.readInt()); this.setLspChecksum(channelBuffer.readUnsignedShort()); }
LspEntry { public void readFrom(ChannelBuffer channelBuffer) { this.setRemainingTime(channelBuffer.readUnsignedShort()); byte[] tempByteArray = new byte[IsisUtil.ID_PLUS_TWO_BYTE]; channelBuffer.readBytes(tempByteArray, 0, IsisUtil.ID_PLUS_TWO_BYTE); this.setLspId(IsisUtil.systemIdPlus(tempByteArray)); this.setLspSequenceNumber(channelBuffer.readInt()); this.setLspChecksum(channelBuffer.readUnsignedShort()); } }
LspEntry { public void readFrom(ChannelBuffer channelBuffer) { this.setRemainingTime(channelBuffer.readUnsignedShort()); byte[] tempByteArray = new byte[IsisUtil.ID_PLUS_TWO_BYTE]; channelBuffer.readBytes(tempByteArray, 0, IsisUtil.ID_PLUS_TWO_BYTE); this.setLspId(IsisUtil.systemIdPlus(tempByteArray)); this.setLspSequenceNumber(channelBuffer.readInt()); this.setLspChecksum(channelBuffer.readUnsignedShort()); }  }
LspEntry { public void readFrom(ChannelBuffer channelBuffer) { this.setRemainingTime(channelBuffer.readUnsignedShort()); byte[] tempByteArray = new byte[IsisUtil.ID_PLUS_TWO_BYTE]; channelBuffer.readBytes(tempByteArray, 0, IsisUtil.ID_PLUS_TWO_BYTE); this.setLspId(IsisUtil.systemIdPlus(tempByteArray)); this.setLspSequenceNumber(channelBuffer.readInt()); this.setLspChecksum(channelBuffer.readUnsignedShort()); }  int lspSequenceNumber(); void setLspSequenceNumber(int lspSequenceNumber); int lspChecksum(); void setLspChecksum(int lspChecksum); int remainingTime(); void setRemainingTime(int remainingTime); String lspId(); void setLspId(String lspId); void readFrom(ChannelBuffer channelBuffer); byte[] lspEntryAsBytes(); @Override String toString(); }
LspEntry { public void readFrom(ChannelBuffer channelBuffer) { this.setRemainingTime(channelBuffer.readUnsignedShort()); byte[] tempByteArray = new byte[IsisUtil.ID_PLUS_TWO_BYTE]; channelBuffer.readBytes(tempByteArray, 0, IsisUtil.ID_PLUS_TWO_BYTE); this.setLspId(IsisUtil.systemIdPlus(tempByteArray)); this.setLspSequenceNumber(channelBuffer.readInt()); this.setLspChecksum(channelBuffer.readUnsignedShort()); }  int lspSequenceNumber(); void setLspSequenceNumber(int lspSequenceNumber); int lspChecksum(); void setLspChecksum(int lspChecksum); int remainingTime(); void setRemainingTime(int remainingTime); String lspId(); void setLspId(String lspId); void readFrom(ChannelBuffer channelBuffer); byte[] lspEntryAsBytes(); @Override String toString();  }