Search in sources :

Example 1 with RIBActivator

use of org.opendaylight.protocol.bgp.linkstate.impl.RIBActivator 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();
}
Also used : SimpleRIBExtensionProviderContext(org.opendaylight.protocol.bgp.rib.spi.SimpleRIBExtensionProviderContext) RIBExtensionProviderContext(org.opendaylight.protocol.bgp.rib.spi.RIBExtensionProviderContext) SimpleRIBExtensionProviderContext(org.opendaylight.protocol.bgp.rib.spi.SimpleRIBExtensionProviderContext) RIBActivator(org.opendaylight.protocol.bgp.linkstate.impl.RIBActivator) LinkstateSubsequentAddressFamily(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev171207.LinkstateSubsequentAddressFamily) LinkstateAddressFamily(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev171207.LinkstateAddressFamily) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 RIBActivator (org.opendaylight.protocol.bgp.linkstate.impl.RIBActivator)1 RIBExtensionProviderContext (org.opendaylight.protocol.bgp.rib.spi.RIBExtensionProviderContext)1 SimpleRIBExtensionProviderContext (org.opendaylight.protocol.bgp.rib.spi.SimpleRIBExtensionProviderContext)1 LinkstateAddressFamily (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev171207.LinkstateAddressFamily)1 LinkstateSubsequentAddressFamily (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev171207.LinkstateSubsequentAddressFamily)1