Skip to content

Commit 7813e3b

Browse files
committed
HIA-765 - update test
1 parent ef3d995 commit 7813e3b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package uk.gov.justice.digital.hmpps.hmppsintegrationapi.integration.person
22

33
import org.junit.jupiter.api.Test
4+
import org.junit.jupiter.params.ParameterizedTest
5+
import org.junit.jupiter.params.provider.ValueSource
46
import org.springframework.test.web.servlet.result.MockMvcResultMatchers.content
57
import org.springframework.test.web.servlet.result.MockMvcResultMatchers.status
68
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.integration.IntegrationTestBase
@@ -44,9 +46,10 @@ class PersonIntegrationTest : IntegrationTestBase() {
4446
)
4547
}
4648

47-
@Test
48-
fun `returns person cell location if in prison`() {
49-
callApi("$basePath/$pnc/cell-location")
49+
@ParameterizedTest
50+
@ValueSource(strings = ["2004%2F13116M", "G2996UX"])
51+
fun `returns person cell location if in prison`(hmppsId: String) {
52+
callApi("$basePath/$hmppsId/cell-location")
5053
.andExpect(status().isOk)
5154
.andExpect(
5255
content().json(

0 commit comments

Comments
 (0)