mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Add missing tests
This commit is contained in:
parent
dfd6f91aef
commit
c38f9bcdfa
@ -75,7 +75,7 @@ public class SampleActuatorUiApplicationPortTests {
|
||||
ResponseEntity<String> entity = new TestRestTemplate().getForEntity(
|
||||
"http://localhost:" + this.managementPort + "/health", String.class);
|
||||
assertEquals(HttpStatus.OK, entity.getStatusCode());
|
||||
assertEquals("ok", entity.getBody());
|
||||
assertEquals("{\"status\":\"ok\"}", entity.getBody());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -67,6 +67,6 @@ public class EndpointsPropertiesSampleActuatorApplicationTests {
|
||||
"http://localhost:" + this.port + "/admin/health", String.class);
|
||||
assertEquals(HttpStatus.OK, entity.getStatusCode());
|
||||
String body = entity.getBody();
|
||||
assertEquals("ok", body);
|
||||
assertEquals("{\"status\":\"ok\"}", body);
|
||||
}
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ public class ManagementAddressActuatorApplicationTests {
|
||||
"http://localhost:" + this.managementPort + "/admin/health",
|
||||
String.class);
|
||||
assertEquals(HttpStatus.OK, entity.getStatusCode());
|
||||
assertEquals("ok", entity.getBody());
|
||||
assertEquals("{\"status\":\"ok\"}", entity.getBody());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ public class ManagementPortSampleActuatorApplicationTests {
|
||||
ResponseEntity<String> entity = new TestRestTemplate().getForEntity(
|
||||
"http://localhost:" + this.managementPort + "/health", String.class);
|
||||
assertEquals(HttpStatus.OK, entity.getStatusCode());
|
||||
assertEquals("ok", entity.getBody());
|
||||
assertEquals("{\"status\":\"ok\"}", entity.getBody());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -130,7 +130,7 @@ public class SampleActuatorApplicationTests {
|
||||
ResponseEntity<String> entity = new TestRestTemplate().getForEntity(
|
||||
"http://localhost:" + this.port + "/health", String.class);
|
||||
assertEquals(HttpStatus.OK, entity.getStatusCode());
|
||||
assertEquals("ok", entity.getBody());
|
||||
assertEquals("{\"status\":\"ok\"}", entity.getBody());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user