Enum Class Timeout.TimeoutMode
- All Implemented Interfaces:
Serializable, Comparable<Timeout.TimeoutMode>, Constable
- Enclosing class:
Timeout
@API(status=STABLE,
since="6.2")
public static enum Timeout.TimeoutMode
extends Enum<Timeout.TimeoutMode>
TimeoutMode is used to define whether timeouts should be applied to tests.- Since:
- 6.2
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTimeouts are not applied to tests.Timeouts are not applied to tests when the JVM is started in debug mode.Timeouts are applied to tests. -
Method Summary
Modifier and TypeMethodDescriptionstatic Timeout.TimeoutModeReturns the enum constant of this class with the specified name.static Timeout.TimeoutMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENABLED
Timeouts are applied to tests. -
DISABLED
Timeouts are not applied to tests. -
DISABLED_ON_DEBUG
Timeouts are not applied to tests when the JVM is started in debug mode.
-
-
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
-