public class ShouldHaveContent extends AbstractShouldHaveTextContent
diffs
arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
ShouldHaveContent(java.io.File actual,
java.nio.charset.Charset charset,
java.lang.String diffs) |
private |
ShouldHaveContent(java.nio.file.Path actual,
java.nio.charset.Charset charset,
java.lang.String diffs) |
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldHaveContent(java.io.File actual,
java.nio.charset.Charset charset,
java.util.List<java.lang.String> diffs)
Creates a new
. |
static ErrorMessageFactory |
shouldHaveContent(java.nio.file.Path actual,
java.nio.charset.Charset charset,
java.util.List<java.lang.String> diffs)
Creates a new
. |
create, diffsAsString
create, create, equals, hashCode, toString, unquotedString
private ShouldHaveContent(java.io.File actual, java.nio.charset.Charset charset, java.lang.String diffs)
private ShouldHaveContent(java.nio.file.Path actual, java.nio.charset.Charset charset, java.lang.String diffs)
public static ErrorMessageFactory shouldHaveContent(java.io.File actual, java.nio.charset.Charset charset, java.util.List<java.lang.String> diffs)
ShouldHaveContent
.actual
- the actual file in the failed assertion.charset
- the charset that was used to read the file.diffs
- the differences between actual
and the expected text that was provided in the assertion.ErrorMessageFactory
.public static ErrorMessageFactory shouldHaveContent(java.nio.file.Path actual, java.nio.charset.Charset charset, java.util.List<java.lang.String> diffs)
ShouldHaveContent
.actual
- the actual path in the failed assertion.charset
- the charset that was used to read the the path.diffs
- the differences between actual
and the expected text that was provided in the assertion.ErrorMessageFactory
.