fix code format issue

This commit is contained in:
Christian Beyer 2020-10-29 09:15:43 +01:00
parent 8cd5fcc467
commit 124eeb4f6c

View file

@ -14,16 +14,17 @@ import static org.assertj.core.api.Assertions.assertThat;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class OwnerControllerITCase { public class OwnerControllerITCase {
@Autowired @Autowired
private TestRestTemplate restTemplate; 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("<td><b>George Franklin</b></td>");
}
/**
* 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("<td><b>George Franklin</b></td>");
}
} }