Class TestFileManager
java.lang.Object
org.apache.maven.shared.tools.easymock.TestFileManager
Deprecated.
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Temp dir from "java.io.tmpdir" property -
Constructor Summary
ConstructorsConstructorDescriptionTestFileManager(String baseFilename, String fileSuffix) Deprecated.Default constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidassertFileContents(File dir, String filename, String contentsTest) Deprecated.voidassertFileExistence(File dir, String filename, boolean shouldExist) Deprecated.voidcleanUp()Deprecated.createFile(File dir, String filename, String contents) Deprecated.createFile(String filename, String content) Deprecated.Deprecated.Deprecated.protected voidfinalize()Deprecated.getFileContents(File file) Deprecated.voidmarkForDeletion(File toDelete) Deprecated.protected voidDeprecated.
-
Field Details
-
TEMP_DIR_PATH
Deprecated.Temp dir from "java.io.tmpdir" property
-
-
Constructor Details
-
TestFileManager
Deprecated.Default constructor- Parameters:
baseFilename-fileSuffix-
-
-
Method Details
-
maybeWarnAboutCleanUp
protected void maybeWarnAboutCleanUp()Deprecated. -
markForDeletion
Deprecated.- Parameters:
toDelete-
-
createTempDir
Deprecated.- Returns:
- a temp dir
-
createTempFile
Deprecated.- Returns:
- a temp file
- Throws:
IOException- if any
-
cleanUp
Deprecated.- Throws:
IOException- if any
-
assertFileExistence
Deprecated.- Parameters:
dir-filename-shouldExist-
-
assertFileContents
Deprecated.- Parameters:
dir-filename-contentsTest-- Throws:
IOException- if any
-
createFile
Deprecated.- Parameters:
dir-filename-contents-- Returns:
- Throws:
IOException- if any
-
getFileContents
Deprecated.- Parameters:
file-- Returns:
- Throws:
IOException- if any
-
finalize
Deprecated. -
createFile
Deprecated.- Parameters:
filename-content-- Returns:
- Throws:
IOException- if any
-