aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOInfrastructureBPMN/src/test/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/UpdateNetworkInstanceTest.groovy
diff options
context:
space:
mode:
Diffstat (limited to 'bpmn/MSOInfrastructureBPMN/src/test/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/UpdateNetworkInstanceTest.groovy')
-rw-r--r--bpmn/MSOInfrastructureBPMN/src/test/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/UpdateNetworkInstanceTest.groovy20
1 files changed, 10 insertions, 10 deletions
diff --git a/bpmn/MSOInfrastructureBPMN/src/test/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/UpdateNetworkInstanceTest.groovy b/bpmn/MSOInfrastructureBPMN/src/test/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/UpdateNetworkInstanceTest.groovy
index e987d59805..4c77a04701 100644
--- a/bpmn/MSOInfrastructureBPMN/src/test/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/UpdateNetworkInstanceTest.groovy
+++ b/bpmn/MSOInfrastructureBPMN/src/test/groovy/org/openecomp/mso/bpmn/infrastructure/scripts/UpdateNetworkInstanceTest.groovy
@@ -6,7 +6,7 @@ import org.camunda.bpm.engine.ProcessEngineServices
import org.camunda.bpm.engine.RepositoryService
import org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity
import org.camunda.bpm.engine.repository.ProcessDefinition
-import org.camunda.bpm.engine.runtime.Execution
+import org.camunda.bpm.engine.delegate.DelegateExecution
import org.junit.Before
import org.junit.Ignore
import org.junit.Rule
@@ -125,7 +125,7 @@ String jsonIncomingRequest =
}
- public void initializeVariables(Execution mockExecution) {
+ public void initializeVariables(DelegateExecution mockExecution) {
verify(mockExecution).setVariable(Prefix + "source", "")
verify(mockExecution).setVariable(Prefix + "Success", false)
@@ -148,7 +148,7 @@ String jsonIncomingRequest =
when(mockExecution.getVariable("URN_mso_adapters_db_auth")).thenReturn("757A94191D685FD2092AC1490730A4FC")
when(mockExecution.getVariable("URN_mso_msoKey")).thenReturn("07a7159d3bf51a0e53be7a8f89699be7")
- // preProcessRequest(Execution execution)
+ // preProcessRequest(DelegateExecution execution)
UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()
UpdateNetworkInstance.preProcessRequest(mockExecution)
@@ -171,7 +171,7 @@ String jsonIncomingRequest =
// Initialize prerequisite variables
when(mockExecution.getVariable("isDebugLogEnabled")).thenReturn("true")
- // preProcessRequest(Execution execution)
+ // preProcessRequest(DelegateExecution execution)
UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()
UpdateNetworkInstance.getNetworkModelInfo(mockExecution)
@@ -192,7 +192,7 @@ String jsonIncomingRequest =
when(mockExecution.getVariable("mso-request-id")).thenReturn("e8ebf6a0-f8ea-4dc0-8b99-fe98a87722d6")
when(mockExecution.getVariable("serviceInstanceId")).thenReturn("f70e927b-6087-4974-9ef8-c5e4d5847ca4")
- // preProcessRequest(Execution execution)
+ // preProcessRequest(DelegateExecution execution)
UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()
UpdateNetworkInstance.sendSyncResponse(mockExecution)
@@ -241,7 +241,7 @@ String jsonIncomingRequest =
when(mockExecution.getVariable("URN_mso_adapters_db_auth")).thenReturn("757A94191D685FD2092AC1490730A4FC")
when(mockExecution.getVariable("URN_mso_msoKey")).thenReturn("07a7159d3bf51a0e53be7a8f89699be7")
- // preProcessRequest(Execution execution)
+ // preProcessRequest(DelegateExecution execution)
UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()
UpdateNetworkInstance.prepareDBRequestError(mockExecution)
@@ -262,7 +262,7 @@ String jsonIncomingRequest =
when(mockExecution.getVariable("mso-request-id")).thenReturn("88f65519-9a38-4c4b-8445-9eb4a5a5af56")
when(mockExecution.getVariable(Prefix + "dbReturnCode")).thenReturn("200")
- // postProcessResponse(Execution execution)
+ // postProcessResponse(DelegateExecution execution)
UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()
UpdateNetworkInstance.prepareCompletion(mockExecution)
@@ -292,7 +292,7 @@ String jsonIncomingRequest =
//when(mockExecution.getVariable("WorkflowException")).thenReturn(sndcWorkflowException)
when(mockExecution.getVariable("WorkflowException")).thenReturn(sndcWorkflowException)
- // buildErrorResponse(Execution execution)
+ // buildErrorResponse(DelegateExecution execution)
UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()
UpdateNetworkInstance.buildErrorResponse(mockExecution)
@@ -313,7 +313,7 @@ String jsonIncomingRequest =
when(mockExecution.getVariable("isDebugLogEnabled")).thenReturn("true")
when(mockExecution.getVariable("CMSO_ResponseCode")).thenReturn("200")
- // postProcessResponse(Execution execution)
+ // postProcessResponse(DelegateExecution execution)
UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()
UpdateNetworkInstance.postProcessResponse(mockExecution)
@@ -333,7 +333,7 @@ String jsonIncomingRequest =
// Initialize prerequisite variables
when(mockExecution.getVariable("isDebugLogEnabled")).thenReturn("true")
- // preProcessRequest(Execution execution)
+ // preProcessRequest(DelegateExecution execution)
UpdateNetworkInstance UpdateNetworkInstance = new UpdateNetworkInstance()
UpdateNetworkInstance.processRollbackData(mockExecution)