Package org.testframe.engine
Enum TestResultStatus
- All Implemented Interfaces:
Serializable
,Comparable<TestResultStatus>
,java.lang.constant.Constable
Enumerates the four possible outcomes of running a test: it passed, it
failed, it was skipped or it caused an error. Tests are annotated with the
annotation
Test
.- Since:
- 1.0
- Author:
- Alonso del Arte
-
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 TestResultStatus
Returns the enum constant of this type with the specified name.static TestResultStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PASSED
Indicates the test passed. Generally associated with the color green. -
SKIPPED
-
ERROR
Indicates the test caused an unexpected error or exception. Generally associated with the color red. There is some difference of opinion as to whether or not a test that caused an unforeseen error or exception failed or not. In my opinion, if a test caused an unforeseen error or exception, it's neither a pass nor a failure, but an interruption of the test-driven development process that needs to be addressed before getting back to the normal test-driven development (TDD) cycle. -
FAILED
Indicates the test failed. Generally associated with the color yellow. The developer should check that the test failed for the expected reason.
-
-
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
-