X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=pce%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fpce%2Fimpl%2FPceServiceRPCImplTest.java;h=a99fd91d8e864d7d0600da15206397a800a1bd66;hb=2a29f9ab006d8806f77b1a1e073b478e5351cc5f;hp=06251d40cbd4c7dc8e81a9974346dd2e39468aaf;hpb=7be521daacc5ce221474b434ab34c27eb37ec158;p=transportpce.git diff --git a/pce/src/test/java/org/opendaylight/transportpce/pce/impl/PceServiceRPCImplTest.java b/pce/src/test/java/org/opendaylight/transportpce/pce/impl/PceServiceRPCImplTest.java index 06251d40c..a99fd91d8 100644 --- a/pce/src/test/java/org/opendaylight/transportpce/pce/impl/PceServiceRPCImplTest.java +++ b/pce/src/test/java/org/opendaylight/transportpce/pce/impl/PceServiceRPCImplTest.java @@ -12,9 +12,10 @@ import static org.junit.Assert.assertNotNull; import java.util.concurrent.ExecutionException; import org.junit.Before; -import org.junit.Ignore; import org.junit.Test; +import org.mockito.Mock; import org.opendaylight.mdsal.binding.api.NotificationPublishService; +import org.opendaylight.transportpce.common.mapping.PortMapping; import org.opendaylight.transportpce.common.network.NetworkTransactionImpl; import org.opendaylight.transportpce.common.network.RequestProcessor; import org.opendaylight.transportpce.pce.service.PathComputationService; @@ -24,16 +25,17 @@ import org.opendaylight.transportpce.pce.utils.PceTestData; import org.opendaylight.transportpce.pce.utils.PceTestUtils; import org.opendaylight.transportpce.pce.utils.TransactionUtils; import org.opendaylight.transportpce.test.AbstractTest; -import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev200128.CancelResourceReserveInputBuilder; +import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev210701.CancelResourceReserveInputBuilder; -@Ignore public class PceServiceRPCImplTest extends AbstractTest { private PathComputationService pathComputationService; private NotificationPublishService notificationPublishService; private NetworkTransactionImpl networkTransaction; private PceServiceRPCImpl pceServiceRPC; + @Mock + private PortMapping portMapping; @Before public void setUp() throws ExecutionException, InterruptedException { @@ -42,7 +44,7 @@ public class PceServiceRPCImplTest extends AbstractTest { notificationPublishService = new NotificationPublishServiceMock(); networkTransaction = new NetworkTransactionImpl(new RequestProcessor(this.getDataBroker())); pathComputationService = new PathComputationServiceImpl(networkTransaction, notificationPublishService, - null); + null, portMapping); pceServiceRPC = new PceServiceRPCImpl(pathComputationService); }