@Test public void testRestServerState() { Assert.assertEquals("Health check Uri mismatch ", healthCheckUri, serverState.getHealthCheckUri()); Assert.assertFalse("Service should be down by default ", serverState.isServiceUp()); serverState.markServiceUp(); Assert.assertTrue("Service is expected to be up ", serverState.isServiceUp()); serverState.markServiceDown(); Assert.assertFalse("Service is expected to be down ", serverState.isServiceUp()); }
public RestServerState(String healthCheckUri) { this.healthCheckUri = healthCheckUri; }
RestServerState { public RestServerState(String healthCheckUri) { this.healthCheckUri = healthCheckUri; } }
RestServerState { public RestServerState(String healthCheckUri) { this.healthCheckUri = healthCheckUri; } RestServerState(String healthCheckUri); }
RestServerState { public RestServerState(String healthCheckUri) { this.healthCheckUri = healthCheckUri; } RestServerState(String healthCheckUri); String getHealthCheckUri(); void markServiceUp(); boolean isServiceUp(); void markServiceDown(); }
RestServerState { public RestServerState(String healthCheckUri) { this.healthCheckUri = healthCheckUri; } RestServerState(String healthCheckUri); String getHealthCheckUri(); void markServiceUp(); boolean isServiceUp(); void markServiceDown();  }