@Test public void testPopulateHeader() throws Exception { opaqueLsaHeader1 = new OpaqueLsaHeader(); opaqueLsaHeader1.setLsPacketLen(10); opaqueLsaHeader1.setAdvertisingRouter(Ip4Address.valueOf("1.1.1.1")); opaqueLsaHeader1.setOptions(2); opaqueLsaHeader1.setAge(20); opaqueLsaHeader1.setLsType(3); opaqueLsaHeader1.setOpaqueId(1); opaqueLsaHeader1.setOpaqueType(3); opaqueLsaHeader1.setLsCheckSum(1234); opaqueLsaHeader1.setLsSequenceNo(456789); opaqueLsaHeader1.populateHeader(opaqueLsaHeader1); assertThat(opaqueLsaHeader1, is(notNullValue())); }
public void populateHeader(OpaqueLsaHeader lsaHeader) { this.setAge(lsaHeader.age()); this.setOptions(lsaHeader.options()); this.setLsType(lsaHeader.lsType()); this.setLinkStateId(lsaHeader.linkStateId()); this.setAdvertisingRouter(lsaHeader.advertisingRouter()); this.setLsSequenceNo(lsaHeader.lsSequenceNo()); this.setLsCheckSum(lsaHeader.lsCheckSum()); this.setLsPacketLen(lsaHeader.lsPacketLen()); this.setOpaqueId(lsaHeader.opaqueId()); this.setOpaqueType(lsaHeader.opaqueType()); }
OpaqueLsaHeader extends LsaHeader { public void populateHeader(OpaqueLsaHeader lsaHeader) { this.setAge(lsaHeader.age()); this.setOptions(lsaHeader.options()); this.setLsType(lsaHeader.lsType()); this.setLinkStateId(lsaHeader.linkStateId()); this.setAdvertisingRouter(lsaHeader.advertisingRouter()); this.setLsSequenceNo(lsaHeader.lsSequenceNo()); this.setLsCheckSum(lsaHeader.lsCheckSum()); this.setLsPacketLen(lsaHeader.lsPacketLen()); this.setOpaqueId(lsaHeader.opaqueId()); this.setOpaqueType(lsaHeader.opaqueType()); } }
OpaqueLsaHeader extends LsaHeader { public void populateHeader(OpaqueLsaHeader lsaHeader) { this.setAge(lsaHeader.age()); this.setOptions(lsaHeader.options()); this.setLsType(lsaHeader.lsType()); this.setLinkStateId(lsaHeader.linkStateId()); this.setAdvertisingRouter(lsaHeader.advertisingRouter()); this.setLsSequenceNo(lsaHeader.lsSequenceNo()); this.setLsCheckSum(lsaHeader.lsCheckSum()); this.setLsPacketLen(lsaHeader.lsPacketLen()); this.setOpaqueId(lsaHeader.opaqueId()); this.setOpaqueType(lsaHeader.opaqueType()); }  }
OpaqueLsaHeader extends LsaHeader { public void populateHeader(OpaqueLsaHeader lsaHeader) { this.setAge(lsaHeader.age()); this.setOptions(lsaHeader.options()); this.setLsType(lsaHeader.lsType()); this.setLinkStateId(lsaHeader.linkStateId()); this.setAdvertisingRouter(lsaHeader.advertisingRouter()); this.setLsSequenceNo(lsaHeader.lsSequenceNo()); this.setLsCheckSum(lsaHeader.lsCheckSum()); this.setLsPacketLen(lsaHeader.lsPacketLen()); this.setOpaqueId(lsaHeader.opaqueId()); this.setOpaqueType(lsaHeader.opaqueType()); }  void populateHeader(OpaqueLsaHeader lsaHeader); int opaqueId(); void setOpaqueId(int opaqueId); int opaqueType(); void setOpaqueType(int opaqueType); byte[] getOpaqueLsaHeaderAsByteArray(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
OpaqueLsaHeader extends LsaHeader { public void populateHeader(OpaqueLsaHeader lsaHeader) { this.setAge(lsaHeader.age()); this.setOptions(lsaHeader.options()); this.setLsType(lsaHeader.lsType()); this.setLinkStateId(lsaHeader.linkStateId()); this.setAdvertisingRouter(lsaHeader.advertisingRouter()); this.setLsSequenceNo(lsaHeader.lsSequenceNo()); this.setLsCheckSum(lsaHeader.lsCheckSum()); this.setLsPacketLen(lsaHeader.lsPacketLen()); this.setOpaqueId(lsaHeader.opaqueId()); this.setOpaqueType(lsaHeader.opaqueType()); }  void populateHeader(OpaqueLsaHeader lsaHeader); int opaqueId(); void setOpaqueId(int opaqueId); int opaqueType(); void setOpaqueType(int opaqueType); byte[] getOpaqueLsaHeaderAsByteArray(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }