Skip to content

Commit

Permalink
Use radio buttons for sensitive questions in PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
vrajmohan committed Feb 15, 2024
1 parent 3c0f4e4 commit b2e332a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
Binary file modified src/main/resources/pdfs/Combined_9701_OHEP.pdf
Binary file not shown.
32 changes: 19 additions & 13 deletions src/test/java/org/mdbenefits/app/pdf/PdfServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,25 @@ class PDFServiceTest {
@Test
void generate() throws IOException {
Submission submission = new SubmissionTestBuilder()
.withPersonalInfo("John", "Doe", "10", "12", "1999",
"", "", "", "", "111111111")
.withHouseholdMember("Jane", "Doe", "1", "5", "2000",
"wife", "F", "", "", "222222222", null, null)
.with("homeAddressStreetAddress1", "972 Mission St, 5th Floor")
.with("homeAddressCity", "San Francisco")
.with("homeAddressState", "CA")
.with("homeAddressZipCode", "94103")
.with("phoneNumber", "(510) 555-1212")
.with("signature", "John Hancock")
.with("someoneInHHIsPregnant", "true")
.with("someoneHasDrugKingpinFelony", "false")
.build();
.withPersonalInfo("John", "Doe", "10", "12", "1999",
"", "", "", "", "111111111")
.withHouseholdMember("Jane", "Doe", "1", "5", "2000",
"wife", "F", "", "", "222222222", null, null)
.with("homeAddressStreetAddress1", "972 Mission St, 5th Floor")
.with("homeAddressCity", "San Francisco")
.with("homeAddressState", "CA")
.with("homeAddressZipCode", "94103")
.with("phoneNumber", "(510) 555-1212")
.with("signature", "John Hancock")
.with("someoneInHHIsPregnant", "true")
.with("someoneHasDrugKingpinFelony", "false")
.with("someoneHasVolumeDrugDealerFelony", "true")
.with("someoneHasSexualOffenceConviction", "false")
.with("someoneIsViolatingParole", "true")
.with("someoneConvictedForLyingAboutBenefits", "false")
.with("someoneConvictedForTradingBenefits", "true")
.with("someoneIsReceivingBenefitsWithFakeID", "false")
.build();
submission.setFlow("mdBenefitsFlow");

File pdfFile = pdfService.generate(submission);
Expand Down

0 comments on commit b2e332a

Please sign in to comment.