Fix IntegrationTests snippet
This commit is contained in:
@@ -298,7 +298,7 @@ class IntegrationTests(@Autowired val restTemplate: TestRestTemplate) {
|
||||
fun `Assert blog page title, content and status code`() {
|
||||
val entity = restTemplate.getForEntity<String>("/")
|
||||
assertThat(entity.statusCode).isEqualTo(HttpStatus.OK)
|
||||
assertThat(entity.body).contains("<h1>Blog</h1>", "reactor")
|
||||
assertThat(entity.body).contains("<h1>Blog</h1>")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user