Skip to content
Browse files
Improved: Check Map equality in ‘MultivaluedMapContextTests’
The equality between two maps is defined by the presence of the same
set of entries in both maps, so checking equality of the maps is
equivalent to checking directly their entries.

git-svn-id: 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Apr 22, 2019
1 parent 5982be8 commit 2b541d715d2158c3c105971a0709d6b22f06c9b1
Showing with 2 additions and 2 deletions.
  1. +2 −2 ...ework/base/src/test/java/org/apache/ofbiz/base/collections/
@@ -61,10 +61,10 @@ public void valuesBasic() {

public void entrySetBasic() {
public void equalityBasic() {
HashMap<String, Integer> expected = new HashMap<>();
expected.put("foo", 0);
expected.put("bar", 3);
assertEquals(expected.entrySet(), adapter.entrySet());
assertEquals(expected, adapter);

0 comments on commit 2b541d7

Please sign in to comment.