Enum Class EventTest.Result
- All Implemented Interfaces:
Serializable
,Comparable<EventTest.Result>
,Constable
- Enclosing class:
- EventTest
Encodes information about how the test progressed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
errored()
boolean
failed()
boolean
passed()
static EventTest.Result
Returns the enum constant of this class with the specified name.static EventTest.Result[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PASS
-
FAIL
-
TESTFAIL
-
NOT_PROCESSED
-
-
Constructor Details
-
Result
private Result()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
passed
public boolean passed()- Returns:
- whether the test passed.
-
failed
public boolean failed()- Returns:
- whether the test or the code being tested failed.
-
errored
public boolean errored()- Returns:
- whether the test encountered an error
-