static FileAssert |
Assertions.assertThat(java.io.File actual) |
|
FileAssert |
FileAssert.canRead() |
Verifies that the actual File can be read by the application.
|
FileAssert |
FileAssert.canWrite() |
Verifies that the actual File can be modified by the application.
|
FileAssert |
FileAssert.doesNotExist() |
Verifies that the actual File does not exist.
|
FileAssert |
FileAssert.exists() |
Verifies that the actual File exists, regardless it's a file or directory.
|
FileAssert |
FileAssert.hasBinaryContent(byte[] expected) |
Verifies that the binary content of the actual File is exactly equal to the given one.
|
FileAssert |
FileAssert.hasContent(java.lang.String expected) |
Verifies that the text content of the actual File is exactly equal to the given one.
The charset to use when reading the file should be provided with usingCharset(Charset) or
usingCharset(String) prior to calling this method; if not, the platform's default charset (as returned by
Charset.defaultCharset() ) will be used.
|
FileAssert |
FileAssert.hasContentEqualTo(java.io.File expected) |
Verifies that the content of the actual File is equal to the content of the given one.
|
FileAssert |
FileAssert.isAbsolute() |
Verifies that the actual File is an absolute path.
|
FileAssert |
FileAssert.isDirectory() |
Verifies that the actual File is an existing directory.
|
FileAssert |
FileAssert.isFile() |
Verifies that the actual File is an existing file.
|
FileAssert |
FileAssert.isRelative() |
Verifies that the actual File is a relative path.
|
FileAssert |
FileAssert.usingCharset(java.lang.String charsetName) |
Specifies the name of the charset to use for text-based assertions on the file's contents.
|
FileAssert |
FileAssert.usingCharset(java.nio.charset.Charset charset) |
Specifies the charset to use for text-based assertions on the file's contents.
|