From 60079a1965b03d6eccbde79ef50eb9e6e692d4eb Mon Sep 17 00:00:00 2001 From: Mike Lemos Date: Mon, 22 Jul 2024 10:19:00 +0100 Subject: [PATCH] DTSCCI-593 adding fixed dates to consumer tests (#5125) --- .../hmcts/reform/civil/NewBundleApiConsumerTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/contractTest/java/uk/gov/hmcts/reform/civil/NewBundleApiConsumerTest.java b/src/contractTest/java/uk/gov/hmcts/reform/civil/NewBundleApiConsumerTest.java index 9ac5a45339f..28c84e13409 100644 --- a/src/contractTest/java/uk/gov/hmcts/reform/civil/NewBundleApiConsumerTest.java +++ b/src/contractTest/java/uk/gov/hmcts/reform/civil/NewBundleApiConsumerTest.java @@ -132,13 +132,13 @@ private Party getParty(String applicant) { .individualTitle("Mr") .individualFirstName(applicant) .individualLastName("Silvassauro") - .individualDateOfBirth(LocalDate.now().minusDays(10)) + .individualDateOfBirth(LocalDate.of(2019, 1, 1)) .companyName("company") .organisationName("org") .soleTraderTitle("soleTr") .soleTraderFirstName("soleTrFN") .soleTraderLastName("soleTrLN") - .soleTraderDateOfBirth(LocalDate.now().minusDays(10)) + .soleTraderDateOfBirth(LocalDate.of(2019, 1, 1)) .primaryAddress(getTestAddress("rua1")) .partyName(applicant) .bulkClaimPartyName("bulk") @@ -155,12 +155,12 @@ private List> getUnavailableTestDates() { return List.of(Element.builder().id(UUID.fromString("00e5384f-03b3-4634-8b67-6acb665e83ba")) .value(UnavailableDate.builder() .who("who") - .date(LocalDate.now()) - .fromDate(LocalDate.now()) - .toDate(LocalDate.now()) + .date(LocalDate.of(2020, 1, 1)) + .fromDate(LocalDate.of(2020, 1, 1)) + .toDate(LocalDate.of(2020, 1, 1)) .unavailableDateType(UnavailableDateType.DATE_RANGE) .eventAdded("eventAdd") - .dateAdded(LocalDate.now()) + .dateAdded(LocalDate.of(2020, 1, 1)) .build()).build()); }