Skip to content

Commit

Permalink
MAN-110 - change ZoneId as test is failing in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj committed Nov 21, 2024
1 parent cc9dc52 commit 14ac6f9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.*

Expand All @@ -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()
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 14ac6f9

Please sign in to comment.