diff options
author | Abhishek Patil <abhishek.patil@t-systems.com> | 2023-04-12 18:51:19 +0530 |
---|---|---|
committer | Abhishek Patil <abhishek.patil@t-systems.com> | 2023-05-03 11:21:52 +0000 |
commit | 09e2242fd1b3258d299018e501c10f124e5b3104 (patch) | |
tree | 02a74f1a97bac084364705692754325c66cd48ee /bpmn/so-bpmn-building-blocks/src/test/java | |
parent | 6624366c1485f352220216e45666d6083da04d6c (diff) |
Code changes in BPMN infra for RAN Slice Use case
New module so-bomn-moi is created.
New bpmn flows :
AssignRANNssiBB
ActivateRANNssiBB
ModifyRANNssiBB
DeleteRANNssiBB
Issue-ID: SO-4039
Signed-off-by: Patil <Abhishek.Patil@t-systems.com>
Change-Id: Ifad4e0a65dc810a753d30123a84c08081bcfd987
Diffstat (limited to 'bpmn/so-bpmn-building-blocks/src/test/java')
-rw-r--r-- | bpmn/so-bpmn-building-blocks/src/test/java/org/onap/so/bpmn/infrastructure/bpmn/subprocess/ExecuteBuildingBlockTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bpmn/so-bpmn-building-blocks/src/test/java/org/onap/so/bpmn/infrastructure/bpmn/subprocess/ExecuteBuildingBlockTest.java b/bpmn/so-bpmn-building-blocks/src/test/java/org/onap/so/bpmn/infrastructure/bpmn/subprocess/ExecuteBuildingBlockTest.java index aec118b7fb..c2363b78c5 100644 --- a/bpmn/so-bpmn-building-blocks/src/test/java/org/onap/so/bpmn/infrastructure/bpmn/subprocess/ExecuteBuildingBlockTest.java +++ b/bpmn/so-bpmn-building-blocks/src/test/java/org/onap/so/bpmn/infrastructure/bpmn/subprocess/ExecuteBuildingBlockTest.java @@ -47,6 +47,7 @@ public class ExecuteBuildingBlockTest extends BaseBPMNTest { variables.put("orchestrationStatusValidationResult", OrchestrationStatusValidationDirective.CONTINUE); variables.put("flowToBeCalled", "MockFlow"); + variables.put("homing", false); mockSubprocess("MockFlow", "My Mock Process Name", "GenericStub"); @@ -64,6 +65,7 @@ public class ExecuteBuildingBlockTest extends BaseBPMNTest { @Test public void test_sunnyDayExecuteBuildingBlock_silentSuccess() throws Exception { variables.put("orchestrationStatusValidationResult", OrchestrationStatusValidationDirective.SILENT_SUCCESS); + variables.put("homing", false); ProcessInstance pi = runtimeService.startProcessInstanceByKey("ExecuteBuildingBlock", variables); assertThat(pi).isNotNull(); @@ -79,6 +81,7 @@ public class ExecuteBuildingBlockTest extends BaseBPMNTest { public void test_rainyDayExecuteBuildingBlock_rollbackOrAbort() throws Exception { doThrow(new BpmnError("7000", "TESTING ERRORS")).when(bbInputSetup).execute(any(DelegateExecution.class)); ProcessInstance pi = runtimeService.startProcessInstanceByKey("ExecuteBuildingBlock", variables); + variables.put("homing", false); assertThat(pi).isNotNull(); assertThat(pi).isStarted() .hasPassedInOrder("Start_ExecuteBuildingBlock", "Task_BBInputSetup", "StartEvent_0tmcs9g", @@ -96,6 +99,7 @@ public class ExecuteBuildingBlockTest extends BaseBPMNTest { variables.put("handlingCode", "Retry"); variables.put("RetryCount", 5); + variables.put("homing", false); ProcessInstance pi = runtimeService.startProcessInstanceByKey("ExecuteBuildingBlock", variables); assertThat(pi).isNotNull(); @@ -116,6 +120,7 @@ public class ExecuteBuildingBlockTest extends BaseBPMNTest { variables.put("handlingCode", "Retry"); variables.put("RetryCount", 4); variables.put("RetryDuration", "PT1S"); + variables.put("homing", false); ProcessInstance pi = runtimeService.startProcessInstanceByKey("ExecuteBuildingBlock", variables); assertThat(pi).isNotNull(); |