Skip to content
Permalink
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: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857958 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Apr 22, 2019
1 parent 5982be8 commit 2b541d715d2158c3c105971a0709d6b22f06c9b1
@@ -61,10 +61,10 @@ public void valuesBasic() {
}

@Test
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.
You can’t perform that action at this time.