mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
fix code format issue
This commit is contained in:
parent
8cd5fcc467
commit
124eeb4f6c
1 changed files with 12 additions and 11 deletions
|
@ -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>");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue