@Deprecated
public class TestFileManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
baseFilename
Deprecated.
|
private java.lang.StackTraceElement |
callerInfo
Deprecated.
|
private java.lang.Thread |
cleanupWarning
Deprecated.
|
private java.util.List<java.io.File> |
filesToDelete
Deprecated.
|
private java.lang.String |
fileSuffix
Deprecated.
|
static java.lang.String |
TEMP_DIR_PATH
Deprecated.
Temp dir from "java.io.tmpdir" property
|
private boolean |
warnAboutCleanup
Deprecated.
|
| Constructor and Description |
|---|
TestFileManager(java.lang.String baseFilename,
java.lang.String fileSuffix)
Deprecated.
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertFileContents(java.io.File dir,
java.lang.String filename,
java.lang.String contentsTest)
Deprecated.
|
void |
assertFileExistence(java.io.File dir,
java.lang.String filename,
boolean shouldExist)
Deprecated.
|
void |
cleanUp()
Deprecated.
|
java.io.File |
createFile(java.io.File dir,
java.lang.String filename,
java.lang.String contents)
Deprecated.
|
java.io.File |
createFile(java.lang.String filename,
java.lang.String content)
Deprecated.
|
java.io.File |
createTempDir()
Deprecated.
|
java.io.File |
createTempFile()
Deprecated.
|
protected void |
finalize()
Deprecated.
|
java.lang.String |
getFileContents(java.io.File file)
Deprecated.
|
private void |
initializeCleanupMonitoring()
Deprecated.
|
void |
markForDeletion(java.io.File toDelete)
Deprecated.
|
protected void |
maybeWarnAboutCleanUp()
Deprecated.
|
public static final java.lang.String TEMP_DIR_PATH
private java.util.List<java.io.File> filesToDelete
private final java.lang.String baseFilename
private final java.lang.String fileSuffix
private java.lang.StackTraceElement callerInfo
private java.lang.Thread cleanupWarning
private boolean warnAboutCleanup
public TestFileManager(java.lang.String baseFilename,
java.lang.String fileSuffix)
baseFilename - fileSuffix - private void initializeCleanupMonitoring()
protected void maybeWarnAboutCleanUp()
public void markForDeletion(java.io.File toDelete)
toDelete - public java.io.File createTempDir()
public java.io.File createTempFile()
throws java.io.IOException
java.io.IOException - if anypublic void cleanUp()
throws java.io.IOException
java.io.IOException - if anypublic void assertFileExistence(java.io.File dir,
java.lang.String filename,
boolean shouldExist)
dir - filename - shouldExist - public void assertFileContents(java.io.File dir,
java.lang.String filename,
java.lang.String contentsTest)
throws java.io.IOException
dir - filename - contentsTest - java.io.IOException - if anypublic java.io.File createFile(java.io.File dir,
java.lang.String filename,
java.lang.String contents)
throws java.io.IOException
dir - filename - contents - java.io.IOException - if anypublic java.lang.String getFileContents(java.io.File file)
throws java.io.IOException
file - java.io.IOException - if anyprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic java.io.File createFile(java.lang.String filename,
java.lang.String content)
throws java.io.IOException
filename - content - java.io.IOException - if any