I have two HashMap maps that I would like to compare. Question in this case is a Javabean I have written.
HashMap
Question
How do I ass
If your Question class implements equals then you can just do
equals
assertEquals(expectedMap, hashMap); assertTrue(expectedMap.equals(hashMap));
The Map interface specifies that two Maps are equal if they contain equal elements for equal keys.