X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=pce%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fpce%2Fimpl%2FPceProviderTest.java;h=02665c1ebe4554b4228e7f8d27644adfe6750eb6;hb=2a29f9ab006d8806f77b1a1e073b478e5351cc5f;hp=b04a75adf70936e6f3b53bba9648542a325e61db;hpb=de9c823434160ba713e598018cd1cfc09d8cbb08;p=transportpce.git diff --git a/pce/src/test/java/org/opendaylight/transportpce/pce/impl/PceProviderTest.java b/pce/src/test/java/org/opendaylight/transportpce/pce/impl/PceProviderTest.java index b04a75adf..02665c1eb 100644 --- a/pce/src/test/java/org/opendaylight/transportpce/pce/impl/PceProviderTest.java +++ b/pce/src/test/java/org/opendaylight/transportpce/pce/impl/PceProviderTest.java @@ -8,7 +8,6 @@ package org.opendaylight.transportpce.pce.impl; -import static org.mockito.ArgumentMatchers.anyObject; import static org.mockito.ArgumentMatchers.eq; import org.eclipse.jdt.annotation.NonNull; @@ -23,10 +22,9 @@ import org.opendaylight.transportpce.pce.service.PathComputationService; import org.opendaylight.transportpce.pce.service.PathComputationServiceImpl; import org.opendaylight.transportpce.pce.utils.NotificationPublishServiceMock; import org.opendaylight.transportpce.test.AbstractTest; -import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev200128.TransportpcePceService; +import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.pce.rev210701.TransportpcePceService; import org.opendaylight.yangtools.concepts.ObjectRegistration; - public class PceProviderTest extends AbstractTest { private RpcProviderService rpcService; @@ -43,7 +41,8 @@ public class PceProviderTest extends AbstractTest { notificationPublishService = new NotificationPublishServiceMock(); requestProcessor = Mockito.mock(RequestProcessor.class); networkTransaction = new NetworkTransactionImpl(requestProcessor); - pathComputationService = new PathComputationServiceImpl(networkTransaction, notificationPublishService); + pathComputationService = new PathComputationServiceImpl(networkTransaction, notificationPublishService, + null, null); pceProvider = new PceProvider(rpcService, pathComputationService); } @@ -61,11 +60,9 @@ public class PceProviderTest extends AbstractTest { } }; - - Mockito .when(rpcService - .registerRpcImplementation(eq(TransportpcePceService.class), anyObject())) + .registerRpcImplementation(eq(TransportpcePceService.class), Mockito.any())) .thenReturn(rpcRegistration); pceProvider.init(); pceProvider.close();