Best way to unit test Collection?
- by limc
I'm just wondering how folks unit test and assert that the "expected" collection is the same/similar as the "actual" collection (order is not important).
To perform this assertion, I wrote my simple assert API:-
public void assertCollection(Collection<?> expectedCollection, Collection<?> actualCollection) {
…