Enum Class DuplicateTestPolicy
- All Implemented Interfaces:
Serializable,Comparable<DuplicateTestPolicy>,Constable
How to show a test that was executed more than once in a single build, for instance by a retry mechanism or
by parameterized fixtures whose cases share a class and name.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe test failed if any of its executions failed.The test passed if any of its executions passed, as when failing tests are retried until they pass. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DuplicateTestPolicyReturns the enum constant of this class with the specified name.static DuplicateTestPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAILED_IF_ANY_FAILED
The test failed if any of its executions failed. -
PASSED_IF_ANY_PASSED
The test passed if any of its executions passed, as when failing tests are retried until they pass.
-
-
Field Details
-
DEFAULT
-
-
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
-
getDisplayName
-
prefers
- Returns:
- whether an execution with status
candidateshould represent the test rather than one with statuscurrent; executions with the same status keep the current one
-