Class ShouldBeLenientEqualByIgnoring

  • All Implemented Interfaces:
    ErrorMessageFactory

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

      • shouldBeLenientEqualByIgnoring

        public static <E> ErrorMessageFactory shouldBeLenientEqualByIgnoring​(java.lang.Object actual,
                                                                             java.util.List<java.lang.String> rejectedFields,
                                                                             java.util.List<java.lang.Object> expectedValues,
                                                                             java.util.List<java.lang.String> ignoredFields)
        Parameters:
        actual - the actual value in the failed assertion.
        rejectedFields - fields name not matching
        expectedValues - fields value not matching
        ignoredFields - fields which are not base the lenient equality
        Returns:
        the created ErrorMessageFactory.