mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 09:49:01 +00:00
Merge branch '1.2.x'
This commit is contained in:
+2
-2
@@ -48,8 +48,8 @@ public class SampleHateoasApplicationTests {
|
||||
ResponseEntity<String> entity = new TestRestTemplate().getForEntity(
|
||||
"http://localhost:" + this.port + "/customers/1", String.class);
|
||||
assertThat(entity.getStatusCode(), equalTo(HttpStatus.OK));
|
||||
assertThat(entity.getBody(), startsWith("{\"id\":1,\"firstName\":\"Oliver\""
|
||||
+ ",\"lastName\":\"Gierke\""));
|
||||
assertThat(entity.getBody(), startsWith(
|
||||
"{\"id\":1,\"firstName\":\"Oliver\"" + ",\"lastName\":\"Gierke\""));
|
||||
assertThat(entity.getBody(), containsString("_links\":{\"self\":{\"href\""));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user