Class FakeHealthCheck

java.lang.Object
com.atlassian.confluence.impl.health.AbstractHealthCheck
com.atlassian.confluence.impl.health.checks.FakeHealthCheck
All Implemented Interfaces:
HealthCheck

public class FakeHealthCheck extends AbstractHealthCheck
This fake HealthCheck allows the operator to simulate a health check failure, for example to test:
  • The Johnson infrastructure (manually or via automation), or
  • The "hide.system.error.details" flag.
Since:
6.6.0
  • Constructor Details

    • FakeHealthCheck

      public FakeHealthCheck()
  • Method Details

    • perform

      public @NonNull List<HealthCheckResult> perform(LifecyclePhase lifecyclePhase)
      Description copied from interface: HealthCheck
      Performs health check for given phase.

      If the health check passes, an empty list will be returned.

      Returns:
      a collection of HealthCheckResult
    • isApplicableFor

      public boolean isApplicableFor(LifecyclePhase phase)
      Description copied from interface: HealthCheck
      Checks if current HealthCheck is applicable for given phase
      Returns:
      true if HealthCheck is applicable for the phase
    • getAppropriateErrorTypeForPhase

      public com.atlassian.johnson.event.EventType getAppropriateErrorTypeForPhase(LifecyclePhase phase)