Package org.junit.internal
Class ArrayComparisonFailure
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- java.lang.AssertionError
-
- org.junit.internal.ArrayComparisonFailure
-
- All Implemented Interfaces:
java.io.Serializable
public class ArrayComparisonFailure extends java.lang.AssertionError
Thrown when two array elements differ
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.Integer>
fIndices
private java.lang.String
fMessage
private static long
serialVersionUID
-
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()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
fIndices
private final java.util.List<java.lang.Integer> fIndices
-
fMessage
private final java.lang.String fMessage
-
-
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:
cause
- the exception that caused the array's content to fail the assertion testindex
- the array position of the objects that are not equal.- See Also:
Assert.assertArrayEquals(String, Object[], Object[])
-
-