Add database query defaults in SimpleHealthManager

This commit is contained in:
Dave Syer
2013-12-23 13:55:23 +00:00
parent 063403a043
commit 8e2a6eec2a
2 changed files with 35 additions and 12 deletions

View File

@@ -51,7 +51,6 @@ public class SimpleHealthIndicatorTests {
@Test
public void database() {
this.indicator.setDataSource(this.dataSource);
this.indicator.setQuery("SELECT count(*) FROM INFORMATION_SCHEMA.SYSTEM_TABLES");
Map<String, Object> health = this.indicator.health();
assertNotNull(health.get("database"));
assertNotNull(health.get("hello"));