From c3dbf3f50c45d81f6e0cdafa4bcb2923841fc85f Mon Sep 17 00:00:00 2001 From: Sathish Kannan Date: Fri, 16 Feb 2024 09:58:12 +0000 Subject: [PATCH 1/2] Fixes for E2E Testing on 14th Feb --- .../wa-task-initiation-privatelaw-prlapps.dmn | 73 ++++++++++++++++++- .../dmn/CamundaTaskInitiationTest.java | 21 +++++- 2 files changed, 92 insertions(+), 2 deletions(-) diff --git a/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn b/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn index fbc9c970..2c707e5e 100644 --- a/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn +++ b/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn @@ -4068,7 +4068,7 @@ and additionalData.Data.isHearingTaskNeeded != null) then - + "No" @@ -4104,6 +4104,77 @@ and additionalData.Data.isHearingTaskNeeded != null) then "completefl416AndServe" + + + "confidentialityCheck" + + + "JUDICIAL_REVIEW","PREPARE_FOR_HEARING_CONDUCT_HEARING" + + + "FL401" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "Yes" + + + "Yes" + + + + + + + + + + + + + + + + + + "completefl416AndServe" + + + "Complete FL416 and serve applicant only" + + + + + + "completefl416AndServe" + + "confidentialityCheck" diff --git a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskInitiationTest.java b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskInitiationTest.java index 38f31059..69643a7b 100644 --- a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskInitiationTest.java +++ b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskInitiationTest.java @@ -37,7 +37,7 @@ void if_this_test_fails_needs_updating_with_your_changes() { DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic(); assertThat(logic.getInputs().size(), is(19)); assertThat(logic.getOutputs().size(), is(4)); - assertThat(logic.getRules().size(), is(81)); + assertThat(logic.getRules().size(), is(82)); } static Stream scenarioProvider() { @@ -826,6 +826,25 @@ static Stream scenarioProvider() { mapAdditionalData("{\n" + " \"Data\":{\n" + " \"caseTypeOfApplication\":\"" + "FL401" + "\"\n," + + " \"isC8CheckNeeded\":\"" + "No" + "\"\n," + + " \"isOccupationOrderSelected\":\"" + "Yes" + "\"\n" + + " }" + + "}"), + List.of( + Map.of( + "name", "Complete FL416 and serve applicant only", + "processCategories", "completefl416AndServe", + "taskId", "completefl416AndServe" + ) + ) + ), + Arguments.of( + "confidentialityCheck", + "JUDICIAL_REVIEW", + mapAdditionalData("{\n" + + " \"Data\":{\n" + + " \"caseTypeOfApplication\":\"" + "FL401" + "\"\n," + + " \"isOccupationOrderSelected\":\"" + "Yes" + "\"\n," + " \"isOccupationOrderSelected\":\"" + "Yes" + "\"\n" + " }" + "}"), From 326c87f65e42ecdde4425fad546692a433533fa6 Mon Sep 17 00:00:00 2001 From: Sathish Kannan Date: Fri, 16 Feb 2024 10:45:02 +0000 Subject: [PATCH 2/2] Fixes for E2E Testing on 14th Feb --- .../prl/taskconfiguration/dmn/CamundaTaskInitiationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskInitiationTest.java b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskInitiationTest.java index 69643a7b..be5ef111 100644 --- a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskInitiationTest.java +++ b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskInitiationTest.java @@ -844,7 +844,7 @@ static Stream scenarioProvider() { mapAdditionalData("{\n" + " \"Data\":{\n" + " \"caseTypeOfApplication\":\"" + "FL401" + "\"\n," - + " \"isOccupationOrderSelected\":\"" + "Yes" + "\"\n," + + " \"isC8CheckApproved\":\"" + "Yes" + "\"\n," + " \"isOccupationOrderSelected\":\"" + "Yes" + "\"\n" + " }" + "}"),