@Test public void testToString() throws Exception { assertThat(ospfPacketHeader.toString(), is(notNullValue())); }
@Override public String toString() { return MoreObjects.toStringHelper(getClass()) .omitNullValues() .add("ospfVersion", ospfVer) .add("ospfType", ospfType) .add("ospfPackLength", ospfPackLength) .add("routerId", routerId) .add("areaId", areaId) .add("checkSum", checkSum) .add("auType", auType) .add("authentication", authentication) .add("destinationIP", destinationIp) .toString(); }
OspfPacketHeader implements OspfMessage { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .omitNullValues() .add("ospfVersion", ospfVer) .add("ospfType", ospfType) .add("ospfPackLength", ospfPackLength) .add("routerId", routerId) .add("areaId", areaId) .add("checkSum", checkSum) .add("auType", auType) .add("authentication", authentication) .add("destinationIP", destinationIp) .toString(); } }
OspfPacketHeader implements OspfMessage { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .omitNullValues() .add("ospfVersion", ospfVer) .add("ospfType", ospfType) .add("ospfPackLength", ospfPackLength) .add("routerId", routerId) .add("areaId", areaId) .add("checkSum", checkSum) .add("auType", auType) .add("authentication", authentication) .add("destinationIP", destinationIp) .toString(); }  }
OspfPacketHeader implements OspfMessage { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .omitNullValues() .add("ospfVersion", ospfVer) .add("ospfType", ospfType) .add("ospfPackLength", ospfPackLength) .add("routerId", routerId) .add("areaId", areaId) .add("checkSum", checkSum) .add("auType", auType) .add("authentication", authentication) .add("destinationIP", destinationIp) .toString(); }  Ip4Address sourceIp(); void setSourceIp(Ip4Address sourceIp); @Override OspfPacketType ospfMessageType(); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); int ospfVersion(); void setOspfVer(int ospfVer); int ospfType(); void setOspftype(int ospfType); int ospfPacLength(); void setOspfPacLength(int ospfPacLength); Ip4Address routerId(); void setRouterId(Ip4Address routerId); Ip4Address areaId(); void setAreaId(Ip4Address areaId); int checksum(); void setChecksum(int checkSum); int authType(); void setAuthType(int auType); int authentication(); void setAuthentication(int authentication); Ip4Address destinationIp(); void setDestinationIp(Ip4Address destinationIp); int interfaceIndex(); void setInterfaceIndex(int interfaceIndex); void populateHeader(OspfPacketHeader ospfPacketHeader); @Override String toString(); }
OspfPacketHeader implements OspfMessage { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .omitNullValues() .add("ospfVersion", ospfVer) .add("ospfType", ospfType) .add("ospfPackLength", ospfPackLength) .add("routerId", routerId) .add("areaId", areaId) .add("checkSum", checkSum) .add("auType", auType) .add("authentication", authentication) .add("destinationIP", destinationIp) .toString(); }  Ip4Address sourceIp(); void setSourceIp(Ip4Address sourceIp); @Override OspfPacketType ospfMessageType(); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); int ospfVersion(); void setOspfVer(int ospfVer); int ospfType(); void setOspftype(int ospfType); int ospfPacLength(); void setOspfPacLength(int ospfPacLength); Ip4Address routerId(); void setRouterId(Ip4Address routerId); Ip4Address areaId(); void setAreaId(Ip4Address areaId); int checksum(); void setChecksum(int checkSum); int authType(); void setAuthType(int auType); int authentication(); void setAuthentication(int authentication); Ip4Address destinationIp(); void setDestinationIp(Ip4Address destinationIp); int interfaceIndex(); void setInterfaceIndex(int interfaceIndex); void populateHeader(OspfPacketHeader ospfPacketHeader); @Override String toString();  }