public class ArrayAsserts extends Object
Arrays.asList()
returns a list of arrays), and for large object
arrays (where the output from Arrays.asList
would be confusing).
Performs the following assertions:
Constructor and Description |
---|
ArrayAsserts() |
Modifier and Type | Method and Description |
---|---|
static void |
assertEquals(boolean[] expected,
boolean[] actual)
Compares two boolean arrays, with default message.
|
static void |
assertEquals(byte[] expected,
byte[] actual)
Compares two byte arrays, with default message.
|
static void |
assertEquals(char[] expected,
char[] actual)
Compares two char arrays, with default message.
|
static void |
assertEquals(double[] expected,
double[] actual)
Compares two double arrays, with default message.
|
static void |
assertEquals(float[] expected,
float[] actual)
Compares two float arrays, with default message.
|
static void |
assertEquals(int[] expected,
int[] actual)
Compares two int arrays, with default message.
|
static void |
assertEquals(long[] expected,
long[] actual)
Compares two long arrays, with default message.
|
static void |
assertEquals(short[] expected,
short[] actual)
Compares two short arrays, with default message.
|
static void |
assertEquals(String message,
boolean[] expected,
boolean[] actual)
Compares two boolean arrays, with user-defined message prefix.
|
static void |
assertEquals(String message,
byte[] expected,
byte[] actual)
Compares two byte arrays, with user-defined message prefix.
|
static void |
assertEquals(String message,
char[] expected,
char[] actual)
Compares two char arrays, with user-defined message prefix.
|
static void |
assertEquals(String message,
double[] expected,
double[] actual)
Compares two double arrays, with user-defined message prefix.
|
static void |
assertEquals(String message,
float[] expected,
float[] actual)
Compares two float arrays, with user-defined message prefix.
|
static void |
assertEquals(String message,
int[] expected,
int[] actual)
Compares two int arrays, with user-defined message prefix.
|
static void |
assertEquals(String message,
long[] expected,
long[] actual)
Compares two long arrays, with user-defined message prefix.
|
static void |
assertEquals(String message,
short[] expected,
short[] actual)
Compares two short arrays, with user-defined message prefix.
|
public static void assertEquals(String message, byte[] expected, byte[] actual)
public static void assertEquals(byte[] expected, byte[] actual)
public static void assertEquals(String message, short[] expected, short[] actual)
public static void assertEquals(short[] expected, short[] actual)
public static void assertEquals(String message, int[] expected, int[] actual)
public static void assertEquals(int[] expected, int[] actual)
public static void assertEquals(String message, long[] expected, long[] actual)
public static void assertEquals(long[] expected, long[] actual)
public static void assertEquals(String message, float[] expected, float[] actual)
public static void assertEquals(float[] expected, float[] actual)
public static void assertEquals(String message, double[] expected, double[] actual)
public static void assertEquals(double[] expected, double[] actual)
public static void assertEquals(String message, char[] expected, char[] actual)
public static void assertEquals(char[] expected, char[] actual)
public static void assertEquals(String message, boolean[] expected, boolean[] actual)
public static void assertEquals(boolean[] expected, boolean[] actual)