Enum Class TestRunLifecycleStatus

java.lang.Object
java.lang.Enum<TestRunLifecycleStatus>
dev.galasa.framework.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.
Since:
0.30.0
  • 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.
      Returns:
      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.)
      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
    • 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()
      Overrides:
      toString in class Enum<TestRunLifecycleStatus>
    • getAllAsStringList

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