I was testing my shuffling class and came across one issue I cannot understand. Why does the following assert
statement:
assertEquals(new int[]{1}, new int[]{1});
results in an AssertionError
? Naturally, the correct answer is "because they are not equal!", but could someone explain me why? And how to test a method, for which I would like the two such objects to be equal?