AT&T 1712 and 1802 release code
[so.git] / bpmn / MSOInfrastructureBPMN / src / test / groovy / org / openecomp / mso / bpmn / infrastructure / scripts / DeleteNetworkInstanceTest.groovy
index 3046978..46a737f 100644 (file)
@@ -7,7 +7,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.Rule\r
 import org.junit.Test\r
@@ -197,7 +197,7 @@ String deleteDBRequestErrorString =
 \r
                }\r
 \r
-               public void initializeVariables (Execution mockExecution) {\r
+               public void initializeVariables (DelegateExecution mockExecution) {\r
                        \r
                        \r
                        verify(mockExecution).setVariable(Prefix + "Success", false)\r
@@ -219,7 +219,7 @@ String deleteDBRequestErrorString =
                        // Initialize prerequisite variables\r
                        when(mockExecution.getVariable("isDebugLogEnabled")).thenReturn("true")\r
                                                                        \r
-                       // preProcessRequest(Execution execution)\r
+                       // preProcessRequest(DelegateExecution execution)\r
                        DeleteNetworkInstance DeleteNetworkInstance = new DeleteNetworkInstance()\r
                        DeleteNetworkInstance.getNetworkModelInfo(mockExecution)\r
 \r
@@ -240,7 +240,7 @@ String deleteDBRequestErrorString =
                        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
                        DeleteNetworkInstance DeleteNetworkInstance = new DeleteNetworkInstance()\r
                        DeleteNetworkInstance.sendSyncResponse(mockExecution)\r
 \r
@@ -282,7 +282,7 @@ String deleteDBRequestErrorString =
                        when(mockExecution.getVariable(Prefix + "source")).thenReturn("PORTAL")\r
                        when(mockExecution.getVariable("mso-request-id")).thenReturn("88f65519-9a38-4c4b-8445-9eb4a5a5af56")\r
                        \r
-                       // postProcessResponse(Execution execution)\r
+                       // postProcessResponse(DelegateExecution execution)\r
                        DeleteNetworkInstance DeleteNetworkInstance = new DeleteNetworkInstance()\r
                        DeleteNetworkInstance.prepareCompletion(mockExecution)\r
 \r
@@ -313,7 +313,7 @@ String deleteDBRequestErrorString =
                        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
                        DeleteNetworkInstance DeleteNetworkInstance = new DeleteNetworkInstance()\r
                        DeleteNetworkInstance.prepareDBRequestError(mockExecution)\r
                        \r
@@ -333,7 +333,7 @@ String deleteDBRequestErrorString =
                        when(mockExecution.getVariable("isDebugLogEnabled")).thenReturn("true")\r
                        when(mockExecution.getVariable("CMSO_ResponseCode")).thenReturn("200")\r
                        \r
-                       // postProcessResponse(Execution execution)                                             \r
+                       // postProcessResponse(DelegateExecution execution)                                             \r
                        DeleteNetworkInstance DeleteNetworkInstance = new DeleteNetworkInstance()\r
                        DeleteNetworkInstance.postProcessResponse(mockExecution)\r
 \r
@@ -359,7 +359,7 @@ String deleteDBRequestErrorString =
                        when(mockExecution.getVariable("WorkflowException")).thenReturn(sndcWorkflowExceptionObj)\r
                        when(mockExecution.getVariable(Prefix + "source")).thenReturn("PORTAL")\r
                        \r
-                       // buildErrorResponse(Execution execution)\r
+                       // buildErrorResponse(DelegateExecution execution)\r
                        DeleteNetworkInstance DeleteNetworkInstance = new DeleteNetworkInstance()\r
                        DeleteNetworkInstance.buildErrorResponse(mockExecution)\r
                        \r