Hello I was trying to test assertEquals() with an ArrayList. This is a part of my test code:
ArrayList<String> n = new ArrayList<String>();
n.add("a");
n.add("b");
n.add("c");
assertEquals(n, "[a, b, c]");
It looks like exactly same to me, but the junit says
junit.framework.AssertionFailedError: expected:<[a, b, c]> but was:<[a, b, c]>
Could anyone point out what I have done wrong?