Package dev.galasa.framework
Enum Class TestRunLifecycleStatus
- All Implemented Interfaces:
Serializable
,Comparable<TestRunLifecycleStatus>
,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TestRunLifecycleStatus
getFromString
(String statusAsString) Looks up the enum from the string which describes the enum.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()
static TestRunLifecycleStatus
Returns the enum constant of this class with the specified name.static TestRunLifecycleStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FINISHED
-
BUILDING
-
GENERATING
-
RUNNING
-
RUNDONE
-
UP
-
STARTED
-
PROVSTART
-
ENDING
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getFromString
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
Does the input string represent one of the enumerated values ? An insensitive string comparison is performed against the enum.toString() -
toString
- Overrides:
toString
in classEnum<TestRunLifecycleStatus>
-
getAllAsStringList
- Returns:
- A list of possible status names, as strings
-