Provide Add Path support for all AFI/SAFI
[bgpcep.git] / bgp / path-selection-mode / src / test / java / org / opendaylight / protocol / bgp / mode / impl / add / all / paths / PathSelectionModeFactoryTest.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.protocol.bgp.mode.impl.add.all.paths;
9
10 import org.junit.Assert;
11 import org.junit.Test;
12 import org.opendaylight.protocol.bgp.mode.api.PathSelectionMode;
13 import org.opendaylight.protocol.bgp.mode.impl.BGPPeerTrackerMock;
14
15 public class PathSelectionModeFactoryTest extends BGPPeerTrackerMock {
16     @Test
17     public void testCreateBestPathSelectionStrategy() {
18         final PathSelectionMode psm = new AllPathSelection(this.peerTracker);
19         Assert.assertTrue(psm.createRouteEntry(true) instanceof ComplexRouteEntry);
20     }
21 }