public static class TempDirFactory.Standard extends java.lang.Object implements TempDirFactory
TempDirFactory implementation which delegates to
Files.createTempDirectory(java.nio.file.Path, java.lang.String, java.nio.file.attribute.FileAttribute<?>...) using "junit" as the prefix.Files.createTempDirectory(java.lang.String, java.nio.file.attribute.FileAttribute[])TempDirFactory.Standard| Modifier and Type | Field and Description |
|---|---|
static TempDirFactory |
INSTANCE |
private static java.lang.String |
TEMP_DIR_PREFIX |
| Constructor and Description |
|---|
Standard() |
| Modifier and Type | Method and Description |
|---|---|
java.nio.file.Path |
createTempDirectory(AnnotatedElementContext elementContext,
ExtensionContext extensionContext)
Create a new temporary directory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic static final TempDirFactory INSTANCE
private static final java.lang.String TEMP_DIR_PREFIX
public java.nio.file.Path createTempDirectory(AnnotatedElementContext elementContext, ExtensionContext extensionContext) throws java.io.IOException
TempDirFactoryDepending on the implementation, the resulting Path may or may
not be associated with the default FileSystem.
createTempDirectory in interface TempDirFactoryelementContext - the context of the field or parameter where
@TempDir is declared; never nullextensionContext - the current extension context; never nullnulljava.io.IOException