mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Fix formatting
This commit is contained in:
parent
c3e47541ad
commit
f8e5b9ba47
@ -59,8 +59,7 @@ public class ManagementPortAndPathSampleActuatorApplicationTests {
|
|||||||
@Test
|
@Test
|
||||||
public void actuatorPathOnMainPortShouldNotMatch() {
|
public void actuatorPathOnMainPortShouldNotMatch() {
|
||||||
ResponseEntity<String> entity = new TestRestTemplate().getForEntity(
|
ResponseEntity<String> entity = new TestRestTemplate().getForEntity(
|
||||||
"http://localhost:" + this.port + "/actuator/health",
|
"http://localhost:" + this.port + "/actuator/health", String.class);
|
||||||
String.class);
|
|
||||||
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.UNAUTHORIZED);
|
assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.UNAUTHORIZED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user