use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.BgpAggregator in project bgpcep by opendaylight.
the class ComplementaryTest method testBGPAggregatorImpl.
@Test
public void testBGPAggregatorImpl() {
final BgpAggregator ipv4 = new AggregatorBuilder().setAsNumber(new AsNumber(Uint32.valueOf(5524))).setNetworkAddress(new Ipv4AddressNoZone("124.55.42.1")).build();
final BgpAggregator ipv4i = new AggregatorBuilder().setAsNumber(new AsNumber(Uint32.valueOf(5525))).setNetworkAddress(new Ipv4AddressNoZone("124.55.42.1")).build();
assertNotSame(ipv4.hashCode(), ipv4i.hashCode());
assertNotSame(ipv4.getAsNumber(), ipv4i.getAsNumber());
assertEquals(ipv4.getNetworkAddress(), ipv4i.getNetworkAddress());
}
Aggregations