Class 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
    • 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 between actual and expected.
        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 between actual and expected.
        Returns:
        the created ErrorMessageFactory.