From 3c215f04827c818ac584952099a0218cb49d8969 Mon Sep 17 00:00:00 2001 From: spokenbird Date: Mon, 17 Jun 2024 14:59:08 -0700 Subject: [PATCH] Remove tests for removed screens --- .../mdbenefits/app/inputs/MdBenefitsFlow.java | 3 -- .../preparers/IncomeDetailsPreparerTest.java | 35 ------------------- 2 files changed, 38 deletions(-) diff --git a/src/main/java/org/mdbenefits/app/inputs/MdBenefitsFlow.java b/src/main/java/org/mdbenefits/app/inputs/MdBenefitsFlow.java index 4638160f..1ecbf74d 100644 --- a/src/main/java/org/mdbenefits/app/inputs/MdBenefitsFlow.java +++ b/src/main/java/org/mdbenefits/app/inputs/MdBenefitsFlow.java @@ -220,9 +220,6 @@ public class MdBenefitsFlow extends FlowInputs { @Money(message = "{error.invalid-money}") private String additionalIncomeOther; - @NotEmpty - private List moneyOnHandTypes; - @Money(message = "{error.invalid-money}") @NotBlank(message = "{error.missing-dollar-amount}") private String monthlyHouseholdIncome; diff --git a/src/test/java/org/mdbenefits/app/preparers/IncomeDetailsPreparerTest.java b/src/test/java/org/mdbenefits/app/preparers/IncomeDetailsPreparerTest.java index 880d768f..c92b7c50 100644 --- a/src/test/java/org/mdbenefits/app/preparers/IncomeDetailsPreparerTest.java +++ b/src/test/java/org/mdbenefits/app/preparers/IncomeDetailsPreparerTest.java @@ -105,41 +105,6 @@ public void testAdditionalIncome() { assertThat(yesRow.getValue()).isEqualToIgnoringCase("Yes"); } - - @Test - public void testPrepareMoneyOnHandResourcesDoesNotAddWhenNONEisPresent() { - Submission submission = new SubmissionTestBuilder() - .withPersonalInfo("Person", "One", "", "", "", "", "", "", "", "") - .with("moneyOnHandTypes[]", List.of(NONE_OF_ABOVE_SELECTION_VALUE)) - .build(); - - Map result = incomePreparer.prepareSubmissionFields(submission, null); - assertThat(result.get("householdHasResourcesOrAssets")) - .isEqualTo(new SingleField("householdHasResourcesOrAssets", "false", null)); - } - - @Test - public void testPrepareMoneyOnHandResourcesAddsRelevantItems() { - Submission submission = new SubmissionTestBuilder() - .withPersonalInfo("Person", "One", "", "", "", "", "", "", "", "") - .with("moneyOnHandTypes[]", List.of("CHECKING", "SAVINGS", "BONDS")) - .build(); - - Map result = incomePreparer.prepareSubmissionFields(submission, null); - - assertThat(withNoJobIncome(result).size()).isEqualTo(4); - assertThat(result.get("householdHasResourcesOrAssets")) - .isEqualTo(new SingleField("householdHasResourcesOrAssets", "true", null)); - assertThat(result.get("resourcesOrAssetsType1")) - .isEqualTo(new SingleField("resourcesOrAssetsType1", "Checking account", null)); - - assertThat(result.get("resourcesOrAssetsType2")) - .isEqualTo(new SingleField("resourcesOrAssetsType2", "Savings account", null)); - - assertThat(result.get("resourcesOrAssetsType3")) - .isEqualTo(new SingleField("resourcesOrAssetsType3", "Bonds", null)); - } - private void assertJobIncome(Map results, String expected) { assertThat(results).containsKey("householdHasEarnedIncome"); var hasIncomeField = (SingleField) results.get("householdHasEarnedIncome");