public class ShouldBeEqualByComparingOnlyGivenFields extends BasicErrorMessageFactory
AssertionError
indicating that an assertion that verifies that two objects are
lenient equal by accepting fields failed.arguments, format
Modifier and Type | Method and Description |
---|---|
static ErrorMessageFactory |
shouldBeEqualComparingOnlyGivenFields(Object actual,
List<String> rejectedFields,
List<Object> rejectedValues,
List<Object> expectedValues,
List<String> acceptedFields)
Creates a new
. |
create, create, create, equals, hashCode, toString, unquotedString
public static ErrorMessageFactory shouldBeEqualComparingOnlyGivenFields(Object actual, List<String> rejectedFields, List<Object> rejectedValues, List<Object> expectedValues, List<String> acceptedFields)
ShouldBeEqualByComparingOnlyGivenFields
.actual
- the actual value in the failed assertion.rejectedFields
- fields names not matchingrejectedValues
- fields values not matchingexpectedValues
- expected fields valuesacceptedFields
- fields on which is based the lenient equalityErrorMessageFactory
.Copyright © 2014–2019 AssertJ. All rights reserved.