Enum Class Fault

java.lang.Object
java.lang.Enum<Fault>
com.github.tomakehurst.wiremock.http.Fault
All Implemented Interfaces:
Serializable, Comparable<Fault>, Constable

public enum Fault extends Enum<Fault>
  • Enum Constant Details

    • CONNECTION_RESET_BY_PEER

      public static final Fault CONNECTION_RESET_BY_PEER
    • EMPTY_RESPONSE

      public static final Fault EMPTY_RESPONSE
    • MALFORMED_RESPONSE_CHUNK

      public static final Fault MALFORMED_RESPONSE_CHUNK
    • RANDOM_DATA_THEN_CLOSE

      public static final Fault RANDOM_DATA_THEN_CLOSE
  • Method Details

    • values

      public static Fault[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Fault valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • apply

      public abstract void apply(FaultInjector faultInjector)