- ServiceDeleteOutput sdo = new ServiceDeleteOutputBuilder()
- .setConfigurationResponseCommon(crc)
- .build();
- when(rendererServiceOperations.serviceDelete(any(), any()))
- .thenReturn(Futures.immediateFuture(sdo));
-
- OrgOpenroadmServiceService serviceHandler = new ServicehandlerImpl(rpcProviderService, pathComputationService,
- rendererServiceOperations, notificationPublishService, pceListenerImpl, rendererListenerImpl,
- networkModelListenerImpl, serviceDataStoreOperations, catalogDataStoreOperations);
-
- TapiConnectivityImpl tapiConnectivity = new TapiConnectivityImpl(serviceHandler, tapiContext, connectivityUtils,
- tapipceNotificationHandler, tapirendererNotificationHandler, networkTransactionService);
+ when(rpcService.getRpc(any())).thenReturn(serviceDelete);
+ doReturn(RpcResultBuilder
+ .success(new org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev230526
+ .ServiceDeleteOutputBuilder()
+ .setConfigurationResponseCommon(crc)
+ .build())
+ .buildFuture())
+ .when(serviceDelete).invoke(any());