Module org.junitpioneer
Class TemporaryDirectory.TemporaryDirectoryResource
- java.lang.Object
-
- org.junitpioneer.jupiter.resource.TemporaryDirectory.TemporaryDirectoryResource
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource,Resource<java.nio.file.Path>
- Enclosing class:
- TemporaryDirectory
private static final class TemporaryDirectory.TemporaryDirectoryResource extends java.lang.Object implements Resource<java.nio.file.Path>
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.file.PathtempDir
-
Constructor Summary
Constructors Constructor Description TemporaryDirectoryResource(java.nio.file.Path tempDir)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the resource.private static voiddeleteRecursively(java.nio.file.Path tempDir)java.nio.file.Pathget()Returns the contents of the resource.
-
-
-
Method Detail
-
get
public java.nio.file.Path get()
Description copied from interface:ResourceReturns the contents of the resource.
-
close
public void close() throws java.lang.ExceptionDescription copied from interface:ResourceCloses the resource.
-
deleteRecursively
private static void deleteRecursively(java.nio.file.Path tempDir) throws java.io.IOException- Throws:
java.io.IOException
-
-