Class AssertEqualsException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AssertEqualsException
    extends AssertException
    Exception which Tests can throw when a specific assertEquals fails.
    Version:
    $Id: AssertEqualsException.java 1733416 2016-03-03 07:07:13Z gadams $
    See Also:
    Serialized Form
    • Field Detail

      • ENTRY_KEY_REF_OBJECT

        public static final java.lang.String ENTRY_KEY_REF_OBJECT
        See Also:
        Constant Field Values
      • ENTRY_KEY_CMP_OBJECT

        public static final java.lang.String ENTRY_KEY_CMP_OBJECT
        See Also:
        Constant Field Values
      • ref

        protected java.lang.Object ref
        Objects which should have be equal
      • cmp

        protected java.lang.Object cmp
        Objects which should have be equal
    • Constructor Detail

      • AssertEqualsException

        public AssertEqualsException​(java.lang.Object ref,
                                     java.lang.Object cmp)
    • Method Detail

      • addDescription

        public void addDescription​(TestReport report)
        Requests that the exception populates the TestReport with the relevant information.
        Specified by:
        addDescription in class AssertException
      • getAssertionType

        public java.lang.String getAssertionType()
        Description copied from class: AssertException
        Returns the type of assertion which failed. e.g., "assertEquals"
        Specified by:
        getAssertionType in class AssertException