Class ArrayComparisonFailure

java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
org.testng.internal.junit.ArrayComparisonFailure
All Implemented Interfaces:
Serializable

public class ArrayComparisonFailure extends AssertionError
Thrown when two array elements differ
See Also:
  • Field Details

  • Constructor Details

    • 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:
      message - the message
      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.
  • Method Details