Package org.junit.jupiter.api.io
@NullMarked
package org.junit.jupiter.api.io
IO-related support in JUnit Jupiter.
-
ClassDescriptionEnumeration of cleanup modes for
@TempDir.TempDirDeletionStrategydefines the SPI for deleting temporary directories programmatically.Exception thrown when one or more paths in a temporary directory could not be deleted by aTempDirDeletionStrategy.Represents a single failure that occurred while attempting to delete a path during aTempDirDeletionStrategy.delete(Path, AnnotatedElementContext, ExtensionContext)operation.Represents the result of aTempDirDeletionStrategy.delete(Path, AnnotatedElementContext, ExtensionContext)operation, including any paths that could not be deleted.Builder forTempDirDeletionStrategy.DeletionResult.ATempDirDeletionStrategythat delegates toTempDirDeletionStrategy.Standardbut suppresses deletion failures by logging a warning instead of propagating them.StandardTempDirDeletionStrategyimplementation that recursively deletes all files and directories within the temporary directory.TempDirFactorydefines the SPI for creating temporary directories programmatically.StandardTempDirFactoryimplementation which delegates toFiles.createTempDirectory(Path, String, FileAttribute...)using"junit-"as prefix.