public enum TestResult extends java.lang.Enum<TestResult>
Enum Constant and Description |
---|
COMPROMISED
Test failures due to external events or systems that compromise the validity of the test.
|
ERROR
Test failure, due to some other exception.
|
FAILURE
Test failure, due to an assertion error
For a test case, this means one of the tests in the test case failed.
|
IGNORED
The test or test case was deliberately ignored.
|
PENDING
A pending test is one that has been specified but not yet implemented.
|
SKIPPED
The test step was not executed because a previous step in this test case failed.
|
SUCCESS
The test or test case ran as expected.
|
UNDEFINED
Test result not known yet.
|
Modifier and Type | Method and Description |
---|---|
boolean |
executedResultsCount() |
static boolean |
existsWithName(java.lang.String expectedResult) |
int |
getPriority() |
boolean |
isMoreSevereThan(TestResult otherResult) |
boolean |
overrides(TestResult result) |
static TestResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TestResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TestResult COMPROMISED
public static final TestResult ERROR
public static final TestResult FAILURE
public static final TestResult SKIPPED
public static final TestResult IGNORED
public static final TestResult PENDING
public static final TestResult SUCCESS
public static final TestResult UNDEFINED
public static TestResult[] values()
for (TestResult c : TestResult.values()) System.out.println(c);
public static TestResult valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getPriority()
public boolean overrides(TestResult result)
public boolean isMoreSevereThan(TestResult otherResult)
public static boolean existsWithName(java.lang.String expectedResult)
public boolean executedResultsCount()