use of org.opendaylight.protocol.bgp.mode.api.PathSelectionMode in project bgpcep by opendaylight.
the class PathSelectionModeFactoryTest method testCreateBestPathSelectionStrategy.
@Test
public void testCreateBestPathSelectionStrategy() throws Exception {
final PathSelectionMode psm = new AllPathSelection(this.peerTracker);
Assert.assertTrue(psm.createRouteEntry(true) instanceof ComplexRouteEntry);
Assert.assertTrue(psm.createRouteEntry(false) instanceof SimpleRouteEntry);
}
use of org.opendaylight.protocol.bgp.mode.api.PathSelectionMode in project bgpcep by opendaylight.
the class PathSelectionModeFactoryTest method testCreateBestPathSelectionStrategy.
@Test
public void testCreateBestPathSelectionStrategy() throws Exception {
final PathSelectionMode psm = new AddPathBestNPathSelection(2L, this.peerTracker);
Assert.assertTrue(psm.createRouteEntry(true) instanceof ComplexRouteEntry);
Assert.assertTrue(psm.createRouteEntry(false) instanceof SimpleRouteEntry);
}
Aggregations