org.fest.assertions.error
Class ShouldBeLenientEqualByIgnoring

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

Method Summary
static
<E> ErrorMessageFactory
shouldBeLenientEqualByIgnoring(Object actual, List<String> rejectedFields, List<Object> rejectedValues, List<String> ignoredFields)
          Creates a new ShouldBeLenientEqualByIgnoring.
 
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

shouldBeLenientEqualByIgnoring

public static <E> ErrorMessageFactory shouldBeLenientEqualByIgnoring(Object actual,
                                                                     List<String> rejectedFields,
                                                                     List<Object> rejectedValues,
                                                                     List<String> ignoredFields)
Creates a new ShouldBeLenientEqualByIgnoring.

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


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