Class 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 Detail

      • FakeHealthCheck

        public FakeHealthCheck()
    • Method Detail

      • 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)