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.AssertionErrorThrown when two array elements differ
-
-
Constructor Summary
Constructors Constructor Description ArrayComparisonFailure(java.lang.String message, java.lang.AssertionError cause, int index)Construct a newArrayComparisonFailurewith 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 voidaddDimension(int index)java.lang.ThrowablegetCause()java.lang.StringgetMessage()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ArrayComparisonFailure
public ArrayComparisonFailure(java.lang.String message, java.lang.AssertionError cause, int index)Construct a newArrayComparisonFailurewith 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[])
-
-
Method Detail
-
addDimension
public void addDimension(int index)
-
getCause
public java.lang.Throwable getCause()
- Overrides:
getCausein classjava.lang.Throwable
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-