Class TestFileManager

java.lang.Object
org.apache.maven.shared.tools.easymock.TestFileManager

@Deprecated public class TestFileManager extends Object
Deprecated.
Version:
$Id$
  • Field Details

    • TEMP_DIR_PATH

      public static final String TEMP_DIR_PATH
      Deprecated.
      Temp dir from "java.io.tmpdir" property
  • Constructor Details

    • TestFileManager

      public TestFileManager(String baseFilename, String fileSuffix)
      Deprecated.
      Default constructor
      Parameters:
      baseFilename -
      fileSuffix -
  • Method Details

    • maybeWarnAboutCleanUp

      protected void maybeWarnAboutCleanUp()
      Deprecated.
    • markForDeletion

      public void markForDeletion(File toDelete)
      Deprecated.
      Parameters:
      toDelete -
    • createTempDir

      public File createTempDir()
      Deprecated.
      Returns:
      a temp dir
    • createTempFile

      public File createTempFile() throws IOException
      Deprecated.
      Returns:
      a temp file
      Throws:
      IOException - if any
    • cleanUp

      public void cleanUp() throws IOException
      Deprecated.
      Throws:
      IOException - if any
    • assertFileExistence

      public void assertFileExistence(File dir, String filename, boolean shouldExist)
      Deprecated.
      Parameters:
      dir -
      filename -
      shouldExist -
    • assertFileContents

      public void assertFileContents(File dir, String filename, String contentsTest) throws IOException
      Deprecated.
      Parameters:
      dir -
      filename -
      contentsTest -
      Throws:
      IOException - if any
    • createFile

      public File createFile(File dir, String filename, String contents) throws IOException
      Deprecated.
      Parameters:
      dir -
      filename -
      contents -
      Returns:
      Throws:
      IOException - if any
    • getFileContents

      public String getFileContents(File file) throws IOException
      Deprecated.
      Parameters:
      file -
      Returns:
      Throws:
      IOException - if any
    • finalize

      protected void finalize() throws Throwable
      Deprecated.
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • createFile

      public File createFile(String filename, String content) throws IOException
      Deprecated.
      Parameters:
      filename -
      content -
      Returns:
      Throws:
      IOException - if any