Package spock.lang
Enum TempDir.CleanupMode
- All Implemented Interfaces:
- Serializable,- Comparable<TempDir.CleanupMode>,- java.lang.constant.Constable
- Enclosing class:
- TempDir
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionAlways cleanup the directory after the test.Use the default cleanup mode, configured viaTempDir.TEMP_DIR_CLEANUP_PROPERTYorTempDirConfiguration.cleanup.Never cleanup the directory after the test.Cleanup the directory only if the test has succeeded.
- 
Method SummaryModifier and TypeMethodDescriptionstatic TempDir.CleanupModeReturns 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- 
DEFAULTUse the default cleanup mode, configured viaTempDir.TEMP_DIR_CLEANUP_PROPERTYorTempDirConfiguration.cleanup.
- 
ALWAYSAlways cleanup the directory after the test.
- 
ON_SUCCESSCleanup the directory only if the test has succeeded.
- 
NEVERNever cleanup the directory after the test.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-