Class TempDirDeletionStrategy.Standard

java.lang.Object
org.junit.jupiter.api.io.TempDirDeletionStrategy.Standard
All Implemented Interfaces:
TempDirDeletionStrategy
Enclosing interface:
TempDirDeletionStrategy

public static final class TempDirDeletionStrategy.Standard extends Object implements TempDirDeletionStrategy
Standard TempDirDeletionStrategy implementation that recursively deletes all files and directories within the temporary directory.

Symbolic and other types of links, such as junctions on Windows, are not followed. A warning is logged when deleting a link that targets a location outside the temporary directory.

If a file or directory cannot be deleted, its permissions are reset and deletion is attempted again. If deletion still fails, the path is scheduled for deletion on JVM exit via File.deleteOnExit(), if it belongs to the default file system.

Since:
6.1