Class TestFileManager
java.lang.Object
org.apache.maven.shared.tools.easymock.TestFileManager
-
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
-
-
Constructor Details
-
TestFileManager
-
-
Method Details
-
maybeWarnAboutCleanUp
protected void maybeWarnAboutCleanUp()Deprecated. -
markForDeletion
-
createTempDir
-
createTempFile
Deprecated.- Returns:
- a temp file
- Throws:
IOException- if any
-
cleanUp
-
assertFileExistence
-
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
-
createFile
Deprecated.- Parameters:
filename-content-- Returns:
- Throws:
IOException- if any
-