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
+49-24
Original file line number
Diff line number
Diff line change
@@ -222,13 +222,19 @@ internal class PersonControllerTest(
222
222
}
223
223
224
224
describe("GET $basePath/{id}") {
225
-
val person = Person("Silly", "Sobbers")
225
+
val probationOffenderSearch = Person("Sam", "Smith", identifiers = Identifiers(nomisNumber = "1234ABC"))
226
+
val prisonOffenderSearch = POSPrisoner("Kim", "Kardashian")
227
+
val prisonResponse = Response(data = prisonOffenderSearch, errors = emptyList())
226
228
227
229
beforeTest {
228
230
Mockito.reset(getPersonService)
229
231
Mockito.reset(auditService)
230
232
231
-
val personMap = mapOf("probationOffenderSearch" to person, "prisonerOffenderSearch" to null)
233
+
val personMap =
234
+
mapOf(
235
+
"probationOffenderSearch" to probationOffenderSearch,
236
+
"prisonerOffenderSearch" to prisonResponse.data.toPerson(),
0 commit comments