public enum TestStatus extends Enum<TestStatus>
Enum Constant and Description |
---|
ERROR |
FAILURE |
NOT_RUN |
PASS |
RUNNING |
Modifier and Type | Method and Description |
---|---|
boolean |
isEqualOrBetter(TestStatus status) |
boolean |
isEqualOrWorse(TestStatus status) |
TestStatus |
merge(TestStatus status) |
static TestStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TestStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TestStatus NOT_RUN
public static final TestStatus PASS
public static final TestStatus ERROR
public static final TestStatus FAILURE
public static final TestStatus RUNNING
public static TestStatus[] values()
for (TestStatus c : TestStatus.values()) System.out.println(c);
public static TestStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic TestStatus merge(TestStatus status)
public boolean isEqualOrWorse(TestStatus status)
public boolean isEqualOrBetter(TestStatus status)