Class 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 Detail

      • shouldBeLenientEqualByAccepting

        public static <E> ErrorMessageFactory shouldBeLenientEqualByAccepting​(java.lang.Object actual,
                                                                              java.util.List<java.lang.String> rejectedFields,
                                                                              java.util.List<java.lang.Object> expectedValues,
                                                                              java.util.List<java.lang.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.