public final class TestNameTestDirectoryProvider
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.file.Path |
root |
| Constructor and Description |
|---|
TestNameTestDirectoryProvider(java.lang.Class<?> klass) |
TestNameTestDirectoryProvider(java.nio.file.Path root,
java.lang.Class<?> klass) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
close() |
java.nio.file.Path |
createDirectory(java.lang.Object... path) |
java.nio.file.Path |
createFile(java.lang.Object... path) |
java.nio.file.Path |
file(java.lang.Object... path) |
java.nio.file.Path |
getRoot() |
java.nio.file.Path |
getTestDirectory()
The directory to use, guaranteed to exist.
|
protected void |
init(java.lang.String methodName) |
boolean |
isCleanup() |
static TestNameTestDirectoryProvider |
newInstance(java.lang.Class<?> testClass) |
static TestNameTestDirectoryProvider |
newInstance(java.lang.String methodName,
java.lang.Object target) |
void |
suppressCleanup() |
void |
suppressCleanupErrors() |
public TestNameTestDirectoryProvider(java.lang.Class<?> klass)
public TestNameTestDirectoryProvider(java.nio.file.Path root,
java.lang.Class<?> klass)
public static TestNameTestDirectoryProvider newInstance(java.lang.Class<?> testClass)
public static TestNameTestDirectoryProvider newInstance(java.lang.String methodName, java.lang.Object target)
public void suppressCleanup()
suppressCleanup in interface TestDirectoryProviderpublic void suppressCleanupErrors()
suppressCleanupErrors in interface TestDirectoryProviderpublic boolean isCleanup()
public void cleanup()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOExceptionprotected void init(java.lang.String methodName)
public java.nio.file.Path getTestDirectory()
TestDirectoryProvidergetTestDirectory in interface TestDirectoryProviderpublic java.nio.file.Path file(java.lang.Object... path)
public java.nio.file.Path createFile(java.lang.Object... path)
public java.nio.file.Path createDirectory(java.lang.Object... path)
public java.nio.file.Path getRoot()