public static enum TempDir.CleanupMode extends Enum<TempDir.CleanupMode>
Enum Constant and Description |
---|
ALWAYS
Always cleanup the directory after the test.
|
DEFAULT
Use the default cleanup mode, configured via
TempDir.TEMP_DIR_CLEANUP_PROPERTY or TempDirConfiguration.cleanup . |
NEVER
Never cleanup the directory after the test.
|
ON_SUCCESS
Cleanup the directory only if the test has succeeded.
|
Modifier and Type | Method and Description |
---|---|
static TempDir.CleanupMode |
valueOf(String name)
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.
|
public static final TempDir.CleanupMode DEFAULT
TempDir.TEMP_DIR_CLEANUP_PROPERTY
or TempDirConfiguration.cleanup
.public static final TempDir.CleanupMode ALWAYS
public static final TempDir.CleanupMode ON_SUCCESS
public static final TempDir.CleanupMode NEVER
public static TempDir.CleanupMode[] values()
for (TempDir.CleanupMode c : TempDir.CleanupMode.values()) System.out.println(c);
public static TempDir.CleanupMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null