org.fest.assertions.error
Class ShouldHaveEqualContent

java.lang.Object
  extended by org.fest.assertions.error.BasicErrorMessageFactory
      extended by org.fest.assertions.error.ShouldHaveEqualContent
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldHaveEqualContent
extends BasicErrorMessageFactory

Creates an error message indicating that an assertion that verifies that two files/inputStreams have equal content failed.

Author:
Yvonne Wang, Matthieu Baechler

Method Summary
static ErrorMessageFactory shouldHaveEqualContent(File actual, File expected, List<String> diffs)
          Creates a new ShouldHaveEqualContent.
static ErrorMessageFactory shouldHaveEqualContent(InputStream actual, InputStream expected, List<String> diffs)
          Creates a new ShouldHaveEqualContent.
 
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

shouldHaveEqualContent

public static ErrorMessageFactory shouldHaveEqualContent(File actual,
                                                         File expected,
                                                         List<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(InputStream actual,
                                                         InputStream expected,
                                                         List<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.


Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.