Skip to content

Commit

Permalink
MAN-21 - update integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj committed Nov 7, 2024
1 parent 008e590 commit 403fc49
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import uk.gov.justice.digital.hmpps.service.toSummary
import uk.gov.justice.digital.hmpps.test.MockMvcExtensions.contentAsJson
import uk.gov.justice.digital.hmpps.test.MockMvcExtensions.withToken
import java.time.LocalDate
import uk.gov.justice.digital.hmpps.api.model.sentence.SentenceSummary

@AutoConfigureMockMvc
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
Expand Down Expand Up @@ -48,7 +49,10 @@ class ProbationHistoryIntegrationTest {

val expected = History(
PersonGenerator.OVERVIEW.toSummary(),
listOf(),
listOf(
SentenceSummary(1234567, "Pre-Sentence"),
SentenceSummary(7654321, "Default Sentence Type")
),
ProbationHistory(2, LocalDate.now().minusDays(7), 2, 2)
)

Expand Down

0 comments on commit 403fc49

Please sign in to comment.