Skip to content

Commit

Permalink
PI-2096 update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeep Chimber <[email protected]>
  • Loading branch information
achimber-moj committed Jun 20, 2024
1 parent 096b277 commit 8ca6dd8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,12 @@ internal class ConvictionIntegrationByCrnTest {
fun `retun a list of active and inactive events for a person`() {
val crn = PersonGenerator.CURRENTLY_MANAGED.crn

val response = mockMvc
mockMvc
.perform(get("/probation-case/$crn/convictions").withToken())
.andExpect(status().is2xxSuccessful)
.andReturn().response.contentAsJson<List<Conviction>>()

assertEquals(2, response.size)
.andExpect(jsonPath("$.length()").value(2))
.andExpect(jsonPath("$[0].active").value(true))
.andExpect(jsonPath("$[1].active").value(false))
}

@Test
Expand Down

0 comments on commit 8ca6dd8

Please sign in to comment.