public enum TestResult extends Enum<TestResult>
| Enum Constant and Description |
|---|
ABORTED
Test is skipped due to a failing assumption
|
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.
|
UNSUCCESSFUL
Either failure, error or compromised - internal use only
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
executedResultsCount() |
static boolean |
existsWithName(String expectedResult) |
Set<TestResult> |
expanded() |
String |
getAdjective() |
String |
getLabel() |
int |
getPriority() |
boolean |
isAtLeast(TestResult minimumTestResult) |
boolean |
isEqualTo(String name) |
boolean |
isLessSevereThan(TestResult otherResult) |
boolean |
isMoreSevereThan(TestResult otherResult) |
boolean |
isUnsuccessful() |
boolean |
overrides(TestResult result) |
static TestResult |
valueOf(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 UNSUCCESSFUL
public static final TestResult COMPROMISED
public static final TestResult ERROR
public static final TestResult FAILURE
public static final TestResult ABORTED
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(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 int getPriority()
public boolean overrides(TestResult result)
public boolean isMoreSevereThan(TestResult otherResult)
public boolean isLessSevereThan(TestResult otherResult)
public String getLabel()
public static boolean existsWithName(String expectedResult)
public boolean isAtLeast(TestResult minimumTestResult)
public boolean executedResultsCount()
public String getAdjective()
public boolean isUnsuccessful()
public boolean isEqualTo(String name)
public Set<TestResult> expanded()
Copyright © 2023. All rights reserved.