@Test public void testToString() throws Exception { assertThat(helloPacket.toString(), is(notNullValue())); }
@Override public String toString() { return MoreObjects.toStringHelper(getClass()) .omitNullValues() .add("networkMask", networkMask) .add("options", options) .add("helloInterval", helloInterval) .add("routerPriority", routerPriority) .add("routerDeadInterval", routerDeadInterval) .add("bdr", bdr) .add("dr", dr) .toString(); }
HelloPacket extends OspfPacketHeader { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .omitNullValues() .add("networkMask", networkMask) .add("options", options) .add("helloInterval", helloInterval) .add("routerPriority", routerPriority) .add("routerDeadInterval", routerDeadInterval) .add("bdr", bdr) .add("dr", dr) .toString(); } }
HelloPacket extends OspfPacketHeader { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .omitNullValues() .add("networkMask", networkMask) .add("options", options) .add("helloInterval", helloInterval) .add("routerPriority", routerPriority) .add("routerDeadInterval", routerDeadInterval) .add("bdr", bdr) .add("dr", dr) .toString(); } HelloPacket();  HelloPacket(OspfPacketHeader ospfHeader); }
HelloPacket extends OspfPacketHeader { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .omitNullValues() .add("networkMask", networkMask) .add("options", options) .add("helloInterval", helloInterval) .add("routerPriority", routerPriority) .add("routerDeadInterval", routerDeadInterval) .add("bdr", bdr) .add("dr", dr) .toString(); } HelloPacket();  HelloPacket(OspfPacketHeader ospfHeader); Ip4Address networkMask(); void setNetworkMask(Ip4Address networkMask); Ip4Address bdr(); void setBdr(Ip4Address bdr); Ip4Address dr(); void setDr(Ip4Address dr); void addNeighbor(Ip4Address neighborID); boolean containsNeighbour(Ip4Address neighborID); int options(); void setOptions(int options); int routerPriority(); void setRouterPriority(int routerPriority); int helloInterval(); void setHelloInterval(int helloInterval); int routerDeadInterval(); void setRouterDeadInterval(int routerDeadInterval); @Override OspfPacketType ospfMessageType(); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); byte[] getHelloHeaderAsByteArray(); byte[] getHelloBodyAsByteArray(); @Override String toString(); }
HelloPacket extends OspfPacketHeader { @Override public String toString() { return MoreObjects.toStringHelper(getClass()) .omitNullValues() .add("networkMask", networkMask) .add("options", options) .add("helloInterval", helloInterval) .add("routerPriority", routerPriority) .add("routerDeadInterval", routerDeadInterval) .add("bdr", bdr) .add("dr", dr) .toString(); } HelloPacket();  HelloPacket(OspfPacketHeader ospfHeader); Ip4Address networkMask(); void setNetworkMask(Ip4Address networkMask); Ip4Address bdr(); void setBdr(Ip4Address bdr); Ip4Address dr(); void setDr(Ip4Address dr); void addNeighbor(Ip4Address neighborID); boolean containsNeighbour(Ip4Address neighborID); int options(); void setOptions(int options); int routerPriority(); void setRouterPriority(int routerPriority); int helloInterval(); void setHelloInterval(int helloInterval); int routerDeadInterval(); void setRouterDeadInterval(int routerDeadInterval); @Override OspfPacketType ospfMessageType(); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); byte[] getHelloHeaderAsByteArray(); byte[] getHelloBodyAsByteArray(); @Override String toString();  }