public class ShouldHaveContent extends AbstractShouldHaveTextContent
diffs
arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldHaveContent(File actual,
Charset charset,
List<Delta<String>> diffs)
Creates a new
. |
static ErrorMessageFactory |
shouldHaveContent(Path actual,
Charset charset,
List<Delta<String>> diffs)
Creates a new
. |
create, diffsAsString
create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldHaveContent(File actual, Charset charset, List<Delta<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(Path actual, Charset charset, List<Delta<String>> diffs)
ShouldHaveContent
.actual
- the actual path in the failed assertion.charset
- the charset that was used to read the path.diffs
- the differences between actual
and the expected text that was provided in the assertion.ErrorMessageFactory
.Copyright © 2014–2019 AssertJ. All rights reserved.