Skip to content

Commit 008e686

Browse files
committed
PI-2517 - update integration tests
1 parent 9a7f8b0 commit 008e686

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/integration/person/OffencesIntegrationTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import uk.gov.justice.digital.hmpps.hmppsintegrationapi.integration.IntegrationT
88
class OffencesIntegrationTest : IntegrationTestBase() {
99

1010
@Test
11-
fun `returns needs for a person`() {
11+
fun `returns offences for a person`() {
1212
callApi("$basePath/$pnc/offences")
1313
.andExpect(status().isOk)
1414
.andExpect(content().json(getExpectedResponse("person-offences")))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package uk.gov.justice.digital.hmpps.hmppsintegrationapi.integration.person
2+
3+
import org.junit.jupiter.api.Test
4+
import org.springframework.test.web.servlet.result.MockMvcResultMatchers.content
5+
import org.springframework.test.web.servlet.result.MockMvcResultMatchers.status
6+
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.integration.IntegrationTestBase
7+
8+
class ProtectedCharacteristicsIntegrationTest : IntegrationTestBase() {
9+
10+
@Test
11+
fun `returns protected characteristics for a person`() {
12+
callApi("$basePath/$pnc/protected-characteristics")
13+
.andExpect(status().isOk)
14+
.andExpect(content().json(getExpectedResponse("person-protected-characteristics")))
15+
}
16+
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"data": {
3+
"age": -2147483648,
4+
"gender": "string",
5+
"sexualOrientation": "string",
6+
"ethnicity": "string",
7+
"nationality": "string",
8+
"religion": "string",
9+
"disabilities": [
10+
{
11+
"disabilityType": {
12+
"code": "string",
13+
"description": "string"
14+
},
15+
"condition": {
16+
"code": "string",
17+
"description": "string"
18+
},
19+
"startDate": "2019-08-24",
20+
"endDate": "2019-08-24",
21+
"notes": "string"
22+
}
23+
],
24+
"maritalStatus": "Widowed",
25+
"reasonableAdjustments": [
26+
{
27+
"treatmentCode": "WHEELCHR_ACC",
28+
"commentText": "abcd",
29+
"startDate": "2010-06-21",
30+
"endDate": "2010-06-21",
31+
"treatmentDescription": "Wheelchair accessibility"
32+
}
33+
]
34+
}
35+
}

0 commit comments

Comments
 (0)