Class TempDirectory.CloseablePath
java.lang.Object
org.junit.jupiter.engine.extension.TempDirectory.CloseablePath
- All Implemented Interfaces:
ExtensionContext.Store.CloseableResource
- Enclosing class:
- TempDirectory
private static class TempDirectory.CloseablePath
extends Object
implements ExtensionContext.Store.CloseableResource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close underlying resources.private IOException
private SortedMap<Path,
IOException> (package private) Path
get()
private Path
relativizeSafely
(Path path) private void
tryToDeleteOnExit
(Path path)
-
Field Details
-
dir
-
-
Constructor Details
-
CloseablePath
CloseablePath(Path dir)
-
-
Method Details
-
get
Path get() -
close
Description copied from interface:ExtensionContext.Store.CloseableResource
Close underlying resources.- Specified by:
close
in interfaceExtensionContext.Store.CloseableResource
- Throws:
IOException
-
deleteAllFilesAndDirectories
- Throws:
IOException
-
createIOExceptionWithAttachedFailures
-
tryToDeleteOnExit
-
relativizeSafely
-