public class ArrayComparisonFailure
extends java.lang.AssertionError
Modifier and Type | Field and Description |
---|---|
private java.lang.AssertionError |
fCause |
private java.util.List<java.lang.Integer> |
fIndices |
private java.lang.String |
fMessage |
private static long |
serialVersionUID |
Constructor and Description |
---|
ArrayComparisonFailure(java.lang.String message,
java.lang.AssertionError cause,
int index)
Construct a new
ArrayComparisonFailure with an error text and the array's
dimension that was not equal |
Modifier and Type | Method and Description |
---|---|
void |
addDimension(int index) |
java.lang.Throwable |
getCause() |
java.lang.String |
getMessage() |
java.lang.String |
toString() |
private static final long serialVersionUID
private final java.util.List<java.lang.Integer> fIndices
private final java.lang.String fMessage
private final java.lang.AssertionError fCause
public ArrayComparisonFailure(java.lang.String message, java.lang.AssertionError cause, int index)
ArrayComparisonFailure
with an error text and the array's
dimension that was not equalcause
- the exception that caused the array's content to fail the assertion testindex
- the array position of the objects that are not equal.Assert.assertArrayEquals(String, Object[], Object[])
public void addDimension(int index)
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable