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
\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
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
// 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
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
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
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
//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
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
// 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