@Test public void StoragePhaseYieldsUnhealthy() { when(lifecycleManager.getCurrentPhase()).thenReturn(Phase.STORAGE); LifecyclePhaseHealthCheck phaseHealthCheck = new LifecyclePhaseHealthCheck(lifecycleManager); assertThat(phaseHealthCheck.check().isHealthy(), is(false)); }
@Override protected Result check() { return finalPhase == lifecycleManager.getCurrentPhase() ? Result.healthy() : Result.unhealthy(unhealthyMsg()); }
LifecyclePhaseHealthCheck extends HealthCheckComponentSupport { @Override protected Result check() { return finalPhase == lifecycleManager.getCurrentPhase() ? Result.healthy() : Result.unhealthy(unhealthyMsg()); } }
LifecyclePhaseHealthCheck extends HealthCheckComponentSupport { @Override protected Result check() { return finalPhase == lifecycleManager.getCurrentPhase() ? Result.healthy() : Result.unhealthy(unhealthyMsg()); } @Inject  LifecyclePhaseHealthCheck(final ManagedLifecycleManager lifecycleManager); }
LifecyclePhaseHealthCheck extends HealthCheckComponentSupport { @Override protected Result check() { return finalPhase == lifecycleManager.getCurrentPhase() ? Result.healthy() : Result.unhealthy(unhealthyMsg()); } @Inject  LifecyclePhaseHealthCheck(final ManagedLifecycleManager lifecycleManager);  }
LifecyclePhaseHealthCheck extends HealthCheckComponentSupport { @Override protected Result check() { return finalPhase == lifecycleManager.getCurrentPhase() ? Result.healthy() : Result.unhealthy(unhealthyMsg()); } @Inject  LifecyclePhaseHealthCheck(final ManagedLifecycleManager lifecycleManager);   }