Description
Simple bug:
WicketTesterHelper.assertEquals(expected, actual) method is supposed to check whether, for example, error messages match. However, if you have a situation with duplicate error messages, the test returns true even though logically the test should fail
Simple fix proposal:
Let's add size check in addition to the containsAll check:
public static void assertEquals(final Collection<?> expects, final Collection<?> actuals)
{
if (!expects.containsAll(actuals) || !actuals.containsAll(expects) || (actuals.size() != expects.size()))
}