package org.opendaylight.transportpce.pce.impl;
-import static org.mockito.ArgumentMatchers.anyObject;
import static org.mockito.ArgumentMatchers.eq;
import org.eclipse.jdt.annotation.NonNull;
import org.junit.Before;
-import org.junit.Ignore;
import org.junit.Test;
import org.mockito.Mockito;
import org.opendaylight.mdsal.binding.api.NotificationPublishService;
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;
-@Ignore
public class PceProviderTest extends AbstractTest {
private RpcProviderService rpcService;
requestProcessor = Mockito.mock(RequestProcessor.class);
networkTransaction = new NetworkTransactionImpl(requestProcessor);
pathComputationService = new PathComputationServiceImpl(networkTransaction, notificationPublishService,
- null);
+ null, null);
pceProvider = new PceProvider(rpcService, pathComputationService);
}
}
};
-
-
Mockito
.when(rpcService
- .registerRpcImplementation(eq(TransportpcePceService.class), anyObject()))
+ .registerRpcImplementation(eq(TransportpcePceService.class), Mockito.any()))
.thenReturn(rpcRegistration);
pceProvider.init();
pceProvider.close();