Package org.fest.assertions.error
Class ShouldBeLenientEqualByAccepting
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
org.fest.assertions.error.ShouldBeLenientEqualByAccepting
- All Implemented Interfaces:
ErrorMessageFactory
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
-
Field Summary
Fields inherited from class org.fest.assertions.error.BasicErrorMessageFactory
arguments, format -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> ErrorMessageFactoryshouldBeLenientEqualByAccepting(Object actual, List<String> rejectedFields, List<Object> expectedValues, List<String> acceptedFields) Creates a newShouldBeLenientEqualByAccepting.Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
-
Method Details
-
shouldBeLenientEqualByAccepting
public static <E> ErrorMessageFactory shouldBeLenientEqualByAccepting(Object actual, List<String> rejectedFields, List<Object> expectedValues, List<String> acceptedFields) Creates a newShouldBeLenientEqualByAccepting.- Parameters:
actual- the actual value in the failed assertion.rejectedFields- fields name not matchingexpectedValues- fields value not matchingacceptedFields- fields on which is based the lenient equality- Returns:
- the created
ErrorMessageFactory.
-