Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
fun getCatShouldReturnCatById() {
val allCatsResponse = restTemplate.getForEntity("/",
val id = allCatsResponse.body[0].id
val getCatResponse = restTemplate.getForEntity("/$id",
assertThat(getCatResponse.body).isEqualToComparingOnlyGivenFields(fionaTheCat, "name", "age", "weight")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.