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