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 FileAssertAssertions.assertThat(File actual) Creates a new instance of.FileAssertFileAssert.canRead()Verifies that the actualFilecan be read by the application.FileAssert.canWrite()Verifies that the actualFilecan be modified by the application.FileAssert.doesNotExist()Verifies that the actualFiledoes not exist.FileAssert.exists()Verifies that the actualFileexists, regardless it's a file or directory.FileAssert.hasBinaryContent(byte[] expected) Verifies that the binary content of the actualFileis exactly equal to the given one.FileAssert.hasContent(String expected) Verifies that the text content of the actualFileis 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 actualFileis equal to the content of the given one.FileAssert.isAbsolute()Verifies that the actualFileis an absolute path.FileAssert.isDirectory()Verifies that the actualFileis an existing directory.FileAssert.isFile()Verifies that the actualFileis an existing file.FileAssert.isRelative()Verifies that the actualFileis 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.