类 ArrayComparisonFailure
- java.lang.Object
- java.lang.Throwable
- java.lang.Error
- java.lang.AssertionError
- org.junit.internal.ArrayComparisonFailure
- 所有已实现的接口:
Serializable
public class ArrayComparisonFailure extends AssertionError
Thrown when two array elements differ
构造器概要
构造器 构造器 说明 ArrayComparisonFailure(String message, AssertionError cause, int index)
Construct a newArrayComparisonFailure
with an error text and the array's dimension that was not equal
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
addDimension(int index)
String
getMessage()
String
toString()
构造器详细资料
ArrayComparisonFailure
public ArrayComparisonFailure(String message, AssertionError cause, int index)
Construct a newArrayComparisonFailure
with an error text and the array's dimension that was not equal- 参数:
cause
- 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[])
方法详细资料
addDimension
public void addDimension(int index)
getMessage
public String getMessage()
- 覆盖:
getMessage
在类中Throwable