Class ShouldBeLenientEqualByAccepting

java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
org.fest.assertions.error.ShouldBeLenientEqualByAccepting
All Implemented Interfaces:
ErrorMessageFactory

public class ShouldBeLenientEqualByAccepting extends BasicErrorMessageFactory
Creates an AssertionError indicating that an assertion that verifies that two objects are lenient equal by accepting fields failed.
Author:
Nicolas François, Joel Costigliola
  • Method Details

    • shouldBeLenientEqualByAccepting

      public static <E> ErrorMessageFactory shouldBeLenientEqualByAccepting(Object actual, List<String> rejectedFields, List<Object> expectedValues, List<String> acceptedFields)
      Parameters:
      actual - the actual value in the failed assertion.
      rejectedFields - fields name not matching
      expectedValues - fields value not matching
      acceptedFields - fields on which is based the lenient equality
      Returns:
      the created ErrorMessageFactory.