@Test public void testAsBytes() throws Exception { channelBuffer = ChannelBuffers.copiedBuffer(tlv); adjacencyStateTlv.readFrom(channelBuffer); result3 = adjacencyStateTlv.asBytes(); assertThat(result3, is(notNullValue())); }
@Override public byte[] asBytes() { byte[] bytes = null; byte[] tlvHeader = tlvHeaderAsByteArray(); byte[] tlvBody = tlvBodyAsBytes(); tlvHeader[1] = (byte) tlvBody.length; bytes = Bytes.concat(tlvHeader, tlvBody); return bytes; }
AdjacencyStateTlv extends TlvHeader implements IsisTlv { @Override public byte[] asBytes() { byte[] bytes = null; byte[] tlvHeader = tlvHeaderAsByteArray(); byte[] tlvBody = tlvBodyAsBytes(); tlvHeader[1] = (byte) tlvBody.length; bytes = Bytes.concat(tlvHeader, tlvBody); return bytes; } }
AdjacencyStateTlv extends TlvHeader implements IsisTlv { @Override public byte[] asBytes() { byte[] bytes = null; byte[] tlvHeader = tlvHeaderAsByteArray(); byte[] tlvBody = tlvBodyAsBytes(); tlvHeader[1] = (byte) tlvBody.length; bytes = Bytes.concat(tlvHeader, tlvBody); return bytes; } AdjacencyStateTlv(TlvHeader tlvHeader); }
AdjacencyStateTlv extends TlvHeader implements IsisTlv { @Override public byte[] asBytes() { byte[] bytes = null; byte[] tlvHeader = tlvHeaderAsByteArray(); byte[] tlvBody = tlvBodyAsBytes(); tlvHeader[1] = (byte) tlvBody.length; bytes = Bytes.concat(tlvHeader, tlvBody); return bytes; } AdjacencyStateTlv(TlvHeader tlvHeader); int localCircuitId(); void setLocalCircuitId(int localCircuitId); String neighborSystemId(); void setNeighborSystemId(String neighborSystemId); int neighborLocalCircuitId(); void setNeighborLocalCircuitId(int neighborLocalCircuitId); byte adjacencyType(); void setAdjacencyType(byte adjacencyType); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); @Override String toString(); }
AdjacencyStateTlv extends TlvHeader implements IsisTlv { @Override public byte[] asBytes() { byte[] bytes = null; byte[] tlvHeader = tlvHeaderAsByteArray(); byte[] tlvBody = tlvBodyAsBytes(); tlvHeader[1] = (byte) tlvBody.length; bytes = Bytes.concat(tlvHeader, tlvBody); return bytes; } AdjacencyStateTlv(TlvHeader tlvHeader); int localCircuitId(); void setLocalCircuitId(int localCircuitId); String neighborSystemId(); void setNeighborSystemId(String neighborSystemId); int neighborLocalCircuitId(); void setNeighborLocalCircuitId(int neighborLocalCircuitId); byte adjacencyType(); void setAdjacencyType(byte adjacencyType); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); @Override String toString();  }