Uses of Class
org.fest.assertions.api.FileAssert
Packages that use FileAssert
-
Uses of FileAssert in org.fest.assertions.api
Methods in org.fest.assertions.api that return FileAssertModifier and TypeMethodDescriptionstatic FileAssert
Assertions.assertThat
(File actual) Creates a new instance of
.FileAssert
FileAssert.canRead()
Verifies that the actualFile
can be read by the application.FileAssert.canWrite()
Verifies that the actualFile
can be modified by the application.FileAssert.doesNotExist()
Verifies that the actualFile
does not exist.FileAssert.exists()
Verifies that the actualFile
exists, regardless it's a file or directory.FileAssert.hasBinaryContent
(byte[] expected) Verifies that the binary content of the actualFile
is exactly equal to the given one.FileAssert.hasContent
(String expected) Verifies that the text content of the actualFile
is exactly equal to the given one.
The charset to use when reading the file should be provided withusingCharset(Charset)
orusingCharset(String)
prior to calling this method; if not, the platform's default charset (as returned byCharset.defaultCharset()
) will be used.FileAssert.hasContentEqualTo
(File expected) Verifies that the content of the actualFile
is equal to the content of the given one.FileAssert.isAbsolute()
Verifies that the actualFile
is an absolute path.FileAssert.isDirectory()
Verifies that the actualFile
is an existing directory.FileAssert.isFile()
Verifies that the actualFile
is an existing file.FileAssert.isRelative()
Verifies that the actualFile
is a relative path.FileAssert.usingCharset
(String charsetName) Specifies the name of the charset to use for text-based assertions on the file's contents.FileAssert.usingCharset
(Charset charset) Specifies the charset to use for text-based assertions on the file's contents.