diff --git a/src/test/java/org/springframework/samples/petclinic/owner/OwnerControllerITCase.java b/src/test/java/org/springframework/samples/petclinic/owner/OwnerControllerITCase.java index 3ffd69ce0..c6e4f8e7d 100644 --- a/src/test/java/org/springframework/samples/petclinic/owner/OwnerControllerITCase.java +++ b/src/test/java/org/springframework/samples/petclinic/owner/OwnerControllerITCase.java @@ -14,16 +14,17 @@ import static org.assertj.core.api.Assertions.assertThat; @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) public class OwnerControllerITCase { - @Autowired - private TestRestTemplate restTemplate; + @Autowired + private TestRestTemplate restTemplate; + + /** + * Note: This test exists only for the purpose of serving as an example! Please write + * tests more sensible than this for your own applications. + */ + @Test + public void assertsUser1IsGeorgeFranklin() { + String body = this.restTemplate.getForObject("/owners/1", String.class); + assertThat(body).contains("