Class FileTestUtil

java.lang.Object
com.vaadin.flow.testutil.FileTestUtil

public class FileTestUtil extends Object
  • Constructor Details

    • FileTestUtil

      public FileTestUtil()
  • Method Details

    • 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
    • waitForFiles

      public static void waitForFiles(File... files)
      Waits for at least one of the given files to be present for up to 5 minutes.
      Parameters:
      files - the file(s) 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