public class ShouldBeEqualToIgnoringFields extends BasicErrorMessageFactory
AssertionError
indicating that an assertion that verifies that two objects are lenient equal by
ignoring fields failed.arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldBeEqualToIgnoringGivenFields(Object actual,
List<String> rejectedFields,
List<Object> rejectedValues,
List<Object> expectedValues,
List<String> ignoredFields)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldBeEqualToIgnoringGivenFields(Object actual, List<String> rejectedFields, List<Object> rejectedValues, List<Object> expectedValues, List<String> ignoredFields)
ShouldBeEqualToIgnoringFields
.actual
- the actual value in the failed assertion.rejectedFields
- fields name not matchingrejectedValues
- rejected fields valuesexpectedValues
- expected fields valuesignoredFields
- fields which are not base the lenient equalityErrorMessageFactory
.Copyright © 2014–2019 AssertJ. All rights reserved.