My intention is to use assertArrayEquals(int[], int[]) JUnit method described in the API for verification of one method in my class.
But Eclipse shows me the error message that it can’t recognize such a method. Those two imports are in place:
import java.util.Arrays;
import junit.framework.TestCase;
Did I miss something?
This would work with JUnit 5:
This should work with JUnit 4:
This is the same for the old JUnit framework (JUnit 3):
Note the difference: no Annotations and the test class is a subclass of TestCase (which implements the static assert methods).