Interface TempDirDeletionStrategy

All Known Implementing Classes:
TempDirDeletionStrategy.IgnoreFailures, TempDirDeletionStrategy.Standard

@API(status=EXPERIMENTAL, since="6.1") public interface TempDirDeletionStrategy
TempDirDeletionStrategy defines the SPI for deleting temporary directories programmatically.

A deletion strategy controls how a temporary directory is cleaned up when the end of its scope is reached.

Implementations must provide a no-args constructor.

A TempDirDeletionStrategy can be configured globally for the entire test suite via the "junit.jupiter.tempdir.deletion.strategy.default" configuration parameter (see the User Guide for details) or locally for a test class field or method parameter via the @TempDir annotation.

Since:
6.1
See Also: