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;
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 {
notificationPublishService = new NotificationPublishServiceMock();
networkTransaction = new NetworkTransactionImpl(new RequestProcessor(this.getDataBroker()));
pathComputationService = new PathComputationServiceImpl(networkTransaction, notificationPublishService,
- null);
+ null, portMapping);
pceServiceRPC = new PceServiceRPCImpl(pathComputationService);
}