Add missing tests

This commit is contained in:
Christian Dupuis 2014-05-08 16:58:52 +02:00
parent dfd6f91aef
commit c38f9bcdfa
5 changed files with 5 additions and 5 deletions

View File

@ -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());
}
}

View File

@ -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);
}
}

View File

@ -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());
}
}

View File

@ -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

View File

@ -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