use of org.opendaylight.protocol.bgp.rib.spi.SimpleRIBExtensionProviderContext in project bgpcep by opendaylight.
the class ActivatorTest method testRIBActivator.
@Test
public void testRIBActivator() {
final RIBActivator ribAct = new RIBActivator();
final RIBExtensionProviderContext context = new SimpleRIBExtensionProviderContext();
assertNull(context.getRIBSupport(LinkstateAddressFamily.class, LinkstateSubsequentAddressFamily.class));
ribAct.startRIBExtensionProvider(context);
assertNotNull(context.getRIBSupport(LinkstateAddressFamily.class, LinkstateSubsequentAddressFamily.class));
ribAct.close();
}
Aggregations