Update Hypermedia samples following /hal and /links being combined

See gh-3696
This commit is contained in:
Andy Wilkinson
2015-08-10 14:20:19 +01:00
parent 04b1de2d1d
commit 25709385e6
6 changed files with 7 additions and 179 deletions

View File

@@ -57,7 +57,7 @@ public class SampleHypermediaApplicationHomePageTests {
headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));
ResponseEntity<String> response = new TestRestTemplate().exchange(
new RequestEntity<Void>(headers, HttpMethod.GET, new URI(
"http://localhost:" + this.port + "/links")), String.class);
"http://localhost:" + this.port + "/actuator")), String.class);
assertTrue("Wrong body: " + response, response.getBody().contains("\"_links\":"));
}
@@ -67,7 +67,7 @@ public class SampleHypermediaApplicationHomePageTests {
headers.setAccept(Arrays.asList(MediaType.TEXT_HTML));
ResponseEntity<String> response = new TestRestTemplate().exchange(
new RequestEntity<Void>(headers, HttpMethod.GET, new URI(
"http://localhost:" + this.port + "/hal/")), String.class);
"http://localhost:" + this.port + "/actuator/")), String.class);
assertTrue("Wrong body: " + response, response.getBody().contains("HAL Browser"));
}