I have a List class (EDIT: I wrote it myself), with the List.equals method, so I want to run something like
List list1 = new List(); List list2 = new List(); assertTrue(list1.equals(list2));
So, using matches and assertThat, I thought maybe
assertThat(list1.equals(list2), is(true));
But it gets pretty dumb ... EDIT: maybe I can write my own matches
Is there a better way to check if my equals method works correctly?
This is with JUnit4.5
Henry source share