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/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/gateways/PrisonerOffenderSearchGateway.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ class PrisonerOffenderSearchGateway(
Copy file name to clipboardexpand all lines: src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/person/PersonControllerTest.kt
-2
Original file line number
Diff line number
Diff line change
@@ -334,7 +334,6 @@ internal class PersonControllerTest(
334
334
"pncId":null,
335
335
"hmppsId":null,
336
336
"contactDetails":null,
337
-
"prisonId": null,
338
337
"currentRestriction": null,
339
338
"restrictionMessage": null,
340
339
"currentExclusion": null,
@@ -358,7 +357,6 @@ internal class PersonControllerTest(
Copy file name to clipboardexpand all lines: src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/prison/PrisonControllerTest.kt
+4-33
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ internal class PrisonControllerTest(
45
45
val firstName = "Barry"
46
46
val lastName = "Allen"
47
47
val dateOfBirth = "2023-03-01"
48
-
val emptyConsumerFilter = ConsumerFilters(emptyList())
48
+
val emptyConsumerFilter = null
49
49
50
50
describe("GET $basePath") {
51
51
}
@@ -80,7 +80,6 @@ internal class PrisonControllerTest(
80
80
exclusionMessage = "An exclusion is present",
81
81
currentRestriction = true,
82
82
restrictionMessage = "A restriction is present",
83
-
prisonId = "VALID_PRISON",
84
83
),
85
84
),
86
85
)
@@ -106,7 +105,6 @@ internal class PrisonControllerTest(
106
105
"pncId": "PNC123456",
107
106
"hmppsId": null,
108
107
"contactDetails": null,
109
-
"prisonId": "VALID_PRISON",
110
108
"currentRestriction": true,
111
109
"restrictionMessage": "A restriction is present",
112
110
"currentExclusion": true,
@@ -211,9 +209,9 @@ internal class PrisonControllerTest(
211
209
result.response.status.shouldBe(500)
212
210
}
213
211
214
-
it("returns 404 when prisoner query gets no result") {
212
+
it("returns 500 when prisoner query gets no result") {
val result = mockMvc.performAuthorisedWithCN("$basePath/prisoners?first_name=$firstName&last_name=$lastName&date_of_birth=$dateOfBirth&search_within_aliases=false", "populated-prison-filters")
0 commit comments