Skip to content

Commit a0260d7

Browse files
fix test
1 parent 99ea306 commit a0260d7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/person/PersonControllerTest.kt

+8-6
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,11 @@ internal class PersonControllerTest(
334334
},
335335
"pncId":null,
336336
"hmppsId":null,
337-
"contactDetails":null
337+
"contactDetails":null,
338+
"currentRestriction": null,
339+
"restrictionMessage": null,
340+
"currentExclusion": null,
341+
"exclusionMessage": null
338342
},
339343
"probationOffenderSearch":{
340344
"underActiveSupervision":true,
@@ -345,7 +349,6 @@ internal class PersonControllerTest(
345349
"gender":null,
346350
"ethnicity":null,
347351
"aliases":[
348-
349352
],
350353
"identifiers":{
351354
"nomisNumber":"1234ABC",
@@ -355,10 +358,10 @@ internal class PersonControllerTest(
355358
"pncId":null,
356359
"hmppsId":null,
357360
"contactDetails":null,
358-
"currentRestriction": false,
361+
"currentRestriction": null,
359362
"restrictionMessage": null,
360-
"currentExclusion": true,
361-
"exclusionMessage": "An exclusion exists"
363+
"currentExclusion": null,
364+
"exclusionMessage": null
362365
}
363366
}
364367
}
@@ -368,7 +371,6 @@ internal class PersonControllerTest(
368371
}
369372

370373
describe("GET $basePath/$encodedHmppsId/name") {
371-
val prisonOffenderSearch = POSPrisoner("Sam", "Smith")
372374

373375
beforeTest {
374376
Mockito.reset(getNameForPersonService)

0 commit comments

Comments
 (0)