Package | Description |
---|---|
org.fest.assertions.api |
Modifier and Type | Method and Description |
---|---|
static FileAssert |
Assertions.assertThat(File actual)
Creates a new instance of
. |
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(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(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(Charset charset)
Specifies the charset to use for text-based assertions on the file's contents.
|
FileAssert |
FileAssert.usingCharset(String charsetName)
Specifies the name of the charset to use for text-based assertions on the file's contents.
|
Copyright © 2007–2015. All rights reserved.