org.fest.assertions.error
Class ShouldBeLenientEqualByAccepting

java.lang.Object
  extended by org.fest.assertions.error.BasicErrorMessageFactory
      extended by org.fest.assertions.error.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

Method Summary
static
<E> ErrorMessageFactory
shouldBeLenientEqualByAccepting(Object actual, List<String> rejectedFields, List<Object> rejectedValues, List<String> acceptedFields)
          Creates a new ShouldBeLenientEqualByAccepting.
 
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

shouldBeLenientEqualByAccepting

public static <E> ErrorMessageFactory shouldBeLenientEqualByAccepting(Object actual,
                                                                      List<String> rejectedFields,
                                                                      List<Object> rejectedValues,
                                                                      List<String> acceptedFields)
Creates a new ShouldBeLenientEqualByAccepting.

Parameters:
actual - the actual value in the failed assertion.
rejectedFields - fields name not matching
rejectedValues - fields value not matching
acceptedFields - fields which are base the lenient equality
Returns:
the created ErrorMessageFactory.


Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.