Package patterntesting.runtime.junit
Class ArrayTester
- java.lang.Object
-
- patterntesting.runtime.junit.ArrayTester
-
public final class ArrayTester extends java.lang.Object
If you want to assert that the content of two arrays are equals use this tester here.- Since:
- 1.5 (27.08.2014)
- Author:
- oliver
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertEquals(byte[] a1, byte[] a2)
Checks if each object in array a1 is equals to that of array a2.static void
assertEquals(java.lang.Object[] a1, java.lang.Object[] a2)
Checks if each object in array a1 is equals to that of array a2.
-
-
-
Method Detail
-
assertEquals
public static void assertEquals(java.lang.Object[] a1, java.lang.Object[] a2)
Checks if each object in array a1 is equals to that of array a2. If not this method will tell you which element is different. If the arrays have different size this method will tell you which element is missing.Because two arrays are compared the order of the element is important. I.e. two arrays with the same elements but different order are not equals.
- Parameters:
a1
- the first arraya2
- the second array
-
assertEquals
public static void assertEquals(byte[] a1, byte[] a2)
Checks if each object in array a1 is equals to that of array a2. If not this method will tell you which element is different. If the arrays have different size this method will tell you which element is missing.Because two arrays are compared the order of the element is important. I.e. two arrays with the same elements but different order are not equals.
- Parameters:
a1
- the first arraya2
- the second array
-
-