Package com.vaadin.flow.testutil
Class FileTestUtil
java.lang.Object
com.vaadin.flow.testutil.FileTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertDirectory(File file, String errorMessage) Asserts the given file is a directory.static voidassertSymlink(File file, String errorMessage) Asserts the given file is a symlink.static voidwaitForFile(File file) Waits for the given file to be present for up to 5 minutes.static voidwaitForFiles(File... files) Waits for at least one of the given files to be present for up to 5 minutes.
-
Constructor Details
-
FileTestUtil
public FileTestUtil()
-
-
Method Details
-
waitForFile
Waits for the given file to be present for up to 5 minutes.- Parameters:
file- the file to wait for
-
waitForFiles
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
Asserts the given file is a directory.- Parameters:
file- the file to checkerrorMessage- the error message to fail with if the file is not a directory
-
assertSymlink
Asserts the given file is a symlink.- Parameters:
file- the file to checkerrorMessage- the error message to fail with if the file is not a symlink
-