Reformat code using Eclipse Mars

This commit is contained in:
Phillip Webb
2015-10-07 23:37:10 -07:00
parent e473364e4e
commit c9fb9916b8
408 changed files with 2831 additions and 2652 deletions

View File

@@ -46,8 +46,8 @@ public class SampleHypermediaApplicationHomePageTests {
@Test
public void home() {
String response = new TestRestTemplate().getForObject("http://localhost:"
+ this.port, String.class);
String response = new TestRestTemplate()
.getForObject("http://localhost:" + this.port, String.class);
assertTrue("Wrong body: " + response, response.contains("404"));
}
@@ -56,8 +56,9 @@ public class SampleHypermediaApplicationHomePageTests {
HttpHeaders headers = new HttpHeaders();
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 + "/actuator")), String.class);
new RequestEntity<Void>(headers, HttpMethod.GET,
new URI("http://localhost:" + this.port + "/actuator")),
String.class);
assertTrue("Wrong body: " + response, response.getBody().contains("\"_links\":"));
}
@@ -66,8 +67,9 @@ public class SampleHypermediaApplicationHomePageTests {
HttpHeaders headers = new HttpHeaders();
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 + "/actuator/")), String.class);
new RequestEntity<Void>(headers, HttpMethod.GET,
new URI("http://localhost:" + this.port + "/actuator/")),
String.class);
assertTrue("Wrong body: " + response, response.getBody().contains("HAL Browser"));
}