AT&T 1712 and 1802 release code
[so.git] / bpmn / MSOInfrastructureBPMN / src / test / groovy / org / openecomp / mso / bpmn / infrastructure / scripts / UpdateNetworkInstanceTest.groovy
index e987d59..4c77a04 100644 (file)
@@ -6,7 +6,7 @@ import org.camunda.bpm.engine.ProcessEngineServices
 import org.camunda.bpm.engine.RepositoryService\r
 import org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity\r
 import org.camunda.bpm.engine.repository.ProcessDefinition\r
-import org.camunda.bpm.engine.runtime.Execution\r
+import org.camunda.bpm.engine.delegate.DelegateExecution\r
 import org.junit.Before\r
 import org.junit.Ignore\r
 import org.junit.Rule\r
@@ -125,7 +125,7 @@ String jsonIncomingRequest =
 \r
                }\r
 \r
-               public void initializeVariables(Execution mockExecution) {\r
+               public void initializeVariables(DelegateExecution mockExecution) {\r
 \r
                        verify(mockExecution).setVariable(Prefix + "source", "")\r
                        verify(mockExecution).setVariable(Prefix + "Success", false)\r
@@ -148,7 +148,7 @@ String jsonIncomingRequest =
                        when(mockExecution.getVariable("URN_mso_adapters_db_auth")).thenReturn("757A94191D685FD2092AC1490730A4FC")\r
                        when(mockExecution.getVariable("URN_mso_msoKey")).thenReturn("07a7159d3bf51a0e53be7a8f89699be7")\r
                        \r
-                       // preProcessRequest(Execution execution)\r
+                       // preProcessRequest(DelegateExecution execution)\r
                        UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()\r
                        UpdateNetworkInstance.preProcessRequest(mockExecution)\r
 \r
@@ -171,7 +171,7 @@ String jsonIncomingRequest =
                        // Initialize prerequisite variables\r
                        when(mockExecution.getVariable("isDebugLogEnabled")).thenReturn("true")\r
 \r
-                       // preProcessRequest(Execution execution)\r
+                       // preProcessRequest(DelegateExecution execution)\r
                        UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()\r
                        UpdateNetworkInstance.getNetworkModelInfo(mockExecution)\r
 \r
@@ -192,7 +192,7 @@ String jsonIncomingRequest =
                        when(mockExecution.getVariable("mso-request-id")).thenReturn("e8ebf6a0-f8ea-4dc0-8b99-fe98a87722d6")\r
                        when(mockExecution.getVariable("serviceInstanceId")).thenReturn("f70e927b-6087-4974-9ef8-c5e4d5847ca4")\r
 \r
-                       // preProcessRequest(Execution execution)\r
+                       // preProcessRequest(DelegateExecution execution)\r
                        UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()\r
                        UpdateNetworkInstance.sendSyncResponse(mockExecution)\r
 \r
@@ -241,7 +241,7 @@ String jsonIncomingRequest =
                        when(mockExecution.getVariable("URN_mso_adapters_db_auth")).thenReturn("757A94191D685FD2092AC1490730A4FC")\r
                        when(mockExecution.getVariable("URN_mso_msoKey")).thenReturn("07a7159d3bf51a0e53be7a8f89699be7")\r
                        \r
-                       // preProcessRequest(Execution execution)\r
+                       // preProcessRequest(DelegateExecution execution)\r
                        UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()\r
                        UpdateNetworkInstance.prepareDBRequestError(mockExecution)\r
 \r
@@ -262,7 +262,7 @@ String jsonIncomingRequest =
                        when(mockExecution.getVariable("mso-request-id")).thenReturn("88f65519-9a38-4c4b-8445-9eb4a5a5af56")\r
                        when(mockExecution.getVariable(Prefix + "dbReturnCode")).thenReturn("200")\r
 \r
-                       // postProcessResponse(Execution execution)\r
+                       // postProcessResponse(DelegateExecution execution)\r
                        UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()\r
                        UpdateNetworkInstance.prepareCompletion(mockExecution)\r
 \r
@@ -292,7 +292,7 @@ String jsonIncomingRequest =
                        //when(mockExecution.getVariable("WorkflowException")).thenReturn(sndcWorkflowException)\r
                        when(mockExecution.getVariable("WorkflowException")).thenReturn(sndcWorkflowException)\r
 \r
-                       // buildErrorResponse(Execution execution)\r
+                       // buildErrorResponse(DelegateExecution execution)\r
                        UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()\r
                        UpdateNetworkInstance.buildErrorResponse(mockExecution)\r
 \r
@@ -313,7 +313,7 @@ String jsonIncomingRequest =
                        when(mockExecution.getVariable("isDebugLogEnabled")).thenReturn("true")\r
                        when(mockExecution.getVariable("CMSO_ResponseCode")).thenReturn("200")\r
 \r
-                       // postProcessResponse(Execution execution)\r
+                       // postProcessResponse(DelegateExecution execution)\r
                        UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()\r
                        UpdateNetworkInstance.postProcessResponse(mockExecution)\r
 \r
@@ -333,7 +333,7 @@ String jsonIncomingRequest =
                        // Initialize prerequisite variables\r
                        when(mockExecution.getVariable("isDebugLogEnabled")).thenReturn("true")\r
 \r
-                       // preProcessRequest(Execution execution)\r
+                       // preProcessRequest(DelegateExecution execution)\r
                        UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()\r
                        UpdateNetworkInstance.processRollbackData(mockExecution)\r
 \r