- All Implemented Interfaces:
Serializable,Comparable<TestResult>,java.lang.constant.Constable
Acceptance test results.
Records the possible outcomes of tests within an acceptance test case
and of the overall acceptance test case itself.
- Author:
- johnsmart
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTest is skipped due to a failing assumptionTest failures due to external events or systems that compromise the validity of the test.Test failure, due to some other exception.Test failure, due to an assertion error For a test case, this means one of the tests in the test case failed.The test or test case was deliberately ignored.A pending test is one that has been specified but not yet implemented.The test step was not executed because a previous step in this test case failed.The test or test case ran as expected.Test result not known yet.Either failure, error or compromised - internal use only -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic booleanexistsWithName(String expectedResult) expanded()getLabel()intbooleanisAtLeast(TestResult minimumTestResult) booleanbooleanisLessSevereThan(TestResult otherResult) booleanisMoreSevereThan(TestResult otherResult) booleanbooleanoverrides(TestResult result) static TestResultReturns 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.
-
Enum Constant Details
-
UNDEFINED
Test result not known yet. -
SUCCESS
The test or test case ran as expected. -
PENDING
A pending test is one that has been specified but not yet implemented. In a JUnit test case, you can use the (Thucydides) @Pending annotation to mark this. A pending test case is a test case that has at least one pending test. -
IGNORED
The test or test case was deliberately ignored. Tests can be ignored via the @Ignore annotation in JUnit, for example. Ignored tests are not considered the same as pending tests: a pending test is one that has been specified, but the corresponding code is yet to be implemented, whereas an ignored test can be a temporarily-deactivated test (during refactoring, for example). -
SKIPPED
The test step was not executed because a previous step in this test case failed. A whole test case can be skipped using tags or annotations to indicate that it is currently "work-in-progress" -
ABORTED
Test is skipped due to a failing assumption -
FAILURE
Test failure, due to an assertion error For a test case, this means one of the tests in the test case failed. -
ERROR
Test failure, due to some other exception. -
COMPROMISED
Test failures due to external events or systems that compromise the validity of the test. -
UNSUCCESSFUL
Either failure, error or compromised - internal use only
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getPriority
public int getPriority() -
overrides
-
isMoreSevereThan
-
isLessSevereThan
-
getLabel
-
existsWithName
-
isAtLeast
-
executedResultsCount
public boolean executedResultsCount() -
getAdjective
-
isUnsuccessful
public boolean isUnsuccessful() -
isEqualTo
-
expanded
-