Class FileTestUtil


  • public class FileTestUtil
    extends Object
    • Constructor Detail

      • FileTestUtil

        public FileTestUtil()
    • Method Detail

      • waitForFile

        public static void waitForFile​(File file)
        Waits for the given file to be present for up to 5 minutes.
        Parameters:
        file - the file to wait for
      • assertDirectory

        public static void assertDirectory​(File file,
                                           String errorMessage)
        Asserts the given file is a directory.
        Parameters:
        file - the file to check
        errorMessage - the error message to fail with if the file is not a directory
      • assertSymlink

        public static void assertSymlink​(File file,
                                         String errorMessage)
        Asserts the given file is a symlink.
        Parameters:
        file - the file to check
        errorMessage - the error message to fail with if the file is not a symlink