You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/person/PersonControllerTest.kt
+10-45
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ internal class PersonControllerTest(
48
48
val basePath = "/v1/persons"
49
49
val firstName = "Barry"
50
50
val lastName = "Allen"
51
-
val dateOfBirth = LocalDate.parse("2023-03-01")
51
+
val dateOfBirth = "2023-03-01"
52
52
val mockMvc = IntegrationAPIMockMvc(springMockMvc)
53
53
54
54
describe("GET $basePath") {
@@ -114,48 +114,6 @@ internal class PersonControllerTest(
verify(auditService, times(1)).createEvent("SEARCH_PERSON", "Person searched with first name: $firstName, last name: $lastName, search within aliases: false, pnc number: $pncNumber, date of birth: $dateOfBirth")
@@ -175,7 +133,7 @@ internal class PersonControllerTest(
175
133
),
176
134
)
177
135
178
-
val result = mockMvc.performAuthorised("$basePath?first_name=$firstName&last_name=$lastName&page=3&perPage=5")
136
+
val result = mockMvc.performAuthorised("$basePath?first_name=$firstName&last_name=$lastName&date_of_birth=$dateOfBirth&page=3&perPage=5")
Copy file name to clipboardexpand all lines: src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/gateways/prisoneroffendersearch/PrisonerOffenderSearchGatewayTest.kt
+5-5
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ class PrisonerOffenderSearchGatewayTest(
Copy file name to clipboardexpand all lines: src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/gateways/probationoffendersearch/ProbationOffenderSearchGatewayTest.kt
0 commit comments