Skip to content

Instantly share code, notes, and snippets.

@AlexeySoshin
Created October 22, 2017 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexeySoshin/b484c2d5dbad8f8e3e8b18a01a029f70 to your computer and use it in GitHub Desktop.
Save AlexeySoshin/b484c2d5dbad8f8e3e8b18a01a029f70 to your computer and use it in GitHub Desktop.
@Test
fun shouldReturnNotFoundIfReceivedWrongId() {
val response = restTemplate.getForEntity("/${UUID.randomUUID()}", Any::class.java)
assertThat(response.statusCode).isEqualTo(HttpStatus.NOT_FOUND)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment