Skip to content

Commit 27f3c8c

Browse files
authoredMar 13, 2025
remove mock (#753)
1 parent f475dba commit 27f3c8c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed
 

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

-10
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ import org.springframework.test.web.servlet.MockMvc
1717
import org.springframework.web.reactive.function.client.WebClientResponseException
1818
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.helpers.IntegrationAPIMockMvc
1919
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.hmpps.Adjudication
20-
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.hmpps.Identifiers
2120
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.hmpps.IncidentDetailsDto
22-
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.hmpps.Person
2321
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.hmpps.Response
2422
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.hmpps.UpstreamApi
2523
import uk.gov.justice.digital.hmpps.hmppsintegrationapi.models.hmpps.UpstreamApiError
@@ -40,7 +38,6 @@ internal class AdjudicationsControllerTest(
4038
val path = "/v1/persons/$hmppsId/reported-adjudications"
4139
val mockMvc = IntegrationAPIMockMvc(springMockMvc)
4240
val filters = null
43-
val person = Person(firstName = "Qui-gon", lastName = "Jin", identifiers = Identifiers(nomisNumber = hmppsId))
4441

4542
describe("GET $path") {
4643
beforeTest {
@@ -60,13 +57,6 @@ internal class AdjudicationsControllerTest(
6057
),
6158
),
6259
)
63-
64-
whenever(getPersonService.getPersonWithPrisonFilter(hmppsId = hmppsId, filters = filters)).thenReturn(
65-
Response(
66-
data = person,
67-
errors = emptyList(),
68-
),
69-
)
7060
}
7161

7262
it("throws exception when no person found") {

0 commit comments

Comments
 (0)