reintroduce SP 1.6 in SH
[transportpce.git] / servicehandler / src / test / java / org / opendaylight / transportpce / servicehandler / listeners / PceListenerImplTest.java
index f2850990e108ce1e4f38e59877a802eaa3fcba79..196fc2edc7c5824be483a9fce91c72fa1bf90274 100644 (file)
@@ -126,6 +126,17 @@ public class PceListenerImplTest extends AbstractTest {
         verify(this.rendererServiceOperationsMock).serviceImplementation(any(ServiceImplementationRequestInput.class));
     }
 
+    @Test
+    public void onServicePathRpcResultPCRSuccessFeasabilityCheck() {
+        InjectField.inject(this.pceListenerImplMock, "serviceReconfigure", false);
+        InjectField.inject(this.pceListenerImplMock, "serviceFeasiblity", true);
+        ServicePathRpcResult notification = ServiceDataUtils.buildServicePathRpcResult(
+                ServicePathNotificationTypes.PathComputationRequest, "service 1", RpcStatusEx.Successful, "", true);
+        this.pceListenerImplMock.onServicePathRpcResult(notification);
+        verifyZeroInteractions(this.serviceDataStoreOperationsMock);
+        verifyZeroInteractions(this.rendererServiceOperationsMock);
+    }
+
     @Test
     public void onServicePathRpcResultCRRSuccessWithNoReconfigure() {
         ServicePathRpcResult notification = ServiceDataUtils.buildServicePathRpcResult(