Hello all,
I'd like to use hamcrest to assert that two maps are equal, i.e. they have the same set of keys pointing to the same values.
My current best guess is:
assertThat( affA.entrySet(), hasItems( affB.entrySet() );
which gives:
The method assertThat(T, Matcher) in the type Assert is not applicable for the arguments (Set>, Matcher>>>)
I've also looked into variations of containsAll, and some others provided by the hamcrest packages. Can anyone point me in the right direction? Or do I have to write a custom matcher?