Class TemporaryDirectory.TemporaryDirectoryResource
java.lang.Object
org.junitpioneer.jupiter.resource.TemporaryDirectory.TemporaryDirectoryResource
- All Implemented Interfaces:
org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource, Resource<Path>
- Enclosing class:
TemporaryDirectory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the resource.private static voiddeleteRecursively(Path tempDir) get()Returns the contents of the resource.
-
Field Details
-
tempDir
-
-
Constructor Details
-
TemporaryDirectoryResource
TemporaryDirectoryResource(Path tempDir)
-
-
Method Details
-
get
-
close
Description copied from interface:ResourceCloses the resource. -
deleteRecursively
- Throws:
IOException
-