Migrate to MD-SAL APIs
[bgpcep.git] / bgp / rib-impl / src / test / java / org / opendaylight / protocol / bgp / rib / impl / ParserToSalTest.java
index 5a357fc353cf9a527f4ef30d14de8504758a95d3..b3708bbf1a02fef9ecaadcd10f0f7c6e123d72b7 100755 (executable)
@@ -25,13 +25,13 @@ import java.net.InetSocketAddress;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.List;
+import java.util.concurrent.ExecutionException;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Ignore;
 import org.junit.Test;
 import org.mockito.Mock;
 import org.mockito.Mockito;
-import org.opendaylight.controller.md.sal.common.api.data.ReadFailedException;
 import org.opendaylight.mdsal.binding.generator.impl.GeneratedClassLoadingStrategy;
 import org.opendaylight.protocol.bgp.inet.RIBActivator;
 import org.opendaylight.protocol.bgp.mode.impl.base.BasePathSelectionModeFactory;
@@ -109,7 +109,7 @@ public class ParserToSalTest extends DefaultRibPoliciesMockTest {
     }
 
     @Test
-    public void testWithLinkstate() throws ReadFailedException {
+    public void testWithLinkstate() throws InterruptedException, ExecutionException {
         final List<BgpTableType> tables = ImmutableList.of(new BgpTableTypeImpl(LinkstateAddressFamily.class,
                 LinkstateSubsequentAddressFamily.class));
 
@@ -128,7 +128,7 @@ public class ParserToSalTest extends DefaultRibPoliciesMockTest {
     }
 
     @Test
-    public void testWithoutLinkstate() throws ReadFailedException {
+    public void testWithoutLinkstate() throws InterruptedException, ExecutionException {
         final List<BgpTableType> tables = ImmutableList.of(new BgpTableTypeImpl(Ipv4AddressFamily.class,
                 UnicastSubsequentAddressFamily.class));
         final RIBImpl rib = new RIBImpl(this.tableRegistry, new RibId(TEST_RIB_ID), AS_NUMBER, BGP_ID, this.ext1,
@@ -155,7 +155,8 @@ public class ParserToSalTest extends DefaultRibPoliciesMockTest {
         });
     }
 
-    private void assertTablesExists(final List<BgpTableType> expectedTables) throws ReadFailedException {
+    private void assertTablesExists(final List<BgpTableType> expectedTables) throws InterruptedException,
+            ExecutionException {
         readDataOperational(getDataBroker(), BGP_IID, bgpRib -> {
             final List<Tables> tables = bgpRib.getRib().get(0).getLocRib().getTables();
             assertFalse(tables.isEmpty());