Skip to content

Commit

Permalink
HIA-765 - update test
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj committed Nov 26, 2024
1 parent ef3d995 commit 7813e3b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package uk.gov.justice.digital.hmpps.hmppsintegrationapi.integration.person

import org.junit.jupiter.api.Test
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.ValueSource
import org.springframework.test.web.servlet.result.MockMvcResultMatchers.content
import org.springframework.test.web.servlet.result.MockMvcResultMatchers.status
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.integration.IntegrationTestBase
Expand Down Expand Up @@ -44,9 +46,10 @@ class PersonIntegrationTest : IntegrationTestBase() {
)
}

@Test
fun `returns person cell location if in prison`() {
callApi("$basePath/$pnc/cell-location")
@ParameterizedTest
@ValueSource(strings = ["2004%2F13116M", "G2996UX"])
fun `returns person cell location if in prison`(hmppsId: String) {
callApi("$basePath/$hmppsId/cell-location")
.andExpect(status().isOk)
.andExpect(
content().json(
Expand Down

0 comments on commit 7813e3b

Please sign in to comment.