Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dtspb 4319 biligual implementation #2861

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
df38ab2
DTSPB-4319 Added Bilingual question in the PP journey
IswaryaPepakayala Nov 4, 2024
c4fd99d
DTSPB-4319 Added new html
IswaryaPepakayala Nov 5, 2024
b044f44
DTSPB-4319 Added Welsh for legal statement
IswaryaPepakayala Nov 7, 2024
6e5bad8
DTSPB-4319 Updated CaseEventToFields.json
IswaryaPepakayala Nov 7, 2024
843ceeb
DTSPB-4319 Updated CaseEventToFields.json
IswaryaPepakayala Nov 7, 2024
6a4a0e9
DTSPB-4319 Updated CaseEventToFields.json
IswaryaPepakayala Nov 7, 2024
20c43cf
DTSPB-4319 Updated new LS in FixedList.json and refactored in few files
IswaryaPepakayala Nov 7, 2024
9c28adf
DTSPB-4319 Updated name of LS
IswaryaPepakayala Nov 7, 2024
6d1eb8d
DTSPB-4319 Updated name of LS
IswaryaPepakayala Nov 7, 2024
2d9e04c
DTSPB-4319 Checkstyle
IswaryaPepakayala Nov 7, 2024
95ef9a2
DTSPB-4319 Testing to edit in the same file
IswaryaPepakayala Nov 13, 2024
f4a849b
DTSPB-4319 Testing to edit in the same file
IswaryaPepakayala Nov 13, 2024
1d5d479
DTSPB-4319 Added welsh content in existing files
IswaryaPepakayala Nov 13, 2024
b9cbbe6
DTSPB-4319 Removed unnecessary declaration
IswaryaPepakayala Nov 13, 2024
12262a7
DTSPB-4319 Removed unnecessary declaration
IswaryaPepakayala Nov 13, 2024
c0cf23e
DTSPB-4319 Added welsh templates
IswaryaPepakayala Dec 11, 2024
2b2b29c
merge master
IswaryaPepakayala Dec 11, 2024
b42270b
DTSPB-4319 Added welsh templates and welsh text to the LS
IswaryaPepakayala Dec 12, 2024
4726399
DTSPB-4319 Add FT for generate SOT
IswaryaPepakayala Dec 12, 2024
433cfbd
DTSPB-4319 Checkstyle
IswaryaPepakayala Dec 12, 2024
f617f20
Update LegalStatementGenerationTests.java
IswaryaPepakayala Dec 12, 2024
602655e
DTSPB-4319 Test FT
IswaryaPepakayala Dec 12, 2024
caa8999
DTSPB-4319 Remove log
IswaryaPepakayala Dec 12, 2024
4c69643
DTSPB-4319 Remove unnecessary change
IswaryaPepakayala Dec 12, 2024
8f78e1d
DTSPB-4319 Changed comma place
IswaryaPepakayala Dec 12, 2024
8d1f9e8
DTSPB-4319 Removed unused import
IswaryaPepakayala Dec 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3082,6 +3082,7 @@
{"CaseTypeID": "GrantOfRepresentation", "CaseFieldID": "ihtFormNetValue", "UserRole": "caseworker-probate-solicitor", "CRUD": "CRUD"},
{"CaseTypeID": "GrantOfRepresentation", "CaseFieldID": "lastModifiedDateForDormant", "UserRole": "caseworker-probate-solicitor", "CRUD": "CRUD"},
{"CaseTypeID": "GrantOfRepresentation", "CaseFieldID": "boHandoffReasonList", "UserRole": "caseworker-probate-solicitor", "CRUD": "CRU"},
{"CaseTypeID": "GrantOfRepresentation", "CaseFieldID": "languagePreferenceWelsh", "UserRole": "caseworker-probate-solicitor", "CRUD": "CRUD"},
{"CaseTypeID": "GrantOfRepresentation", "CaseFieldID": "schemaVersion", "UserRole": "citizen", "CRUD": "CRUD"},
{"CaseTypeID": "GrantOfRepresentation", "CaseFieldID": "applicationID", "UserRole": "citizen", "CRUD": "CR"},
{"CaseTypeID": "GrantOfRepresentation", "CaseFieldID": "applicationSubmittedDate", "UserRole": "citizen", "CRUD": "CRU"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateProbate", "CaseFieldID": "originalWillSignedDate", "PageFieldDisplayOrder": 6, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateProbatePage1", "PageDisplayOrder": 1, "ShowSummaryChangeOption": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateProbate", "CaseFieldID": "willHasCodicils", "PageFieldDisplayOrder": 7, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateProbatePage1", "PageDisplayOrder": 1, "ShowSummaryChangeOption": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateProbate", "CaseFieldID": "codicilAddedDateList", "PageFieldDisplayOrder": 8, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateProbatePage1", "PageDisplayOrder": 1, "FieldShowCondition": "willHasCodicils=\"Yes\"", "ShowSummaryChangeOption": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateProbate", "CaseFieldID": "solsSolicitorIsExec", "PageFieldDisplayOrder": 9, "DisplayContext": "READONLY", "PageID": "solicitorUpdateProbatePage1", "PageDisplayOrder": 1, "FieldShowCondition": "[STATE]=\"NeverShow\"", "ShowSummaryChangeOption": "y", "RetainHiddenValue": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateProbate", "CaseFieldID": "languagePreferenceWelsh", "PageFieldDisplayOrder": 9, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateProbatePage1", "CaseEventFieldLabel":"Do you need a bilingual grant in English and Welsh?", "PageDisplayOrder": 1, "ShowSummaryChangeOption": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateProbate", "CaseFieldID": "solsSolicitorIsExec", "PageFieldDisplayOrder": 10, "DisplayContext": "READONLY", "PageID": "solicitorUpdateProbatePage1", "PageDisplayOrder": 1, "FieldShowCondition": "[STATE]=\"NeverShow\"", "ShowSummaryChangeOption": "y", "RetainHiddenValue": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateProbate", "CaseFieldID": "dispenseWithNotice", "PageFieldDisplayOrder": 1, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateProbatePage2", "PageDisplayOrder": 2, "ShowSummaryChangeOption": "y", "CallBackURLMidEvent": "http://${CCD_DEF_CASE_SERVICE_BASE_URL}/case/sols-validate-executors"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateProbate", "CaseFieldID": "titleAndClearingType", "PageFieldDisplayOrder": 2, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateProbatePage2", "PageDisplayOrder": 2, "ShowSummaryChangeOption": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateProbate", "CaseFieldID": "nameOfFirmNamedInWill", "PageFieldDisplayOrder": 3, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateProbatePage2", "PageDisplayOrder": 2, "FieldShowCondition": "titleAndClearingType=\"TCTPartSuccPowerRes\" OR titleAndClearingType=\"TCTPartPowerRes\" OR titleAndClearingType=\"TCTSolePrinSucc\" OR titleAndClearingType=\"TCTSolePrin\" OR titleAndClearingType=\"TCTPartSuccAllRenouncing\" OR titleAndClearingType=\"TCTPartAllRenouncing\" OR titleAndClearingType=\"TCTPartSuccOthersRenouncing\" OR titleAndClearingType=\"TCTPartOthersRenouncing\"", "ShowSummaryChangeOption": "y"},
Expand Down Expand Up @@ -132,6 +133,7 @@
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateIntestacy", "CaseFieldID": "primaryApplicantPhoneNumber", "PageFieldDisplayOrder": 4, "DisplayContext": "OPTIONAL", "PageID": "solicitorUpdateIntestacyPage1", "PageLabel": "About the applicant", "PageDisplayOrder": 1, "ShowSummaryChangeOption": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateIntestacy", "CaseFieldID": "primaryApplicantEmailAddress", "PageFieldDisplayOrder": 5, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateIntestacyPage1", "PageLabel": "About the applicant", "PageDisplayOrder": 1, "ShowSummaryChangeOption": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateIntestacy", "CaseFieldID": "primaryApplicantAddress", "PageFieldDisplayOrder": 6, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateIntestacyPage1", "PageLabel": "About the applicant", "PageDisplayOrder": 1, "ShowSummaryChangeOption": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateIntestacy", "CaseFieldID": "languagePreferenceWelsh", "PageFieldDisplayOrder": 7, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateIntestacyPage1", "CaseEventFieldLabel":"Do you need a bilingual grant in English and Welsh?", "PageDisplayOrder": 1, "ShowSummaryChangeOption": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateIntestacy", "CaseFieldID": "deceasedDomicileInEngWales", "PageFieldDisplayOrder": 1, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateIntestacyPage2", "PageDisplayOrder": 2, "FieldShowCondition": "[STATE]=\"NeverShow\"", "ShowSummaryChangeOption": "y", "RetainHiddenValue": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateIntestacy", "CaseFieldID": "solsApplicantRelationshipSection", "PageFieldDisplayOrder": 1, "DisplayContext": "READONLY", "PageID": "solicitorUpdateIntestacyPage2", "PageLabel": "Applicant and deceased relations", "PageDisplayOrder": 2, "ShowSummaryChangeOption": "n"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateIntestacy", "CaseFieldID": "solsApplicantRelationshipToDeceased", "PageFieldDisplayOrder": 2, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateIntestacyPage2", "PageLabel": "Applicant and deceased relations", "PageDisplayOrder": 2, "ShowSummaryChangeOption": "y"},
Expand All @@ -156,6 +158,7 @@
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateAdmon", "CaseFieldID": "originalWillSignedDate", "PageFieldDisplayOrder": 5, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateAdmonPage1", "PageDisplayOrder": 1, "ShowSummaryChangeOption": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateAdmon", "CaseFieldID": "willHasCodicils", "PageFieldDisplayOrder": 6, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateAdmonPage1", "PageDisplayOrder": 1, "ShowSummaryChangeOption": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateAdmon", "CaseFieldID": "codicilAddedDateList", "PageFieldDisplayOrder": 7, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateAdmonPage1", "PageDisplayOrder": 1, "FieldShowCondition": "willHasCodicils=\"Yes\"", "ShowSummaryChangeOption": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateAdmon", "CaseFieldID": "languagePreferenceWelsh", "PageFieldDisplayOrder": 8, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateAdmonPage1", "CaseEventFieldLabel":"Do you need a bilingual grant in English and Welsh?", "PageDisplayOrder": 1, "ShowSummaryChangeOption": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateAdmon", "CaseFieldID": "solsApplicantNameSection", "PageFieldDisplayOrder": 1, "DisplayContext": "READONLY", "PageID": "solicitorUpdateAdmonPage2", "PageLabel": "About the applicant", "PageDisplayOrder": 2, "ShowSummaryChangeOption": "n"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateAdmon", "CaseFieldID": "primaryApplicantForenames", "PageFieldDisplayOrder": 2, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateAdmonPage2", "PageLabel": "About the applicant", "PageDisplayOrder": 2, "ShowSummaryChangeOption": "y"},
{"LiveFrom": "01/01/2017", "CaseTypeID": "GrantOfRepresentation", "CaseEventID": "solicitorUpdateAdmon", "CaseFieldID": "primaryApplicantSurname", "PageFieldDisplayOrder": 3, "DisplayContext": "MANDATORY", "PageID": "solicitorUpdateAdmonPage2", "PageLabel": "About the applicant", "PageDisplayOrder": 2, "ShowSummaryChangeOption": "y"},
Expand Down
12 changes: 6 additions & 6 deletions src/contractTest/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ notifications:
applicationReceivedPaperFormCaseworker: "22c81233-a213-4520-b6bc-896fe8f6988a"
documentReceived: "83f93f41-58a1-44f2-a9c4-d20d545b7528"
caseStopped: "a767a0bd-4acc-413e-b510-5a71d24daf85"
caseStoppedCaveat: "937291a0-c0ae-40a4-a8cf-46a3452faff0"
grantIssued: "0ba9fc37-acfc-47ee-b1ca-f630c921f14d"
grantReissued: "9b0e4091-8c94-41bc-8e6c-de4bc211f68f"
caseStoppedCaveat: "1fde1860-b827-45e7-b430-1406f74beb93"
grantIssued: "9863cfe5-240b-42ed-912b-188a5f7e1e76"
grantReissued: "1855a622-4979-45a9-baa9-fdac6530804c"
generalCaveatMessage: "afadf00e-c224-4da0-a6dc-fb47a2e5db67"
exelaData: "fd474506-a272-4caa-ad61-6086cee0639a"
smeeAndFordData: "e0208111-4cbf-4a87-bac5-ff1723f0c65d"
Expand All @@ -298,12 +298,12 @@ notifications:
caveatExtend: "6a8d36f5-75cf-4a4c-9cae-c0b561143c86"
caveatRaisedSols: "f49df1a3-83de-4348-8e9f-26744aaed5e2"
requestInformation: "98233470-7aa6-4165-bf62-a663dc9f3c53"
redeclarationSot: "bcd9e4cc-db0c-4810-8172-8bcb2277b775"
grantIssuedIntestacy: "0ba9fc37-acfc-47ee-b1ca-f630c921f14d"
redeclarationSot: "c34256d7-c8f5-451c-b7a6-1a9580622f1c"
grantIssuedIntestacy: "9863cfe5-240b-42ed-912b-188a5f7e1e76"
caveatWithdrawn: "d8bedc4d-a11e-4f56-bd18-8261fba90e2a"
grantDelayed: "7045b381-a087-44fe-8bb5-e5a591cb8473"
grantAwaitingDocumentation: "638395bf-805f-48a7-97b1-d26ea9e9334e"
noticeOfChangeReceived: "6af59aa3-b379-406f-9be4-331b8411c6d9"
noticeOfChangeReceived: "4f1f3c47-1d84-4584-b251-2a77d64510f2"

documents:
templates:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import java.io.IOException;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

@ExtendWith(SerenityJUnit5Extension.class)
public class LegalStatementGenerationTests extends DocumentGenerationTestBase {
Expand All @@ -18,15 +18,20 @@ public class LegalStatementGenerationTests extends DocumentGenerationTestBase {
private static final String DECLARATION_CIVIL_WORDING =
"proceedings for contempt of court may be brought against the undersigned if it is found that the evidence "
+ "provided is deliberately untruthful or dishonest, as well as revocation of the grant";
private static final String DECLARATION_CIVIL_WORDING_WELSH = "gellir dwyn achos dirmyg llys yn erbyn y sawl sy’n "
+ "llofnodi isod os canfyddir bod y dystiolaeth a ddarparwyd yn fwriadol anwir neu’n anonest, yn ogystal â "
+ "diddymu’r grant";
private static final String CODICIL_DATES = " with codicil signed and dated 3rd March 2020, and codicil signed"
+ " and dated 5th March 2020, and codicil signed and dated 6th March 2020";
private static final String DECLARATION_CRIMINAL_WORDING_SINGLE_EXEC =
"criminal proceedings for fraud may be brought against me if I am found to have been deliberately untruthful "
+ "or dishonest";
private static final String LEGAL_STATEMENT = "Legal statement";
private static final String LEGAL_STATEMENT_WELSH = "Datganiad cyfreithiol";
private static final String AUTHORISED_SOLICITOR =
"They have authorised Firm Name to sign a statement of truth on their behalf.";
private static final String LEGAL_STATEMENT_DIED_ON = "died on";
private static final String LEGAL_STATEMENT_GOP_WELSH = "grant profiant";
private static final String LEGAL_STATEMENT_GOP = "grant of probate";
private static final String PRIMARY_APPLICANT_STATEMENT =
"I, FirstName LastName of 123 Street, Town, Postcode, make the following statement";
Expand All @@ -40,8 +45,11 @@ public class LegalStatementGenerationTests extends DocumentGenerationTestBase {
+ " of addressline 1, addressline 2, addressline 3, posttown, county, postcode, country";

private static final String LEGAL_STATEMENT_INTESTATE = "intestate";
private static final String LEGAL_STATEMENT_INTESTATE_WELSH = "heb ewyllys";
private static final String LEGAL_STATEMENT_ADMON_WILL =
"Administrators Applying for Letters of Administration (with will annexed)";
private static final String LEGAL_STATEMENT_ADMON_WILL_WELSH =
"Gweinyddwyr yn Gwneud Cais am Lythyrau Gweinyddu (pan fydd yna ewyllys)";
private static final String FURTHER_EVIDENCE = "Further evidence";
private static final String DOMICILITY_SENTENCE_UK = "The gross value for the estate in the United Kingdom amounts";
private static final String DOMICILITY_SENTENCE_NON_UK = "The gross value for the estate in England and Wales";
Expand All @@ -65,11 +73,16 @@ public class LegalStatementGenerationTests extends DocumentGenerationTestBase {
private static final String SOLE_PRIN_OTHER_PARTNERS = "solicitorSolPartner.json";
private static final String SOLE_PRIN_OTHER_PARTNERS_SINGLE = "solicitorSolePrinSingleExec.json";
private static final String DEFAULT_SOLS_PDF_PROBATE_PAYLOAD = "solicitorPDFPayloadProbateSingleExecutor.json";
private static final String DEFAULT_SOLS_PDF_PROBATE_WELSH_PAYLOAD
= "solicitorPDFPayloadProbateSingleExecutorLanguageWelsh.json";
private static final String MULTIPLE_EXEC_SOLS_PDF_PROBATE_PAYLOAD =
"solicitorPDFPayloadProbateMultipleExecutors.json";
private static final String DEFAULT_SOLS_PDF_INTESTACY_PAYLOAD = "solicitorPDFPayloadIntestacy.json";
private static final String DEFAULT_SOLS_PDF_INTESTACY_WELSH_PAYLOAD
= "solicitorPDFPayloadIntestacyLanguageWelsh.json";
private static final String CODICILS_SOLS_PDF_INTESTACY_PAYLOAD = "solicitorPDFIntestacyCodicils.json";
private static final String DEFAULT_SOLS_PDF_ADMON_PAYLOAD = "solicitorPDFPayloadAdmonWill.json";
private static final String DEFAULT_SOLS_PDF_ADMON_WELSH_PAYLOAD = "solicitorPDFPayloadAdmonWillLanguageWelsh.json";
private static final String ADMON_PAYLOAD_WILL_AND_CODICILS_DATES =
"solicitorPDFPayloadAdmonWillWithWillAndCodicilDates.json";
private static final String ADMON_PAYLOAD_WILL_AND_ONE_CODICILS =
Expand Down Expand Up @@ -102,6 +115,22 @@ void verifySuccessForGetPdfLegalStatementProbateWithSingleExecutorSols() throws
assertTrue(!response.contains(DECLARATION_CRIMINAL_WORDING_SINGLE_EXEC));
}

@Test
void verifySuccessForGetPdfLegalStatementProbateForLanguagePreferenceBilingual() throws IOException {
final String response = generateSotDocument(DEFAULT_SOLS_PDF_PROBATE_WELSH_PAYLOAD, GENERATE_LEGAL_STATEMENT);

assertTrue(response.contains(LEGAL_STATEMENT));
assertTrue(response.contains(LEGAL_STATEMENT_WELSH));
assertTrue(response.contains(DECLARATION_CIVIL_WORDING));
assertTrue(response.contains(DECLARATION_CIVIL_WORDING_WELSH));
assertTrue(response.contains(LEGAL_STATEMENT_DIED_ON));
assertTrue(response.contains(LEGAL_STATEMENT_GOP));
assertTrue(response.contains(LEGAL_STATEMENT_GOP_WELSH));
assertTrue(response.contains(PRIMARY_APPLICANT_STATEMENT));

assertTrue(!response.contains(DECLARATION_CRIMINAL_WORDING_SINGLE_EXEC));
}

@Test
void verifySuccessForGetPdfLegalStatementProbateWithMultipleExecutorSols() throws IOException {
final String response = generateSotDocument(MULTIPLE_EXEC_SOLS_PDF_PROBATE_PAYLOAD, GENERATE_LEGAL_STATEMENT);
Expand Down Expand Up @@ -130,6 +159,21 @@ void verifySuccessForGetPdfLegalStatementIntestacyWithSingleExecutorSols() throw
assertTrue(!response.contains(DECLARATION_CRIMINAL_WORDING_SINGLE_EXEC));
}

@Test
void verifySuccessForGetPdfLegalStatementIntestacyForLanguagePreferenceBilingual() throws IOException {
final String response = generateSotDocument(DEFAULT_SOLS_PDF_INTESTACY_WELSH_PAYLOAD, GENERATE_LEGAL_STATEMENT);

assertTrue(response.contains(LEGAL_STATEMENT));
assertTrue(response.contains(LEGAL_STATEMENT_WELSH));
assertTrue(response.contains(DECLARATION_CIVIL_WORDING));
assertTrue(response.contains(DECLARATION_CIVIL_WORDING_WELSH));
assertTrue(response.contains(AUTHORISED_SOLICITOR));
assertTrue(response.contains(LEGAL_STATEMENT_DIED_ON));
assertTrue(response.contains(PRIMARY_APPLICANT_STATEMENT_OLD_SCHEMA));
assertTrue(response.contains(LEGAL_STATEMENT_INTESTATE));
assertTrue(response.contains(LEGAL_STATEMENT_INTESTATE_WELSH));
}

@Test
void verifySuccessForGetPdfLegalStatementAdmonWillSols() throws IOException {
final String response = generateSotDocument(DEFAULT_SOLS_PDF_ADMON_PAYLOAD, GENERATE_LEGAL_STATEMENT);
Expand All @@ -142,6 +186,21 @@ void verifySuccessForGetPdfLegalStatementAdmonWillSols() throws IOException {
assertTrue(!response.contains(DECLARATION_CRIMINAL_WORDING_SINGLE_EXEC));
}

@Test
void verifySuccessForGetPdfLegalStatementAdmonWillSolsForLanguagePreferenceBilingual() throws IOException {
final String response = generateSotDocument(DEFAULT_SOLS_PDF_ADMON_WELSH_PAYLOAD, GENERATE_LEGAL_STATEMENT);
assertTrue(response.contains(LEGAL_STATEMENT));
assertTrue(response.contains(LEGAL_STATEMENT_WELSH));
assertTrue(response.contains(DECLARATION_CIVIL_WORDING));
assertTrue(response.contains(DECLARATION_CIVIL_WORDING_WELSH));
assertTrue(response.contains(AUTHORISED_SOLICITOR));
assertTrue(response.contains(LEGAL_STATEMENT_DIED_ON));
assertTrue(response.contains(LEGAL_STATEMENT_ADMON_WILL));
assertTrue(response.contains(LEGAL_STATEMENT_ADMON_WILL_WELSH));

assertTrue(!response.contains(DECLARATION_CRIMINAL_WORDING_SINGLE_EXEC));
}

@Test
void verifySuccessForFurtherEvidenceAdmonWill() throws IOException {
final String response = generateSotDocument(DEFAULT_SOLS_PDF_ADMON_PAYLOAD, GENERATE_LEGAL_STATEMENT);
Expand Down
Loading
Loading