Class TempFiles


  • public class TempFiles
    extends Object
    Author:
    Pavel.Sher Date: 05.03.2008
    • Field Detail

      • ourCleanersThreadGroup

        public static ThreadGroup ourCleanersThreadGroup
    • Constructor Detail

      • TempFiles

        public TempFiles()
    • Method Detail

      • registerAsTempFile

        public void registerAsTempFile​(File tempFile)
      • createTempDir

        public final File createTempDir()
                                 throws IOException
        Returns a File object for created temp directory. Also stores the value into this object accessed with getCurrentTempDir()
        Returns:
        a File object for created temp directory
        Throws:
        IOException - if directory creation fails.
      • getCurrentTempDir

        @Nullable
        public File getCurrentTempDir()
        Returns the current directory used by the test or null if no test is running or no directory is created yet.
        Returns:
        see above
      • cleanup

        public void cleanup()
      • cleanupAsync

        public void cleanupAsync()