- exists
Verifies that the actual File exists, regardless it's a file or directory.
Example: File tmpFile =
- isEqualTo
- doesNotExist
Verifies that the actual File does not exist. Example: File parentDir = Files.createTempDirectory("t
- isFile
Verifies that the actual File is an existing file. Example: File tmpFile = File.createTempFile("tmp"
- isDirectory
Verifies that the actual File is an existing directory. Example: File tmpDir = Files.createTempDirec
- hasContent
Verifies that the text content of the actual File is exactly equal to the given
one.
The charset to
- isNotNull
- isNull
- hasName
Verifies that the actual File has given name. Example: File xFile = new File("somewhere/xFile.java")
- hasSameContentAs
Verifies that the content of the actual File is the same as the expected one,
the expected File bein
- isSameAs
- usingCharset
Specifies the charset to use for text-based assertions on the file's contents.