public class TestNameTestDirectoryProvider
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
className |
protected java.io.File |
root |
| Constructor and Description |
|---|
TestNameTestDirectoryProvider(java.lang.Class<?> testClass) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
void |
cleanup() |
java.io.File |
createDirectory(java.lang.String... path) |
java.io.File |
createFile(java.lang.String... path) |
java.io.File |
file(java.lang.String... path) |
java.io.File |
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(org.junit.runners.model.FrameworkMethod method,
java.lang.Object target) |
void |
suppressCleanup() |
protected final java.io.File root
protected final java.lang.String className
public TestNameTestDirectoryProvider(java.lang.Class<?> testClass)
public static TestNameTestDirectoryProvider newInstance(java.lang.Class<?> testClass)
public static TestNameTestDirectoryProvider newInstance(org.junit.runners.model.FrameworkMethod method, java.lang.Object target)
public void suppressCleanup()
suppressCleanup in interface TestDirectoryProviderpublic boolean isCleanup()
public void cleanup()
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRuleprotected void init(java.lang.String methodName)
public java.io.File getTestDirectory()
TestDirectoryProvidergetTestDirectory in interface TestDirectoryProviderpublic java.io.File file(java.lang.String... path)
public java.io.File createFile(java.lang.String... path)
public java.io.File createDirectory(java.lang.String... path)