org.junit.internal
Class ArrayComparisonFailure

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

public class ArrayComparisonFailure
extends AssertionError

Thrown when two array elements differ

See Also:
Assert.assertArrayEquals(String, Object[], Object[]), Serialized Form

Constructor Summary
ArrayComparisonFailure(String message, AssertionError cause, int index)
          Construct a new ArrayComparisonFailure with an error text and the array's dimension that was not equal
 
Method Summary
 void addDimension(int index)
           
 String getMessage()
           
 String toString()
          
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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:
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.
See Also:
Assert.assertArrayEquals(String, Object[], Object[])
Method Detail

addDimension

public void addDimension(int index)

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

toString

public String toString()

Overrides:
toString in class Throwable