@Test public void testSetRouterId() throws Exception { ospfPacketHeader.setRouterId(Ip4Address.valueOf("1.1.1.1")); result1 = ospfPacketHeader.routerId(); assertThat(result1, is(notNullValue())); assertThat(result1, is(Ip4Address.valueOf("1.1.1.1"))); }
public void setRouterId(Ip4Address routerId) { this.routerId = routerId; }
OspfPacketHeader implements OspfMessage { public void setRouterId(Ip4Address routerId) { this.routerId = routerId; } }
OspfPacketHeader implements OspfMessage { public void setRouterId(Ip4Address routerId) { this.routerId = routerId; }  }
OspfPacketHeader implements OspfMessage { public void setRouterId(Ip4Address routerId) { this.routerId = routerId; }  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 { public void setRouterId(Ip4Address routerId) { this.routerId = routerId; }  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();  }