Package org.junit.jupiter.api.io
Class TempDirFactory.Standard
- java.lang.Object
-
- org.junit.jupiter.api.io.TempDirFactory.Standard
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,TempDirFactory
- Enclosing interface:
- TempDirFactory
public static class TempDirFactory.Standard extends java.lang.Object implements TempDirFactory
StandardTempDirFactory
implementation which delegates toFiles.createTempDirectory(java.nio.file.Path, java.lang.String, java.nio.file.attribute.FileAttribute<?>...)
using"junit"
as the prefix.- See Also:
Files.createTempDirectory(java.lang.String, java.nio.file.attribute.FileAttribute[])
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.junit.jupiter.api.io.TempDirFactory
TempDirFactory.Standard
-
-
Field Summary
Fields Modifier and Type Field Description static TempDirFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description Standard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.file.Path
createTempDirectory(AnnotatedElementContext elementContext, ExtensionContext extensionContext)
Create a new temporary directory.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.junit.jupiter.api.io.TempDirFactory
close
-
-
-
-
Field Detail
-
INSTANCE
public static final TempDirFactory INSTANCE
-
-
Method Detail
-
createTempDirectory
public java.nio.file.Path createTempDirectory(AnnotatedElementContext elementContext, ExtensionContext extensionContext) throws java.io.IOException
Description copied from interface:TempDirFactory
Create a new temporary directory.Depending on the implementation, the resulting
Path
may or may not be associated with thedefault FileSystem
.- Specified by:
createTempDirectory
in interfaceTempDirFactory
- Parameters:
elementContext
- the context of the field or parameter where@TempDir
is declared; nevernull
extensionContext
- the current extension context; nevernull
- Returns:
- the path to the newly created temporary directory; never
null
- Throws:
java.io.IOException
-
-