use of org.opendaylight.protocol.bgp.linkstate.impl.TableTypeActivator in project bgpcep by opendaylight.
the class TableTypeActivatorTest method testActivator.
@Test
public void testActivator() {
final TableTypeActivator tableTypeActivator = new TableTypeActivator();
final SimpleBGPTableTypeRegistryProvider registry = new SimpleBGPTableTypeRegistryProvider();
tableTypeActivator.startBGPTableTypeRegistryProvider(registry);
final Optional<Class<? extends AfiSafiType>> afiSafiType = registry.getAfiSafiType(LINKSTATE);
Assert.assertEquals(LINKSTATE.class, afiSafiType.get());
final Optional<BgpTableType> tableType = registry.getTableType(LINKSTATE.class);
Assert.assertEquals(LINKSTATE, tableType.get());
tableTypeActivator.stopBGPTableTypeRegistryProvider();
tableTypeActivator.close();
}
Aggregations