Class ShouldBeEqual

java.lang.Object
org.assertj.core.error.ShouldBeEqual
All Implemented Interfaces:
AssertionErrorFactory

public class ShouldBeEqual extends Object implements AssertionErrorFactory
Creates an AssertionError indicating that an assertion that verifies that two objects are equal failed.

The built AssertionError's message differentiates actual and expected description if their string representation are the same (e.g. 42 float and 42 double). It also mentions the comparator in case of a custom comparator is used (instead of equals method).