Package spock.lang
Enum TempDir.CleanupMode
- All Implemented Interfaces:
Serializable
,Comparable<TempDir.CleanupMode>
,java.lang.constant.Constable
- Enclosing class:
- TempDir
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways cleanup the directory after the test.Use the default cleanup mode, configured viaTempDir.TEMP_DIR_CLEANUP_PROPERTY
orTempDirConfiguration.cleanup
.Never cleanup the directory after the test.Cleanup the directory only if the test has succeeded. -
Method Summary
Modifier and TypeMethodDescriptionstatic TempDir.CleanupMode
Returns the enum constant of this type with the specified name.static TempDir.CleanupMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Use the default cleanup mode, configured viaTempDir.TEMP_DIR_CLEANUP_PROPERTY
orTempDirConfiguration.cleanup
. -
ALWAYS
Always cleanup the directory after the test. -
ON_SUCCESS
Cleanup the directory only if the test has succeeded. -
NEVER
Never cleanup the directory after the test.
-
-
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
-