DescriptionAdding an equals method for KeyValuePair for easier testing.
With this we can write stuff like
assertThat(result.mandatory,
hasItem(new KeyValuePair("minWidth", "1280")));
The above will currently fail because the object falls back to ==.
BUG=None
Committed: https://crrev.com/7ab5f801dd8d6bc018b59d41877f44ec4ab19d15
Cr-Commit-Position: refs/heads/master@{#9494}
Patch Set 1 #Patch Set 2 : adding hashCode #Messages
Total messages: 7 (2 generated)
|