Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.containsInAnyOrder
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT
import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc
import org.springframework.test.web.servlet.MockMvc
import org.springframework.test.web.servlet.get
import uk.gov.justice.digital.hmpps.data.generator.*
Expand Down Expand Up @@ -44,7 +44,7 @@ class TierDetailsTest @Autowired constructor(
.andExpect {
status { is2xxSuccessful() }
jsonPath("$.crn") { value("A000001") }
jsonPath("$.name.forenames") { value("Test") }
jsonPath("$.name.forename") { value("Test") }
jsonPath("$.name.surname") { value("Person") }
jsonPath("$.age") { value(18) }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ data class PersonDetails(

data class Name(
val forename: String,
@Deprecated("Use forename instead", ReplaceWith("forename"))
val forenames: String = forename,
val middleName: String?,
val surname: String
)
Loading