public abstract class DisposableFileSupport<F extends DisposableFileSupport<F>> extends AbstractModuleFixture<F> implements Disposable
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
file |
label| Modifier | Constructor and Description |
|---|---|
protected |
DisposableFileSupport() |
protected |
DisposableFileSupport(java.io.File where) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Free up resources that this fixture may have created.
|
static java.io.File |
makeTempDir()
Utility method to create an empty directory.
|
static boolean |
waitFor(java.io.File file,
int timeout)
Wait for a file to appear.
|
label, toDSL, toStringprotected DisposableFileSupport()
protected DisposableFileSupport(java.io.File where)
public void cleanup()
Disposablecleanup in interface Disposablepublic static java.io.File makeTempDir()
public static boolean waitFor(java.io.File file,
int timeout)
file - the file to look fortimeout - how long to wait until giving up, in ms