Skip to content

Commit

Permalink
MAN-28 - update api return spec
Browse files Browse the repository at this point in the history
  • Loading branch information
achimber-moj committed Oct 18, 2024
1 parent d71af94 commit 88e991c
Show file tree
Hide file tree
Showing 2 changed files with 3 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 org.springframework.test.web.servlet.result.MockMvcResultHandlers.print

@AutoConfigureMockMvc
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
Expand Down Expand Up @@ -67,6 +68,7 @@ class LicenceConditionIntegrationTest {
MockMvcRequestBuilders.get("/sentence/${PersonGenerator.OVERVIEW.crn}/licence-condition/${LicenceConditionGenerator.LC_WITH_NOTES.id}/note/0")
.withToken()
)
.andDo(print())
.andExpect(MockMvcResultMatchers.status().isOk)
.andReturn().response.contentAsJson<LicenceConditionNoteDetail>()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ data class LicenceConditionNote(

data class LicenceConditionNoteDetail(
val personSummary: PersonSummary,
val note: LicenceConditionNote? = null
val licenceConditionNote: LicenceConditionNote? = null
)

0 comments on commit 88e991c

Please sign in to comment.