SyntaxFix
Write A Post
Hire A Developer
Questions
Make sure that the Objects in your list have equals() defined on them. Then
Object
equals()
assertThat(generatedList, is(equalTo(expectedList)));
works.