Class ArrayComparisonFailure

    • Constructor Detail

      • ArrayComparisonFailure

        public ArrayComparisonFailure​(String message,
                                      AssertionError cause,
                                      int index)
        Construct a new ArrayComparisonFailure with an error text and the array's dimension that was not equal
        Parameters:
        cause - the exception that caused the array's content to fail the assertion test
        index - the array position of the objects that are not equal.
        See Also:
        Assert.assertArrayEquals(String, Object[], Object[])
    • Method Detail

      • addDimension

        public void addDimension​(int index)
      • getMessage

        public String getMessage()
        Description copied from class: Throwable
        Returns the detail message string of this throwable.
        Overrides:
        getMessage in class Throwable
        Returns:
        the detail message string of this Throwable instance (which may be null).
      • toString

        public String toString()
        Returns a short description of this throwable. The result is the concatenation of: If getLocalizedMessage returns null, then just the class name is returned.
        Overrides:
        toString in class Throwable
        Returns:
        a string representation of this throwable.