Skip to content

Commit c5c60bc

Browse files
committed
PI-2517 - update integration tests
1 parent 23f09b2 commit c5c60bc

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
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 StatusInformationIntegrationTest : IntegrationTestBase() {
9+
10+
@Test
11+
fun `returns status information for a person`() {
12+
callApi("$basePath/$pnc/status-information")
13+
.andExpect(status().isOk)
14+
.andExpect(content().json(getExpectedResponse("person-status-information")))
15+
}
16+
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"data": [
3+
{
4+
"code": "ASFO",
5+
"description": "Serious Further Offence - Subject to SFO review/investigation",
6+
"startDate": "2019-08-24",
7+
"reviewDate": "2019-08-24",
8+
"notes": "string"
9+
}
10+
],
11+
"pagination": {
12+
"isLastPage": true,
13+
"count": 1,
14+
"page": 1,
15+
"perPage": 10,
16+
"totalCount": 1,
17+
"totalPages": 1
18+
}
19+
}

0 commit comments

Comments
 (0)