@Test public void testHealth() { String status = IntegrationStatus.ACTIVE.name(); IntegrationHealth health = new IntegrationHealth(); health.setStatus(status); doReturn(health).when(integration).getHealthStatus(); Health expected = Health.status(status).withDetail("detail", health).build(); assertEquals(expected, adapter.health()); }
@Override public Health health() { IntegrationHealth healthStatus = integration.getHealthStatus(); return Health.status(healthStatus.getStatus()).withDetail(DETAIL, healthStatus).build(); }
IntegrationHealthIndicatorAdapter implements HealthIndicator { @Override public Health health() { IntegrationHealth healthStatus = integration.getHealthStatus(); return Health.status(healthStatus.getStatus()).withDetail(DETAIL, healthStatus).build(); } }
IntegrationHealthIndicatorAdapter implements HealthIndicator { @Override public Health health() { IntegrationHealth healthStatus = integration.getHealthStatus(); return Health.status(healthStatus.getStatus()).withDetail(DETAIL, healthStatus).build(); } IntegrationHealthIndicatorAdapter(Integration integration); }
IntegrationHealthIndicatorAdapter implements HealthIndicator { @Override public Health health() { IntegrationHealth healthStatus = integration.getHealthStatus(); return Health.status(healthStatus.getStatus()).withDetail(DETAIL, healthStatus).build(); } IntegrationHealthIndicatorAdapter(Integration integration); @Override Health health(); }
IntegrationHealthIndicatorAdapter implements HealthIndicator { @Override public Health health() { IntegrationHealth healthStatus = integration.getHealthStatus(); return Health.status(healthStatus.getStatus()).withDetail(DETAIL, healthStatus).build(); } IntegrationHealthIndicatorAdapter(Integration integration); @Override Health health();  }