|
JUnit-addons version 1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junitx.framework.ArrayAssert
A set of assert methods specially targetted to asserting arrays.
Method Summary | |
static void |
assertEquals(boolean[] expected,
boolean[] actual)
Asserts that two arrays are equal. |
static void |
assertEquals(byte[] expected,
byte[] actual)
Asserts that two arrays are equal. |
static void |
assertEquals(char[] expected,
char[] actual)
Asserts that two arrays are equal. |
static void |
assertEquals(double[] expected,
double[] actual,
double delta)
Asserts that two arrays are equal. |
static void |
assertEquals(float[] expected,
float[] actual,
float delta)
Asserts that two arrays are equal. |
static void |
assertEquals(int[] expected,
int[] actual)
Asserts that two arrays are equal. |
static void |
assertEquals(long[] expected,
long[] actual)
Asserts that two arrays are equal. |
static void |
assertEquals(java.lang.Object[] expected,
java.lang.Object[] actual)
Asserts that two arrays are equal. |
static void |
assertEquals(short[] expected,
short[] actual)
Asserts that two arrays are equal. |
static void |
assertEquals(java.lang.String message,
boolean[] expected,
boolean[] actual)
Asserts that two arrays are equal. |
static void |
assertEquals(java.lang.String message,
byte[] expected,
byte[] actual)
Asserts that two arrays are equal. |
static void |
assertEquals(java.lang.String message,
char[] expected,
char[] actual)
Asserts that two arrays are equal. |
static void |
assertEquals(java.lang.String message,
double[] expected,
double[] actual,
double delta)
Asserts that two arrays are equal. |
static void |
assertEquals(java.lang.String message,
float[] expected,
float[] actual,
float delta)
Asserts that two arrays are equal. |
static void |
assertEquals(java.lang.String message,
int[] expected,
int[] actual)
Asserts that two arrays are equal. |
static void |
assertEquals(java.lang.String message,
long[] expected,
long[] actual)
Asserts that two arrays are equal. |
static void |
assertEquals(java.lang.String message,
java.lang.Object[] expected,
java.lang.Object[] actual)
Asserts that two arrays are equal. |
static void |
assertEquals(java.lang.String message,
short[] expected,
short[] actual)
Asserts that two arrays are equal. |
static void |
assertEquivalenceArrays(java.lang.Object[] expected,
java.lang.Object[] actual)
Assertion that both arrays has the same elements, but not necessarily in the same order. |
static void |
assertEquivalenceArrays(java.lang.String message,
java.lang.Object[] expected,
java.lang.Object[] actual)
Asserts that two arrays have the same elements, but not necessarily in the same order. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void assertEquals(java.lang.String message, java.lang.Object[] expected, java.lang.Object[] actual)
public static void assertEquals(java.lang.Object[] expected, java.lang.Object[] actual)
public static void assertEquals(double[] expected, double[] actual, double delta)
null
expected
- a double array of expected valuesactual
- a double array of actual valuesdelta
- tolerated deltapublic static void assertEquals(java.lang.String message, double[] expected, double[] actual, double delta)
null
message
- message to display when arrays are not equalexpected
- a double array of expected valuesactual
- a double array of actual valuesdelta
- tolerated deltapublic static void assertEquals(java.lang.String message, float[] expected, float[] actual, float delta)
null
message
- message to display when arrays are not equalexpected
- a float array of expected valuesactual
- a float array of actual valuesdelta
- tolerated deltapublic static void assertEquals(float[] expected, float[] actual, float delta)
null
expected
- a float array of expected valuesactual
- a float array of actual valuesdelta
- tolerated deltapublic static void assertEquals(java.lang.String message, long[] expected, long[] actual)
null
message
- message to display when arrays are not equalexpected
- a long array of expected valuesactual
- a long array of actual valuespublic static void assertEquals(long[] expected, long[] actual)
null
expected
- a long array of expected valuesactual
- a long array of actual valuespublic static void assertEquals(java.lang.String message, int[] expected, int[] actual)
null
message
- message to display when arrays are not equalexpected
- an int array of expected valuesactual
- an int array of actual valuespublic static void assertEquals(int[] expected, int[] actual)
null
expected
- an int array of expected valuesactual
- an int array of actual valuespublic static void assertEquals(java.lang.String message, short[] expected, short[] actual)
null
message
- message to display when arrays are not equalexpected
- a short array of expected valuesactual
- a short array of actual valuespublic static void assertEquals(short[] expected, short[] actual)
null
expected
- a short array of expected valuesactual
- a short array of actual valuespublic static void assertEquals(java.lang.String message, char[] expected, char[] actual)
null
message
- message to display when arrays are not equalexpected
- a short array of expected valuesactual
- a short array of actual valuespublic static void assertEquals(char[] expected, char[] actual)
null
expected
- a short array of expected valuesactual
- a short array of actual valuespublic static void assertEquals(java.lang.String message, boolean[] expected, boolean[] actual)
null
message
- message to display when arrays are not equalexpected
- a short array of expected valuesactual
- a short array of actual valuespublic static void assertEquals(boolean[] expected, boolean[] actual)
null
expected
- a short array of expected valuesactual
- a short array of actual valuespublic static void assertEquals(java.lang.String message, byte[] expected, byte[] actual)
null
message
- message to display when arrays are not equalexpected
- a byte array of expected valuesactual
- a byte array of actual valuespublic static void assertEquals(byte[] expected, byte[] actual)
null
expected
- a byte array of expected valuesactual
- a byte array of actual valuespublic static void assertEquivalenceArrays(java.lang.String message, java.lang.Object[] expected, java.lang.Object[] actual)
message
- message to display when arrays are not equalexpected
- an Object array of expected valuesactual
- an Object array of actual valuesassertEquals(String message, Object[] expected, Object[] actual)
public static void assertEquivalenceArrays(java.lang.Object[] expected, java.lang.Object[] actual)
expected
- an Object array of expected valuesactual
- an Object array of actual valuesassertEquals(String message, Object[] expected, Object[] actual)
|
JUnit-addons version 1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |