public class

ArrayComparisonFailure

extends AssertionError
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Error
       ↳ java.lang.AssertionError
         ↳ org.junit.internal.ArrayComparisonFailure

Class Overview

Thrown when two array elements differ

Summary

Public Constructors
ArrayComparisonFailure(String message, AssertionError cause, int index)
Construct a new ArrayComparisonFailure with an error text and the array's dimension that was not equal
Public Methods
void addDimension(int index)
String getMessage()
String toString()
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

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.

Public Methods

public void addDimension (int index)

public String getMessage ()

public String toString ()