Format code

This commit is contained in:
Phillip Webb
2018-05-25 21:47:22 -07:00
parent e544922dd7
commit 9fd3b9103a
10 changed files with 26 additions and 24 deletions

View File

@@ -89,8 +89,8 @@ public class ManagementPortAndPathSampleActuatorApplicationTests {
String unknownProperty = "test-does-not-exist";
assertThat(this.environment.containsProperty(unknownProperty)).isFalse();
ResponseEntity<String> entity = new TestRestTemplate()
.withBasicAuth("user", getPassword()).getForEntity(
"http://localhost:" + this.managementPort + "/admin/env/" + unknownProperty,
.withBasicAuth("user", getPassword()).getForEntity("http://localhost:"
+ this.managementPort + "/admin/env/" + unknownProperty,
String.class);
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.NOT_FOUND);
}