Package org.fest.assertions.error
Class ShouldHaveEqualContent
- java.lang.Object
-
- org.fest.assertions.error.BasicErrorMessageFactory
-
- org.fest.assertions.error.AbstractShouldHaveTextContent
-
- org.fest.assertions.error.ShouldHaveEqualContent
-
- All Implemented Interfaces:
ErrorMessageFactory
public class ShouldHaveEqualContent extends AbstractShouldHaveTextContent
Creates an error message indicating that an assertion that verifies that two files/inputStreams have equal content failed.- Author:
- Yvonne Wang, Matthieu Baechler, Joel Costigliola
-
-
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorMessageFactory
shouldHaveEqualContent(java.io.File actual, java.io.File expected, java.util.List<java.lang.String> diffs)
Creates a new
.ShouldHaveEqualContent
static ErrorMessageFactory
shouldHaveEqualContent(java.io.InputStream actual, java.io.InputStream expected, java.util.List<java.lang.String> diffs)
Creates a new
.ShouldHaveEqualContent
-
Methods inherited from class org.fest.assertions.error.AbstractShouldHaveTextContent
create, diffsAsString
-
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
equals, hashCode, toString
-
-
-
-
Method Detail
-
shouldHaveEqualContent
public static ErrorMessageFactory shouldHaveEqualContent(java.io.File actual, java.io.File expected, java.util.List<java.lang.String> diffs)
Creates a new
.ShouldHaveEqualContent
- Parameters:
actual
- the actual file in the failed assertion.expected
- the expected file in the failed assertion.diffs
- the differences betweenactual
andexpected
.- Returns:
- the created
ErrorMessageFactory
.
-
shouldHaveEqualContent
public static ErrorMessageFactory shouldHaveEqualContent(java.io.InputStream actual, java.io.InputStream expected, java.util.List<java.lang.String> diffs)
Creates a new
.ShouldHaveEqualContent
- Parameters:
actual
- the actual InputStream in the failed assertion.expected
- the expected Stream in the failed assertion.diffs
- the differences betweenactual
andexpected
.- Returns:
- the created
ErrorMessageFactory
.
-
-