nJUnit 4 adds two assert() methods for
comparing arrays.
n
nThese
methods compare arrays in the most obvious way: Two arrays are equal if they have the same
length and each
element is equal to the corresponding element in the other array; otherwise, they're not. The case
of one or both arrays
being null is also handled.
npublic static void
nassertEquals(Object[]
expected, Object[] actual);
n
npublic static void
nassertEquals(String
message, Object[] expected,
n Object[] actual);