@Test public void testReadFrom() throws Exception { channelBuffer = ChannelBuffers.copiedBuffer(tlv); protocolSupportedTlv.readFrom(channelBuffer); supported = protocolSupportedTlv.protocolSupported(); assertThat(supported.size(), is(1)); }
@Override public void readFrom(ChannelBuffer channelBuffer) { while (channelBuffer.readableBytes() > 0) { this.protocolSupported.add(channelBuffer.readByte()); } }
ProtocolSupportedTlv extends TlvHeader implements IsisTlv { @Override public void readFrom(ChannelBuffer channelBuffer) { while (channelBuffer.readableBytes() > 0) { this.protocolSupported.add(channelBuffer.readByte()); } } }
ProtocolSupportedTlv extends TlvHeader implements IsisTlv { @Override public void readFrom(ChannelBuffer channelBuffer) { while (channelBuffer.readableBytes() > 0) { this.protocolSupported.add(channelBuffer.readByte()); } } ProtocolSupportedTlv(TlvHeader tlvHeader); }
ProtocolSupportedTlv extends TlvHeader implements IsisTlv { @Override public void readFrom(ChannelBuffer channelBuffer) { while (channelBuffer.readableBytes() > 0) { this.protocolSupported.add(channelBuffer.readByte()); } } ProtocolSupportedTlv(TlvHeader tlvHeader); void addProtocolSupported(byte protocolValue); List<Byte> protocolSupported(); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); @Override String toString(); }
ProtocolSupportedTlv extends TlvHeader implements IsisTlv { @Override public void readFrom(ChannelBuffer channelBuffer) { while (channelBuffer.readableBytes() > 0) { this.protocolSupported.add(channelBuffer.readByte()); } } ProtocolSupportedTlv(TlvHeader tlvHeader); void addProtocolSupported(byte protocolValue); List<Byte> protocolSupported(); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); @Override String toString();  }