Class TestFileManager
- java.lang.Object
-
- org.apache.maven.shared.tools.easymock.TestFileManager
-
@Deprecated public class TestFileManager extends java.lang.ObjectDeprecated.- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringbaseFilenameDeprecated.private java.lang.StackTraceElementcallerInfoDeprecated.private java.lang.ThreadcleanupWarningDeprecated.private java.util.List<java.io.File>filesToDeleteDeprecated.private java.lang.StringfileSuffixDeprecated.static java.lang.StringTEMP_DIR_PATHDeprecated.Temp dir from "java.io.tmpdir" propertyprivate booleanwarnAboutCleanupDeprecated.
-
Constructor Summary
Constructors Constructor Description TestFileManager(java.lang.String baseFilename, java.lang.String fileSuffix)Deprecated.Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidassertFileContents(java.io.File dir, java.lang.String filename, java.lang.String contentsTest)Deprecated.voidassertFileExistence(java.io.File dir, java.lang.String filename, boolean shouldExist)Deprecated.voidcleanUp()Deprecated.java.io.FilecreateFile(java.io.File dir, java.lang.String filename, java.lang.String contents)Deprecated.java.io.FilecreateFile(java.lang.String filename, java.lang.String content)Deprecated.java.io.FilecreateTempDir()Deprecated.java.io.FilecreateTempFile()Deprecated.protected voidfinalize()Deprecated.java.lang.StringgetFileContents(java.io.File file)Deprecated.private voidinitializeCleanupMonitoring()Deprecated.voidmarkForDeletion(java.io.File toDelete)Deprecated.protected voidmaybeWarnAboutCleanUp()Deprecated.
-
-
-
Field Detail
-
TEMP_DIR_PATH
public static final java.lang.String TEMP_DIR_PATH
Deprecated.Temp dir from "java.io.tmpdir" property
-
filesToDelete
private java.util.List<java.io.File> filesToDelete
Deprecated.
-
baseFilename
private final java.lang.String baseFilename
Deprecated.
-
fileSuffix
private final java.lang.String fileSuffix
Deprecated.
-
callerInfo
private java.lang.StackTraceElement callerInfo
Deprecated.
-
cleanupWarning
private java.lang.Thread cleanupWarning
Deprecated.
-
warnAboutCleanup
private boolean warnAboutCleanup
Deprecated.
-
-
Method Detail
-
initializeCleanupMonitoring
private void initializeCleanupMonitoring()
Deprecated.
-
maybeWarnAboutCleanUp
protected void maybeWarnAboutCleanUp()
Deprecated.
-
markForDeletion
public void markForDeletion(java.io.File toDelete)
Deprecated.- Parameters:
toDelete-
-
createTempDir
public java.io.File createTempDir()
Deprecated.- Returns:
- a temp dir
-
createTempFile
public java.io.File createTempFile() throws java.io.IOExceptionDeprecated.- Returns:
- a temp file
- Throws:
java.io.IOException- if any
-
cleanUp
public void cleanUp() throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException- if any
-
assertFileExistence
public void assertFileExistence(java.io.File dir, java.lang.String filename, boolean shouldExist)Deprecated.- Parameters:
dir-filename-shouldExist-
-
assertFileContents
public void assertFileContents(java.io.File dir, java.lang.String filename, java.lang.String contentsTest) throws java.io.IOExceptionDeprecated.- Parameters:
dir-filename-contentsTest-- Throws:
java.io.IOException- if any
-
createFile
public java.io.File createFile(java.io.File dir, java.lang.String filename, java.lang.String contents) throws java.io.IOExceptionDeprecated.- Parameters:
dir-filename-contents-- Returns:
- Throws:
java.io.IOException- if any
-
getFileContents
public java.lang.String getFileContents(java.io.File file) throws java.io.IOExceptionDeprecated.- Parameters:
file-- Returns:
- Throws:
java.io.IOException- if any
-
finalize
protected void finalize() throws java.lang.ThrowableDeprecated.- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
createFile
public java.io.File createFile(java.lang.String filename, java.lang.String content) throws java.io.IOExceptionDeprecated.- Parameters:
filename-content-- Returns:
- Throws:
java.io.IOException- if any
-
-