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 static java.lang.StringTEMP_DIR_PATHDeprecated.Temp dir from "java.io.tmpdir" property
-
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.voidmarkForDeletion(java.io.File toDelete)Deprecated.protected voidmaybeWarnAboutCleanUp()Deprecated.
-
-
-
Method Detail
-
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
-
-