Class TestFileManager
- java.lang.Object
-
- org.apache.maven.shared.tools.easymock.TestFileManager
-
@Deprecated public class TestFileManager extends java.lang.Object
Deprecated.- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TEMP_DIR_PATH
Deprecated.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 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.void
markForDeletion(java.io.File toDelete)
Deprecated.protected void
maybeWarnAboutCleanUp()
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.IOException
Deprecated.- Returns:
- a temp file
- Throws:
java.io.IOException
- if any
-
cleanUp
public void cleanUp() throws java.io.IOException
Deprecated.- 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.IOException
Deprecated.- 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.IOException
Deprecated.- Parameters:
dir
-filename
-contents
-- Returns:
- Throws:
java.io.IOException
- if any
-
getFileContents
public java.lang.String getFileContents(java.io.File file) throws java.io.IOException
Deprecated.- Parameters:
file
-- Returns:
- Throws:
java.io.IOException
- if any
-
finalize
protected void finalize() throws java.lang.Throwable
Deprecated.- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
createFile
public java.io.File createFile(java.lang.String filename, java.lang.String content) throws java.io.IOException
Deprecated.- Parameters:
filename
-content
-- Returns:
- Throws:
java.io.IOException
- if any
-
-