Package org.fest.assertions.error
Class ShouldHaveContent
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
org.fest.assertions.error.AbstractShouldHaveTextContent
org.fest.assertions.error.ShouldHaveContent
- All Implemented Interfaces:
ErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a file has a given text content failed.
- Author:
- Olivier Michallat
-
Field Summary
Fields inherited from class org.fest.assertions.error.AbstractShouldHaveTextContent
diffs
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessageFactory
shouldHaveContent
(File actual, Charset charset, List<String> diffs) Creates a new
.ShouldHaveContent
Methods inherited from class org.fest.assertions.error.AbstractShouldHaveTextContent
create, diffsAsString
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
equals, hashCode, toString
-
Method Details
-
shouldHaveContent
public static ErrorMessageFactory shouldHaveContent(File actual, Charset charset, List<String> diffs) Creates a new
.ShouldHaveContent
- Parameters:
actual
- the actual file in the failed assertion.charset
- the charset that was used to read the file.diffs
- the differences betweenactual
and the expected text that was provided in the assertion.- Returns:
- the created
ErrorMessageFactory
.
-