@Test public void componentHealth() { ComponentHealth health = new ComponentHealth("myComponent"); health.setHealthy(true); health.setDetailedMessage("message"); assertThat(health.getComponentName(), is("myComponent")); assertThat(health.isHealthy(), is(TRUE)); assertThat(health.getDetailedMessage(), is("message")); }
public ComponentHealth(String componentName) { this.componentName = componentName; }
ComponentHealth { public ComponentHealth(String componentName) { this.componentName = componentName; } }
ComponentHealth { public ComponentHealth(String componentName) { this.componentName = componentName; } ComponentHealth(String componentName); }
ComponentHealth { public ComponentHealth(String componentName) { this.componentName = componentName; } ComponentHealth(String componentName); String getComponentName(); boolean isHealthy(); void setHealthy(boolean healthy); String getDetailedMessage(); void setDetailedMessage(String detailedMessage); }
ComponentHealth { public ComponentHealth(String componentName) { this.componentName = componentName; } ComponentHealth(String componentName); String getComponentName(); boolean isHealthy(); void setHealthy(boolean healthy); String getDetailedMessage(); void setDetailedMessage(String detailedMessage);  }