mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 01:05:48 +00:00
oops ;)
This commit is contained in:
parent
cfbad36d09
commit
fdd7c40391
1 changed files with 1 additions and 2 deletions
|
@ -17,7 +17,6 @@
|
|||
package org.springframework.samples.petclinic.system;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -84,7 +83,7 @@ class CrashControllerIntegrationTests {
|
|||
new HttpEntity<>(headers), String.class);
|
||||
assertThat(resp).isNotNull();
|
||||
assertThat(resp.getStatusCode().is5xxServerError());
|
||||
assertNotNull(resp.getBody());
|
||||
assertThat(resp.getBody()).isNotNull();
|
||||
// html:
|
||||
assertThat(resp.getBody()).containsSubsequence("<body>", "<h2>Something happened...</h2>",
|
||||
"<p>Expected: controller used to showcase what happens when an exception is thrown</p>", "</body>");
|
||||
|
|
Loading…
Reference in a new issue