@Test public void testAdjacencyState() throws Exception { channelBuffer = ChannelBuffers.copiedBuffer(helloL1L2); helloPdu.readFrom(channelBuffer); resultAdjState = helloPdu.adjacencyState(); assertThat(resultAdjState, is(nullValue())); }
public IsisInterfaceState adjacencyState() { IsisInterfaceState interfaceState = null; for (IsisTlv tlv : tlvs()) { if (tlv instanceof AdjacencyStateTlv) { interfaceState = IsisInterfaceState.get(((AdjacencyStateTlv) tlv).adjacencyType()); break; } } return interfaceState; }
HelloPdu extends IsisHeader { public IsisInterfaceState adjacencyState() { IsisInterfaceState interfaceState = null; for (IsisTlv tlv : tlvs()) { if (tlv instanceof AdjacencyStateTlv) { interfaceState = IsisInterfaceState.get(((AdjacencyStateTlv) tlv).adjacencyType()); break; } } return interfaceState; } }
HelloPdu extends IsisHeader { public IsisInterfaceState adjacencyState() { IsisInterfaceState interfaceState = null; for (IsisTlv tlv : tlvs()) { if (tlv instanceof AdjacencyStateTlv) { interfaceState = IsisInterfaceState.get(((AdjacencyStateTlv) tlv).adjacencyType()); break; } } return interfaceState; }  }
HelloPdu extends IsisHeader { public IsisInterfaceState adjacencyState() { IsisInterfaceState interfaceState = null; for (IsisTlv tlv : tlvs()) { if (tlv instanceof AdjacencyStateTlv) { interfaceState = IsisInterfaceState.get(((AdjacencyStateTlv) tlv).adjacencyType()); break; } } return interfaceState; }  void addTlv(IsisTlv isisTlv); List<IsisTlv> tlvs(); List<String> areaAddress(); List<Ip4Address> interfaceIpAddresses(); List<MacAddress> neighborList(); IsisInterfaceState adjacencyState(); String sourceId(); void setSourceId(String sourceId); int pduLength(); void setPduLength(int pduLength); int holdingTime(); void setHoldingTime(int holdingTime); byte circuitType(); void setCircuitType(byte circuitType); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
HelloPdu extends IsisHeader { public IsisInterfaceState adjacencyState() { IsisInterfaceState interfaceState = null; for (IsisTlv tlv : tlvs()) { if (tlv instanceof AdjacencyStateTlv) { interfaceState = IsisInterfaceState.get(((AdjacencyStateTlv) tlv).adjacencyType()); break; } } return interfaceState; }  void addTlv(IsisTlv isisTlv); List<IsisTlv> tlvs(); List<String> areaAddress(); List<Ip4Address> interfaceIpAddresses(); List<MacAddress> neighborList(); IsisInterfaceState adjacencyState(); String sourceId(); void setSourceId(String sourceId); int pduLength(); void setPduLength(int pduLength); int holdingTime(); void setHoldingTime(int holdingTime); byte circuitType(); void setCircuitType(byte circuitType); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }