Package org.testng.internal.junit
Class ArrayComparisonFailure
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- java.lang.AssertionError
-
- org.testng.internal.junit.ArrayComparisonFailure
-
- All Implemented Interfaces:
java.io.Serializable
public class ArrayComparisonFailure extends java.lang.AssertionError
Thrown when two array elements differ- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArrayComparisonFailure(java.lang.String message, java.lang.AssertionError cause, int index)
Construct a newArrayComparisonFailure
with an error text and the array's dimension that was not equal
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDimension(int index)
java.lang.String
getMessage()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ArrayComparisonFailure
public ArrayComparisonFailure(java.lang.String message, java.lang.AssertionError cause, int index)
Construct a newArrayComparisonFailure
with an error text and the array's dimension that was not equal- Parameters:
message
- the messagecause
- the exception that caused the array's content to fail the assertion testindex
- the array position of the objects that are not equal.
-
-