Enum Class TestRunLifecycleStatus

All Implemented Interfaces:
Serializable, Comparable<TestRunLifecycleStatus>, Constable

public enum TestRunLifecycleStatus extends Enum<TestRunLifecycleStatus>
Represents a possible state of a test run. Over the course of a test run lifespan, the state will transition between these possible values.
  • Enum Constant Details

  • Method Details

    • values

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

      public static TestRunLifecycleStatus 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFromString

      public static TestRunLifecycleStatus getFromString(String statusAsString)
      Looks up the enum from the string which describes the enum. The string matches the enum value if the enum.toString() matches it, ignoring case.
    • isStatusValid

      public static boolean isStatusValid(String statusAsString)
      Does the input string represent one of the enumerated values ? An insensitive string comparison is performed against the enum.toString()
    • toString

      public String toString()
      toString in class Enum<TestRunLifecycleStatus>
    • getAllAsStringList

      public static List<String> getAllAsStringList()
      A list of possible status names, as strings