From 14ac6f9f7199d79962ceb3f4bcb05d15bd7ba226 Mon Sep 17 00:00:00 2001 From: Amardeep Chimber Date: Thu, 21 Nov 2024 13:00:13 +0000 Subject: [PATCH] MAN-110 - change ZoneId as test is failing in pipeline --- .../CreateOverlappingAppointmentIntegrationTest.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/projects/manage-supervision-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/CreateOverlappingAppointmentIntegrationTest.kt b/projects/manage-supervision-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/CreateOverlappingAppointmentIntegrationTest.kt index 23521eebf..737380eb1 100644 --- a/projects/manage-supervision-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/CreateOverlappingAppointmentIntegrationTest.kt +++ b/projects/manage-supervision-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/CreateOverlappingAppointmentIntegrationTest.kt @@ -17,13 +17,13 @@ import uk.gov.justice.digital.hmpps.data.generator.OffenderManagerGenerator.STAF import uk.gov.justice.digital.hmpps.data.generator.OffenderManagerGenerator.TEAM import uk.gov.justice.digital.hmpps.data.generator.PersonGenerator import uk.gov.justice.digital.hmpps.datetime.DeliusDateFormatter -import uk.gov.justice.digital.hmpps.datetime.EuropeLondon import uk.gov.justice.digital.hmpps.integrations.delius.sentence.entity.AppointmentRepository import uk.gov.justice.digital.hmpps.test.MockMvcExtensions.contentAsJson import uk.gov.justice.digital.hmpps.test.MockMvcExtensions.withJson import uk.gov.justice.digital.hmpps.test.MockMvcExtensions.withToken import java.time.LocalDate import java.time.LocalTime +import java.time.ZoneId import java.time.ZonedDateTime import java.util.* @@ -44,8 +44,8 @@ class CreateOverlappingAppointmentIntegrationTest { val appointment = CreateAppointment( user, CreateAppointment.Type.HomeVisitToCaseNS, - ZonedDateTime.of(LocalDate.now().plusDays(1), LocalTime.NOON, EuropeLondon), - ZonedDateTime.of(LocalDate.now().plusDays(1), LocalTime.NOON.plusHours(1), EuropeLondon), + ZonedDateTime.of(LocalDate.now().plusDays(1), LocalTime.NOON, ZoneId.systemDefault()), + ZonedDateTime.of(LocalDate.now().plusDays(1), LocalTime.NOON.plusHours(1), ZoneId.systemDefault()), numberOfAppointments = 3, eventId = PersonGenerator.EVENT_1.id, uuid = UUID.randomUUID() @@ -77,8 +77,8 @@ class CreateOverlappingAppointmentIntegrationTest { val overlapAppointment = CreateAppointment( user, CreateAppointment.Type.HomeVisitToCaseNS, - ZonedDateTime.of(LocalDate.now().plusDays(1), LocalTime.NOON, EuropeLondon), - ZonedDateTime.of(LocalDate.now().plusDays(1), LocalTime.NOON.plusHours(1), EuropeLondon), + ZonedDateTime.of(LocalDate.now().plusDays(1), LocalTime.NOON, ZoneId.systemDefault()), + ZonedDateTime.of(LocalDate.now().plusDays(1), LocalTime.NOON.plusHours(1), ZoneId.systemDefault()), numberOfAppointments = 3, eventId = PersonGenerator.EVENT_1.id, uuid = UUID.randomUUID(),